]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Saver calculation of rapdity.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 26 Mar 2002 14:19:36 +0000 (14:19 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 26 Mar 2002 14:19:36 +0000 (14:19 +0000)
EVGEN/AliGenMC.cxx

index 34b1e2e97e2559857588cdc85650b50dc3a86551..73b5d384312ab9458aa6780ed27a08c263969ac2 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.5  2002/03/12 17:02:20  morsch
+Change in calculation of rapidity, include case in which numerically e == pz.
+
 Revision 1.4  2001/11/27 13:13:07  morsch
 Maximum lifetime for long-lived particles to be put on the stack is parameter.
 It can be set via SetMaximumLifetime(..).
@@ -142,7 +145,7 @@ Bool_t AliGenMC::KinematicSelection(TParticle *particle, Int_t flag)
     Float_t phi   = Float_t(TMath::ATan2(Double_t(py),Double_t(px)));
     Double_t y, y0;
 
-    if (TMath::Abs(pz) != e) {
+    if (TMath::Abs(pz)  e) {
        y = 0.5*TMath::Log((e+pz)/(e-pz));
     } else {
        y = 1.e10;