]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Use SetRandom() to initialize random number generator in constructor.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 2 Dec 2000 11:41:39 +0000 (11:41 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 2 Dec 2000 11:41:39 +0000 (11:41 +0000)
EVGEN/AliGenHijing.cxx
EVGEN/AliGenPythia.cxx

index 0656ce80b27fb6c0e87a426cf7fa5cedaa933e77..589ac1d7e9f7090091af702ee2a8688873e4322c 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.15  2000/11/30 20:29:02  morsch
+Initialise static variable sRandom in constructor: sRandom = fRandom;
+
 Revision 1.14  2000/11/30 07:12:50  alibrary
 Introducing new Rndm and QA classes
 
@@ -100,7 +103,8 @@ AliGenHijing::AliGenHijing(Int_t npart)
     fFlavor=0;
     fSpectators=1;
 //
-    sRandom=fRandom;
+// Set random number generator   
+    SetRandom();
 }
 
 AliGenHijing::AliGenHijing(const AliGenHijing & Hijing)
@@ -517,16 +521,3 @@ extern "C" {
   Double_t type_of_call rlu_hijing(Int_t & /*idum*/) 
   {return sRandom->Rndm();}
 }
-
-
-
-
-
-
-
-
-
-
-
-
-
index 2d52cedbb193b0f658bccab4d2d940681bf2d317..67de24c93007764cb3c27c8b390f6e2f12306f27 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.27  2000/11/30 20:29:02  morsch
+Initialise static variable sRandom in constructor: sRandom = fRandom;
+
 Revision 1.26  2000/11/30 07:12:50  alibrary
 Introducing new Rndm and QA classes
 
@@ -106,8 +109,8 @@ AliGenPythia::AliGenPythia(Int_t npart)
     SetPtHard();
     SetEnergyCMS();
     fDecayer = new AliDecayerPythia();
-    //
-    sRandom=fRandom;
+    // Set random number generator 
+    SetRandom();
 }
 
 AliGenPythia::AliGenPythia(const AliGenPythia & Pythia)