Changeset 413 in svn
- Timestamp:
- May 22, 2009, 2:22:39 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/LHEFConverter.cc
r380 r413 98 98 signPz = (element->Pz >= 0.0) ? 1.0 : -1.0; 99 99 //element->Eta = element->PT == 0.0 ? signPz*999.9 : momentum.Eta(); to avoid a warning from ROOT, replace the "==0" by "< 1e-6" 100 element->Eta = element->PT < 1 e-6 ? signPz*999.9 : momentum.Eta();100 element->Eta = element->PT < 1E-6 ? signPz*999.9 : momentum.Eta(); 101 101 element->Phi = momentum.Phi(); 102 element->Rapidity = element->PT == 0.0? signPz*999.9 : momentum.Rapidity();102 element->Rapidity = element->PT < 1E-6 ? signPz*999.9 : momentum.Rapidity(); 103 103 element->LifeTime = hepeup.VTIMUP[particle]; 104 104 element->Spin = hepeup.SPINUP[particle];
Note:
See TracChangeset
for help on using the changeset viewer.