- 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)
- Location:
- classes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
classes/DelphesClasses.cc
rf298e48 r7e83689 172 172 ExclYmerge45(0), 173 173 ExclYmerge56(0), 174 ParticleDensity(0), 174 175 fFactory(0), 175 176 fArray(0) -
classes/DelphesClasses.h
rf298e48 r7e83689 733 733 Double_t ExclYmerge56; 734 734 735 // event characteristics variables 736 Double_t ParticleDensity; // particle multiplicity density in the proximity of the particle 737 735 738 static CompBase *fgCompare; //! 736 739 const CompBase *GetCompare() const { return fgCompare; } -
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.