- Timestamp:
- Jan 17, 2020, 11:42:48 AM (5 years ago)
- Branches:
- Timing
- Children:
- 9c1d14a, af6ce6a
- Parents:
- d4e5b6a (diff), 2d7ff18 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - git-author:
- Michele Selvaggi <michele.selvaggi@…> (01/17/20 11:42:48)
- git-committer:
- GitHub <noreply@…> (01/17/20 11:42:48)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/Efficiency.cc
rd4e5b6a r83ee320 95 95 { 96 96 Candidate *candidate; 97 Double_t pt, eta, phi, e, d0, dz, ctgTheta;97 Double_t pt, eta, phi, e, r, z, d0, dz, ctgTheta; 98 98 99 99 fItInputArray->Reset(); … … 102 102 const TLorentzVector &candidatePosition = candidate->Position; 103 103 const TLorentzVector &candidateMomentum = candidate->Momentum; 104 r = candidatePosition.Perp(); 105 z = candidatePosition.Z(); 104 106 eta = candidatePosition.Eta(); 105 107 phi = candidatePosition.Phi(); … … 111 113 112 114 // 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; 114 116 115 117 fOutputArray->Add(candidate);
Note:
See TracChangeset
for help on using the changeset viewer.