Fork me on GitHub

Changeset 2116fdf in git for modules


Ignore:
Timestamp:
Mar 4, 2019, 11:21:25 AM (6 years ago)
Author:
Pavel Demin <pavel-demin@…>
Branches:
Timing, llp
Children:
2d7ff18
Parents:
3b5d79a
Message:

add r and z to DelphesFormula and Efficiency

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/Efficiency.cc

    r3b5d79a r2116fdf  
    9595{
    9696  Candidate *candidate;
    97   Double_t pt, eta, phi, e, d0, dz, ctgTheta;
     97  Double_t pt, eta, phi, e, r, z, d0, dz, ctgTheta;
    9898
    9999  fItInputArray->Reset();
     
    102102    const TLorentzVector &candidatePosition = candidate->Position;
    103103    const TLorentzVector &candidateMomentum = candidate->Momentum;
     104    r = candidatePosition.Perp();
     105    z = candidatePosition.Z();
    104106    eta = candidatePosition.Eta();
    105107    phi = candidatePosition.Phi();
     
    111113
    112114    // apply an efficency formula
    113     if(gRandom->Uniform() > fFormula->Eval(pt, eta, phi, e, d0, dz, ctgTheta)) continue;
     115    if(gRandom->Uniform() > fFormula->Eval(pt, eta, phi, e, r, z, d0, dz, ctgTheta)) continue;
    114116
    115117    fOutputArray->Add(candidate);
Note: See TracChangeset for help on using the changeset viewer.