Fork me on GitHub

Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/EnergySmearing.cc

    r95aa610 rcab38f6  
    9696{
    9797  Candidate *candidate, *mother;
    98   Double_t pt, energy, eta, phi;
     98  Double_t energy, eta, phi;
    9999
    100100  fItInputArray->Reset();
     
    103103    const TLorentzVector &candidatePosition = candidate->Position;
    104104    const TLorentzVector &candidateMomentum = candidate->Momentum;
    105    
    106     pt = candidatePosition.Pt();
    107105    eta = candidatePosition.Eta();
    108106    phi = candidatePosition.Phi();
     
    110108 
    111109    // apply smearing formula
    112     energy = gRandom->Gaus(energy, fFormula->Eval(pt, eta, phi, energy));
     110    energy = gRandom->Gaus(energy, fFormula->Eval(0.0, eta, 0.0, energy));
    113111     
    114112    if(energy <= 0.0) continue;
Note: See TracChangeset for help on using the changeset viewer.