Changeset d612dec in git for modules/Efficiency.cc
- Timestamp:
- Dec 9, 2021, 7:52:15 AM (3 years ago)
- Children:
- 29b722a
- Parents:
- a5af1df (diff), 0c0c9af (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/Efficiency.cc
ra5af1df rd612dec 78 78 fItInputArray = fInputArray->MakeIterator(); 79 79 80 // switch to compute efficiency based on momentum vector eta, phi 81 fUseMomentumVector = GetBool("UseMomentumVector", false); 82 80 83 // create output array 81 84 … … 95 98 { 96 99 Candidate *candidate; 97 Double_t pt, eta, phi, e, d0, dz, ctgTheta; 100 Double_t pt, eta, phi, e; 101 98 102 99 103 fItInputArray->Reset(); … … 104 108 eta = candidatePosition.Eta(); 105 109 phi = candidatePosition.Phi(); 110 111 if (fUseMomentumVector){ 112 eta = candidateMomentum.Eta(); 113 phi = candidateMomentum.Phi(); 114 } 115 106 116 pt = candidateMomentum.Pt(); 107 117 e = candidateMomentum.E(); 108 d0 = candidate->D0;109 dz = candidate->DZ;110 ctgTheta = candidate->CtgTheta;111 118 112 119 // apply an efficency formula 113 if(gRandom->Uniform() > fFormula->Eval(pt, eta, phi, e, d0, dz, ctgTheta)) continue;120 if(gRandom->Uniform() > fFormula->Eval(pt, eta, phi, e, candidate)) continue; 114 121 115 122 fOutputArray->Add(candidate);
Note:
See TracChangeset
for help on using the changeset viewer.