- Timestamp:
- Feb 14, 2019, 8:22:07 PM (6 years ago)
- Branches:
- ImprovedOutputFile, Timing, llp, master
- Children:
- d08af46
- Parents:
- 69da136
- Location:
- classes
- Files:
-
- 2 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
classes/DelphesFormula.cc
r69da136 ra1c9c16 60 60 buffer.ReplaceAll("phi", "z"); 61 61 buffer.ReplaceAll("energy", "t"); 62 buffer.ReplaceAll("d0", "[0]"); 63 buffer.ReplaceAll("dz", "[1]"); 64 buffer.ReplaceAll("ctgTheta", "[2]"); 62 65 63 66 #if ROOT_VERSION_CODE < ROOT_VERSION(6, 0, 0) … … 74 77 //------------------------------------------------------------------------------ 75 78 76 Double_t DelphesFormula::Eval(Double_t pt, Double_t eta, Double_t phi, Double_t energy) 79 Double_t DelphesFormula::Eval(Double_t pt, Double_t eta, Double_t phi, 80 Double_t energy, Double_t d0, Double_t dz, 81 Double_t ctgTheta) 77 82 { 78 83 Double_t x[4] = {pt, eta, phi, energy}; 79 return EvalPar(x); 84 Double_t params[3] = {d0, dz, ctgTheta}; 85 return EvalPar(x, params); 80 86 } 81 87 -
classes/DelphesFormula.h
r69da136 ra1c9c16 33 33 Int_t Compile(const char *expression); 34 34 35 Double_t Eval(Double_t pt, Double_t eta = 0, Double_t phi = 0, Double_t energy = 0); 35 Double_t Eval(Double_t pt, Double_t eta = 0, Double_t phi = 0, 36 Double_t energy = 0, Double_t d0 = 0, Double_t dz = 0, 37 Double_t ctgTheta = 0); 36 38 }; 37 39
Note:
See TracChangeset
for help on using the changeset viewer.