Fork me on GitHub

Changeset 95aa610 in git for modules/EnergySmearing.cc


Ignore:
Timestamp:
May 11, 2015, 1:41:01 PM (9 years ago)
Author:
Michele Selvaggi <michele.selvaggi@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
3241a0e
Parents:
4a93785
Message:

fixed phi, energy dependence in efficiency, smearing, identification, btagging, angular smearing modules

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/EnergySmearing.cc

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