Changes in modules/Efficiency.cc [a1c9c16:04e2040] in git
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/Efficiency.cc
ra1c9c16 r04e2040 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.