Changeset 9c1d14a in git for classes/DelphesFormula.cc
- Timestamp:
- Jan 17, 2020, 12:00:56 PM (5 years ago)
- Branches:
- Timing
- Children:
- af6ce6a
- Parents:
- 83ee320
- git-author:
- Michele Selvaggi <michele.selvaggi@…> (01/17/20 12:00:56)
- git-committer:
- GitHub <noreply@…> (01/17/20 12:00:56)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
classes/DelphesFormula.cc
r83ee320 r9c1d14a 56 56 buffer.Append(*it); 57 57 } 58 buffer.ReplaceAll("pt", "[0]"); 59 buffer.ReplaceAll("eta", "[1]"); 60 buffer.ReplaceAll("phi", "[2]"); 61 buffer.ReplaceAll("energy", "[3]"); 62 buffer.ReplaceAll("r", "[4]"); 63 buffer.ReplaceAll("d0", "[5]"); 64 buffer.ReplaceAll("dz", "[6]"); 65 buffer.ReplaceAll("ctgTheta", "[7]"); 58 buffer.ReplaceAll("pt", "x"); 59 buffer.ReplaceAll("eta", "y"); 60 buffer.ReplaceAll("phi", "z"); 61 buffer.ReplaceAll("energy", "t"); 62 buffer.ReplaceAll("d0", "[0]"); 63 buffer.ReplaceAll("dz", "[1]"); 64 buffer.ReplaceAll("ctgTheta", "[2]"); 66 65 67 66 #if ROOT_VERSION_CODE < ROOT_VERSION(6, 3, 0) … … 79 78 80 79 Double_t DelphesFormula::Eval(Double_t pt, Double_t eta, Double_t phi, 81 Double_t energy, Double_t r, Double_tz,82 Double_t d0, Double_t dz, Double_tctgTheta)80 Double_t energy, Double_t d0, Double_t dz, 81 Double_t ctgTheta) 83 82 { 84 Double_t x[4] = { 0.0, 0.0, z, 0.0};85 Double_t params[ 8] = {pt, eta, phi, energy, r,d0, dz, ctgTheta};83 Double_t x[4] = {pt, eta, phi, energy}; 84 Double_t params[3] = {d0, dz, ctgTheta}; 86 85 return EvalPar(x, params); 87 86 }
Note:
See TracChangeset
for help on using the changeset viewer.