Fork me on GitHub

Changes in / [eceb415:b3bd4d2] in git


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/MomentumSmearing.cc

    receb415 rb3bd4d2  
    9696{
    9797  Candidate *candidate, *mother;
    98   Double_t pt, eta, phi, e, res;
     98  Double_t pt, eta, phi, e;
    9999
    100100  fItInputArray->Reset();
     
    107107    pt = candidateMomentum.Pt();
    108108    e = candidateMomentum.E();
    109     res = fFormula->Eval(pt, eta, phi, e);
    110  
     109
    111110    // apply smearing formula
    112111    //pt = gRandom->Gaus(pt, fFormula->Eval(pt, eta, phi, e) * pt);
    113    
    114     res = ( res > 1.0 ) ? 1.0 : res;
    115 
    116     pt = LogNormal(pt, res * pt );
     112    pt = LogNormal(pt, fFormula->Eval(pt, eta, phi, e) * pt );
    117113   
    118114    //if(pt <= 0.0) continue;
Note: See TracChangeset for help on using the changeset viewer.