Changeset 7e227ae in git for modules/TrackCountingTauTagging.cc
- Timestamp:
- Dec 16, 2015, 3:15:15 PM (9 years ago)
- Branches:
- ImprovedOutputFile, Timing, dual_readout, llp, master
- Children:
- 59d6164
- Parents:
- 437e999
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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;
Note:
See TracChangeset
for help on using the changeset viewer.