Changeset 369 in svn
- Timestamp:
- May 10, 2009, 8:14:19 PM (16 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/LHEFConverter.cc
r295 r369 90 90 element->PT = momentum.Perp(); 91 91 signPz = (element->Pz >= 0.0) ? 1.0 : -1.0; 92 element->Eta = element->PT == 0.0 ? signPz*999.9 : momentum.Eta(); 92 //element->Eta = element->PT == 0.0 ? signPz*999.9 : momentum.Eta(); to avoid a warning from ROOT, replace the "==0" by "< 1e-6" 93 element->Eta = element->PT < 1e-6 ? signPz*999.9 : momentum.Eta(); 93 94 element->Phi = momentum.Phi(); 94 95 element->Rapidity = element->PT == 0.0 ? signPz*999.9 : momentum.Rapidity(); -
trunk/src/STDHEPConverter.cc
r350 r369 89 89 element->PT = momentum.Perp(); 90 90 signPz = (element->Pz >= 0.0) ? 1.0 : -1.0; 91 element->Eta = element->PT == 0.0 ? signPz*999.9 : momentum.Eta(); 91 //element->Eta = element->PT == 0.0 ? signPz*999.9 : momentum.Eta(); to avoid a warning from ROOT, replace the "==0" by "< 1e-6" 92 element->Eta = element->PT <1e-6 ? signPz*999.9 : momentum.Eta(); 92 93 element->Phi = momentum.Phi(); 93 94
Note:
See TracChangeset
for help on using the changeset viewer.