Fork me on GitHub

Changeset fd4b326 in git for modules/TreeWriter.cc


Ignore:
Timestamp:
Mar 17, 2021, 4:19:54 PM (4 years ago)
Author:
michele <michele.selvaggi@…>
Branches:
master
Children:
9cc5aeb
Parents:
b8a6aa3
Message:

tracks have now montecarlo mass

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/TreeWriter.cc

    rb8a6aa3 rfd4b326  
    320320  Candidate *particle = 0;
    321321  Track *entry = 0;
    322   Double_t pt, signz, cosTheta, eta, rapidity, p, ctgTheta, phi;
     322  Double_t pt, signz, cosTheta, eta, rapidity, p, ctgTheta, phi, m;
    323323  const Double_t c_light = 2.99792458E8;
    324324
     
    387387    p = momentum.P();
    388388    phi = momentum.Phi();
     389    m = momentum.M();
    389390    ctgTheta = (TMath::Tan(momentum.Theta()) != 0) ? 1 / TMath::Tan(momentum.Theta()) : 1e10;
    390391
     
    400401    entry->CtgTheta = ctgTheta;
    401402    entry->C = candidate->C;
     403    entry->Mass = m;
    402404
    403405    particle = static_cast<Candidate *>(candidate->GetCandidates()->At(0));
     
    470472  Candidate *particle = 0;
    471473  ParticleFlowCandidate *entry = 0;
    472   Double_t e, pt, signz, cosTheta, eta, rapidity, p, ctgTheta, phi;
     474  Double_t e, pt, signz, cosTheta, eta, rapidity, p, ctgTheta, phi, m;
    473475  const Double_t c_light = 2.99792458E8;
    474476
     
    541543    p = momentum.P();
    542544    phi = momentum.Phi();
     545    m = momentum.M();
    543546    ctgTheta = (TMath::Tan(momentum.Theta()) != 0) ? 1 / TMath::Tan(momentum.Theta()) : 1e10;
    544547
     
    550553    entry->CtgTheta = ctgTheta;
    551554    entry->C = candidate->C;
     555    entry->Mass = m;
    552556
    553557    particle = static_cast<Candidate *>(candidate->GetCandidates()->At(0));
Note: See TracChangeset for help on using the changeset viewer.