Fork me on GitHub

Changeset 413 in svn


Ignore:
Timestamp:
May 22, 2009, 2:22:39 PM (16 years ago)
Author:
severine ovyn
Message:

remove GEN error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/LHEFConverter.cc

    r380 r413  
    9898    signPz = (element->Pz >= 0.0) ? 1.0 : -1.0;
    9999    //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 < 1e-6 ? signPz*999.9 : momentum.Eta();
     100    element->Eta = element->PT < 1E-6 ? signPz*999.9 : momentum.Eta();
    101101    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();
    103103    element->LifeTime = hepeup.VTIMUP[particle];
    104104    element->Spin = hepeup.SPINUP[particle];
Note: See TracChangeset for help on using the changeset viewer.