]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Bug in calc. of Y() corrected.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 11 Jun 2008 16:42:34 +0000 (16:42 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 11 Jun 2008 16:42:34 +0000 (16:42 +0000)
STEER/AliMCParticle.h

index a652fd39a2d4e2bf122e026cedfaff2edefc4869..092b36e966521474056cdaff3e3b9f706777edf8 100644 (file)
@@ -100,8 +100,9 @@ inline Double_t AliMCParticle::M()         const
 inline Double_t AliMCParticle::Y()         const 
 {
     Double_t e  = E();
-    Double_t pz = TMath::Abs(Pz());
-    if (e != pz) { 
+    Double_t pz = Pz();
+    
+    if (e != TMath::Abs(pz)) { 
        return 0.5*TMath::Log((e+pz)/(e-pz));
     } else { 
        return -999.;