From: morsch Date: Tue, 26 Mar 2002 14:19:36 +0000 (+0000) Subject: Saver calculation of rapdity. X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=commitdiff_plain;h=fef61e14ab6bc0146ea8d74626a30753a868519e;hp=67af833f124616fe2119cfcc4eb92ac1f3baaff2 Saver calculation of rapdity. --- diff --git a/EVGEN/AliGenMC.cxx b/EVGEN/AliGenMC.cxx index 34b1e2e97e2..73b5d384312 100644 --- a/EVGEN/AliGenMC.cxx +++ b/EVGEN/AliGenMC.cxx @@ -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;