- Timestamp:
- Dec 16, 2015, 3:15:15 PM (9 years ago)
- Branches:
- ImprovedOutputFile, Timing, dual_readout, llp, master
- Children:
- 59d6164
- Parents:
- 437e999
- Location:
- modules
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/TauTagging.cc
r437e999 r7e227ae 126 126 Int_t i, size; 127 127 128 fBitNumber = GetInt("BitNumber", 0); 129 128 130 fDeltaR = GetDouble("DeltaR", 0.5); 129 131 … … 193 195 Candidate *jet, *tau, *daughter; 194 196 TLorentzVector tauMomentum; 195 Double_t pt, eta, phi ;197 Double_t pt, eta, phi, e; 196 198 TObjArray *tauArray; 197 199 map< Int_t, DelphesFormula * >::iterator itEfficiencyMap; … … 213 215 phi = jetMomentum.Phi(); 214 216 pt = jetMomentum.Pt(); 217 e = jetMomentum.E(); 215 218 216 219 // loop over all input taus … … 252 255 253 256 // apply an efficency formula 254 jet->TauTag = gRandom->Uniform() <= formula->Eval(pt, eta); 257 jet->TauTag |= (gRandom->Uniform() <= formula->Eval(pt, eta, phi, e)) << fBitNumber; 258 255 259 // set tau charge 256 260 jet->Charge = charge; -
modules/TauTagging.h
r437e999 r7e227ae 55 55 56 56 private: 57 57 58 Int_t fBitNumber; 59 58 60 Double_t fDeltaR; 59 61 -
modules/TrackCountingTauTagging.cc
r437e999 r7e227ae 130 130 Int_t i, size; 131 131 132 fBitNumber = GetInt("BitNumber", 0); 133 132 134 fDeltaR = GetDouble("DeltaR", 0.5); 133 135 fDeltaRTrack = GetDouble("DeltaRTrack", 0.2); … … 203 205 Candidate *jet, *tau, *track, *daughter; 204 206 TLorentzVector tauMomentum; 205 Double_t pt, eta, phi ;207 Double_t pt, eta, phi, e; 206 208 TObjArray *tauArray; 207 209 map< Int_t, DelphesFormula * >::iterator itEfficiencyMap; … … 228 230 phi = jetMomentum.Phi(); 229 231 pt = jetMomentum.Pt(); 232 e = jetMomentum.E(); 233 230 234 231 235 // loop over all input tracks … … 288 292 289 293 // apply an efficency formula 290 jet->TauTag = gRandom->Uniform() <= formula->Eval(pt, eta); 294 jet->TauTag |= (gRandom->Uniform() <= formula->Eval(pt, eta, phi, e)) << fBitNumber; 295 296 291 297 // set tau charge 292 298 jet->Charge = charge; -
modules/TrackCountingTauTagging.h
r437e999 r7e227ae 39 39 private: 40 40 41 Int_t fBitNumber; 42 41 43 Double_t fDeltaR; 42 44 Double_t fDeltaRTrack;
Note:
See TracChangeset
for help on using the changeset viewer.