Fork me on GitHub

Changeset fd4b326 in git for modules/MomentumSmearing.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/MomentumSmearing.cc

    rb8a6aa3 rfd4b326  
    9595{
    9696  Candidate *candidate, *mother;
    97   Double_t pt, eta, phi, e, res;
     97  Double_t pt, eta, phi, e, m, res;
    9898
    9999  fItInputArray->Reset();
     
    106106    pt = candidateMomentum.Pt();
    107107    e = candidateMomentum.E();
     108    m = candidateMomentum.M();
    108109    res = fFormula->Eval(pt, eta, phi, e, candidate);
    109110
     
    121122    eta = candidateMomentum.Eta();
    122123    phi = candidateMomentum.Phi();
    123     candidate->Momentum.SetPtEtaPhiE(pt, eta, phi, pt * TMath::CosH(eta));
     124    candidate->Momentum.SetPtEtaPhiM(pt, eta, phi, m);
    124125    //candidate->TrackResolution = fFormula->Eval(pt, eta, phi, e);
    125126    candidate->TrackResolution = res;
Note: See TracChangeset for help on using the changeset viewer.