Bugs corrected (A. Dainese)
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 28 Aug 2007 12:11:49 +0000 (12:11 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 28 Aug 2007 12:11:49 +0000 (12:11 +0000)
EVGEN/AliGenCosmicsParam.cxx

index 71c6433..f53013d 100644 (file)
@@ -129,7 +129,9 @@ void AliGenCosmicsParam::Generate()
       // check kinematic cuts
       if(TestBit(kMomentumRange)) {
        if(ptot>fPMin && ptot<fPMax) okMom=kTRUE;
-      }
+      } else {
+       okMom=kTRUE;
+     }
 
       angleWRTVertical=TMath::ACos(TMath::Abs(p[1])/ptot); // acos(|py|/ptot)
       if(angleWRTVertical<fMaxAngleWRTVertical) okAngle=kTRUE;