]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Correction in protection of Y()
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 6 Aug 2013 13:51:31 +0000 (13:51 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 6 Aug 2013 13:51:31 +0000 (13:51 +0000)
<http://savannah.cern.ch/bugs/?102193>

STEER/STEERBase/AliMCParticle.h

index c8b603e505ff8cc63b94d73ce27be55733ab2878..1dd366255b7a318e49123487171143e4c4412e29 100644 (file)
@@ -122,7 +122,7 @@ inline Double_t AliMCParticle::Y()         const
     Double_t e  = E();
     Double_t pz = Pz();
     
-    if ( TMath::Abs(e - pz) > FLT_EPSILON ) {
+    if ( TMath::Abs(e - TMath::Abs(pz)) > FLT_EPSILON ) {
        return 0.5*TMath::Log((e+pz)/(e-pz));
     } else { 
        return -999.;