Fork me on GitHub

Changeset 95aa610 in git for modules/Efficiency.cc


Ignore:
Timestamp:
May 11, 2015, 1:41:01 PM (10 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/Efficiency.cc

    r4a93785 r95aa610  
    9696{
    9797  Candidate *candidate;
    98   Double_t pt, eta, phi;
     98  Double_t pt, eta, phi, e;
    9999
    100100  fItInputArray->Reset();
     
    106106    phi = candidatePosition.Phi();
    107107    pt = candidateMomentum.Pt();
     108    e = candidateMomentum.E();
    108109
    109110    // apply an efficency formula
    110     if(gRandom->Uniform() > fFormula->Eval(pt, eta)) continue;
     111    if(gRandom->Uniform() > fFormula->Eval(pt, eta, phi, e)) continue;
    111112   
    112113    fOutputArray->Add(candidate);
Note: See TracChangeset for help on using the changeset viewer.