]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Anti Hyperons added (Boris Hippolyte)
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 4 May 2005 03:21:55 +0000 (03:21 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 4 May 2005 03:21:55 +0000 (03:21 +0000)
EVGEN/AliGenSTRANGElib.cxx

index 2432f6bca59953e3229e79512123f28bbee8aa83..130eb88eea39d9d2ce85cfaede986da548877d37 100644 (file)
@@ -223,13 +223,17 @@ ClassImp(AliGenSTRANGElib)
   return ka*TMath::Exp(-ex);
 }
 
   return ka*TMath::Exp(-ex);
 }
 
- Int_t AliGenSTRANGElib::IpLambda(TRandom *)
+ Int_t AliGenSTRANGElib::IpLambda(TRandom *ran)
 {
 //                 particle composition
 //                 generation of fixed type of particle
 //
 {
 //                 particle composition
 //                 generation of fixed type of particle
 //
-
-        return  3122; //   Lambda 
+    Float_t random = ran->Rndm();
+    if (random < 0.5) {       
+      return  3122;   //   Lambda 
+    } else {  
+      return -3122;   //   Anti-Lambda
+    }
 }
 // End Lambda
 //============================================================================
 }
 // End Lambda
 //============================================================================
@@ -258,14 +262,17 @@ ClassImp(AliGenSTRANGElib)
   return ka*TMath::Exp(-ex);
 }
 
   return ka*TMath::Exp(-ex);
 }
 
- Int_t AliGenSTRANGElib::IpXiMinus(TRandom *)
+ Int_t AliGenSTRANGElib::IpXiMinus(TRandom *ran)
 {
 //                 particle composition
 //                 generation of fixed type of particle
 //
 {
 //                 particle composition
 //                 generation of fixed type of particle
 //
-
-        return  3312; //   Xi- (only)
-//        return  -3312; //   Xi+
+    Float_t random = ran->Rndm();
+    if (random < 0.5) {       
+      return  3312;   //   Xi- 
+    } else {  
+      return -3312;   //   Xi+
+    }
 }
 // End Ximinus
 //============================================================================
 }
 // End Ximinus
 //============================================================================
@@ -294,13 +301,18 @@ ClassImp(AliGenSTRANGElib)
   return ka*TMath::Exp(-ex);
 }
 
   return ka*TMath::Exp(-ex);
 }
 
- Int_t AliGenSTRANGElib::IpOmegaMinus(TRandom *)
+ Int_t AliGenSTRANGElib::IpOmegaMinus(TRandom * ran)
 {
 //                 particle composition
 //                 generation of fixed type of particle
 //
 
 {
 //                 particle composition
 //                 generation of fixed type of particle
 //
 
-        return  3334; //   Omega- 
+    Float_t random = ran->Rndm();
+    if (random < 0.5) {       
+      return  3334;   //   Omega- 
+    } else {  
+      return -3334;   //   Omega+
+    }
 }
 // End Omegaminus
 //============================================================================
 }
 // End Omegaminus
 //============================================================================