Changeset 7e83689 in git for classes/DelphesFormula.cc
- Timestamp:
- Mar 26, 2020, 4:01:20 PM (5 years ago)
- Branches:
- ImprovedOutputFile, master
- Children:
- 36fb740
- Parents:
- f298e48
- git-author:
- Roberto Preghenella <preghenella@…> (03/23/20 15:43:15)
- git-committer:
- Roberto Preghenella <preghenella@…> (03/26/20 16:01:20)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
classes/DelphesFormula.cc
rf298e48 r7e83689 65 65 buffer.ReplaceAll("ctgTheta", "[2]"); 66 66 buffer.ReplaceAll("radius", "[3]"); 67 buffer.ReplaceAll("density", "[4]"); 67 68 68 69 #if ROOT_VERSION_CODE < ROOT_VERSION(6, 3, 0) … … 82 83 { 83 84 84 Double_t d0 = 0., dz = 0., ctgTheta = 0., radius = 0. ;85 Double_t d0 = 0., dz = 0., ctgTheta = 0., radius = 0., density = 0.; 85 86 if (candidate) { 86 87 d0 = candidate->D0; … … 88 89 ctgTheta = candidate->CtgTheta; 89 90 radius = candidate->Position.Pt(); 91 density = candidate->ParticleDensity; 90 92 } 91 93 92 94 Double_t x[4] = {pt, eta, phi, energy}; 93 Double_t params[ 4] = {d0, dz, ctgTheta, radius};95 Double_t params[5] = {d0, dz, ctgTheta, radius, density}; 94 96 return EvalPar(x, params); 95 97 }
Note:
See TracChangeset
for help on using the changeset viewer.