Fork me on GitHub

Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/AngularSmearing.cc

    r95aa610 rcab38f6  
    100100{
    101101  Candidate *candidate, *mother;
    102   Double_t pt, eta, phi, e;
     102  Double_t pt, eta, phi;
    103103
    104104  fItInputArray->Reset();
     
    110110    phi = candidatePosition.Phi();
    111111    pt = candidateMomentum.Pt();
    112     e = candidateMomentum.E();
    113112
    114113    // apply smearing formula for eta,phi
    115114
    116     eta = gRandom->Gaus(eta, fFormulaEta->Eval(pt, eta, phi, e));
    117     phi = gRandom->Gaus(phi, fFormulaPhi->Eval(pt, eta, phi, e));
     115    eta = gRandom->Gaus(eta, fFormulaEta->Eval(pt, eta));
     116    phi = gRandom->Gaus(phi, fFormulaPhi->Eval(pt, eta));
    118117   
    119118    if(pt <= 0.0) continue;
Note: See TracChangeset for help on using the changeset viewer.