Changeset f298e48 in git for modules/Efficiency.cc
- Timestamp:
- Mar 22, 2020, 6:39:09 PM (5 years ago)
- Branches:
- ImprovedOutputFile, master
- Children:
- 7e83689
- Parents:
- 288a5fc
- git-author:
- Roberto Preghenella <preghenella@…> (03/22/20 16:32:29)
- git-committer:
- Roberto Preghenella <preghenella@…> (03/22/20 18:39:09)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/Efficiency.cc
r288a5fc rf298e48 95 95 { 96 96 Candidate *candidate; 97 Double_t pt, eta, phi, e , d0, dz, ctgTheta;97 Double_t pt, eta, phi, e; 98 98 99 99 fItInputArray->Reset(); … … 106 106 pt = candidateMomentum.Pt(); 107 107 e = candidateMomentum.E(); 108 d0 = candidate->D0; 109 dz = candidate->DZ; 110 ctgTheta = candidate->CtgTheta; 111 108 112 109 // apply an efficency formula 113 if(gRandom->Uniform() > fFormula->Eval(pt, eta, phi, e, d0, dz, ctgTheta)) continue;110 if(gRandom->Uniform() > fFormula->Eval(pt, eta, phi, e, candidate)) continue; 114 111 115 112 fOutputArray->Add(candidate);
Note:
See TracChangeset
for help on using the changeset viewer.