Changeset 7e227ae in git for modules/TauTagging.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/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;
Note:
See TracChangeset
for help on using the changeset viewer.