- Timestamp:
- May 11, 2015, 1:41:01 PM (10 years ago)
- Branches:
- ImprovedOutputFile, Timing, dual_readout, llp, master
- Children:
- 3241a0e
- Parents:
- 4a93785
- Location:
- modules
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/AngularSmearing.cc
r4a93785 r95aa610 100 100 { 101 101 Candidate *candidate, *mother; 102 Double_t pt, eta, phi ;102 Double_t pt, eta, phi, e; 103 103 104 104 fItInputArray->Reset(); … … 110 110 phi = candidatePosition.Phi(); 111 111 pt = candidateMomentum.Pt(); 112 e = candidateMomentum.E(); 112 113 113 114 // apply smearing formula for eta,phi 114 115 115 eta = gRandom->Gaus(eta, fFormulaEta->Eval(pt, eta ));116 phi = gRandom->Gaus(phi, fFormulaPhi->Eval(pt, eta ));116 eta = gRandom->Gaus(eta, fFormulaEta->Eval(pt, eta, phi, e)); 117 phi = gRandom->Gaus(phi, fFormulaPhi->Eval(pt, eta, phi, e)); 117 118 118 119 if(pt <= 0.0) continue; -
modules/BTagging.cc
r4a93785 r95aa610 171 171 { 172 172 Candidate *jet, *parton; 173 Double_t pt, eta, phi ;173 Double_t pt, eta, phi, e; 174 174 TObjArray *partonArray; 175 175 map< Int_t, DelphesFormula * >::iterator itEfficiencyMap; … … 194 194 phi = jetMomentum.Phi(); 195 195 pt = jetMomentum.Pt(); 196 196 e = jetMomentum.E(); 197 197 198 // loop over all input partons 198 199 itPartonArray.Reset(); … … 218 219 219 220 // apply an efficency formula 220 jet->BTag |= (gRandom->Uniform() <= formula->Eval(pt, eta )) << fBitNumber;221 } 222 } 223 224 //------------------------------------------------------------------------------ 221 jet->BTag |= (gRandom->Uniform() <= formula->Eval(pt, eta, phi, e)) << fBitNumber; 222 } 223 } 224 225 //------------------------------------------------------------------------------ -
modules/Efficiency.cc
r4a93785 r95aa610 96 96 { 97 97 Candidate *candidate; 98 Double_t pt, eta, phi ;98 Double_t pt, eta, phi, e; 99 99 100 100 fItInputArray->Reset(); … … 106 106 phi = candidatePosition.Phi(); 107 107 pt = candidateMomentum.Pt(); 108 e = candidateMomentum.E(); 108 109 109 110 // apply an efficency formula 110 if(gRandom->Uniform() > fFormula->Eval(pt, eta )) continue;111 if(gRandom->Uniform() > fFormula->Eval(pt, eta, phi, e)) continue; 111 112 112 113 fOutputArray->Add(candidate); -
modules/EnergyScale.cc
r4a93785 r95aa610 104 104 momentum = candidate->Momentum; 105 105 106 scale = fFormula->Eval(momentum.Pt(), momentum.Eta() );106 scale = fFormula->Eval(momentum.Pt(), momentum.Eta(), momentum.Phi(), momentum.E()); 107 107 108 108 if(scale > 0.0) momentum *= scale; -
modules/EnergySmearing.cc
r4a93785 r95aa610 96 96 { 97 97 Candidate *candidate, *mother; 98 Double_t energy, eta, phi;98 Double_t pt, energy, eta, phi; 99 99 100 100 fItInputArray->Reset(); … … 103 103 const TLorentzVector &candidatePosition = candidate->Position; 104 104 const TLorentzVector &candidateMomentum = candidate->Momentum; 105 106 pt = candidatePosition.Pt(); 105 107 eta = candidatePosition.Eta(); 106 108 phi = candidatePosition.Phi(); … … 108 110 109 111 // apply smearing formula 110 energy = gRandom->Gaus(energy, fFormula->Eval( 0.0, eta, 0.0, energy));112 energy = gRandom->Gaus(energy, fFormula->Eval(pt, eta, phi, energy)); 111 113 112 114 if(energy <= 0.0) continue; -
modules/IdentificationMap.cc
r4a93785 r95aa610 127 127 { 128 128 Candidate *candidate; 129 Double_t pt, eta, phi ;129 Double_t pt, eta, phi, e; 130 130 TMisIDMap::iterator itEfficiencyMap; 131 131 pair <TMisIDMap::iterator, TMisIDMap::iterator> range; … … 143 143 phi = candidatePosition.Phi(); 144 144 pt = candidateMomentum.Pt(); 145 e = candidateMomentum.E(); 146 145 147 pdgCodeIn = candidate->PID; 146 148 charge = candidate->Charge; … … 164 166 pdgCodeOut = (it->second).first; 165 167 166 p = formula->Eval(pt, eta );168 p = formula->Eval(pt, eta, phi, e); 167 169 168 170 if(total <= r && r < total + p) -
modules/ImpactParameterSmearing.cc
r4a93785 r95aa610 97 97 Candidate *candidate, *particle, *mother; 98 98 Double_t xd, yd, zd, dxy, sx, sy, sz, ddxy; 99 Double_t pt, eta, px, py ;99 Double_t pt, eta, px, py, phi, e; 100 100 101 101 fItInputArray->Reset(); … … 110 110 eta = candidateMomentum.Eta(); 111 111 pt = candidateMomentum.Pt(); 112 phi = candidateMomentum.Phi(); 113 e = candidateMomentum.E(); 114 112 115 px = candidateMomentum.Px(); 113 116 py = candidateMomentum.Py(); … … 119 122 120 123 // calculate smeared values 121 sx = gRandom->Gaus(0.0, fFormula->Eval(pt, eta ));122 sy = gRandom->Gaus(0.0, fFormula->Eval(pt, eta ));123 sz = gRandom->Gaus(0.0, fFormula->Eval(pt, eta ));124 sx = gRandom->Gaus(0.0, fFormula->Eval(pt, eta, phi, e)); 125 sy = gRandom->Gaus(0.0, fFormula->Eval(pt, eta, phi, e)); 126 sz = gRandom->Gaus(0.0, fFormula->Eval(pt, eta, phi, e)); 124 127 125 128 xd += sx; … … 130 133 dxy = (xd*py - yd*px)/pt; 131 134 132 ddxy = gRandom->Gaus(0.0, fFormula->Eval(pt, eta ));135 ddxy = gRandom->Gaus(0.0, fFormula->Eval(pt, eta, phi, e)); 133 136 134 137 // fill smeared values in candidate -
modules/MomentumSmearing.cc
r4a93785 r95aa610 96 96 { 97 97 Candidate *candidate, *mother; 98 Double_t pt, eta, phi ;98 Double_t pt, eta, phi, e; 99 99 100 100 fItInputArray->Reset(); … … 106 106 phi = candidatePosition.Phi(); 107 107 pt = candidateMomentum.Pt(); 108 e = candidateMomentum.E(); 108 109 109 110 // apply smearing formula 110 pt = gRandom->Gaus(pt, fFormula->Eval(pt, eta ) * pt);111 pt = gRandom->Gaus(pt, fFormula->Eval(pt, eta, phi, e) * pt); 111 112 112 113 if(pt <= 0.0) continue;
Note:
See TracChangeset
for help on using the changeset viewer.