]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Removing fRandome
authorfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 23 Mar 2010 14:39:09 +0000 (14:39 +0000)
committerfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 23 Mar 2010 14:39:09 +0000 (14:39 +0000)
STEER/AliRun.cxx
STEER/AliRun.h

index bd38e1ac27fd1faadb33c22aea8838033d78a3f1..8cde7de914e3599a8a0c54fb7cbf3949415cfcad 100644 (file)
@@ -71,7 +71,6 @@ AliRun::AliRun():
   fMCApp(0),
   fNdets(0),
   fConfigFunction(""),
-  fRandom(0),
   fBaseFileName(""),
   fRunLoader(0x0)
 {
@@ -91,7 +90,6 @@ AliRun::AliRun(const char *name, const char *title):
   fMCApp(new AliMC(GetName(),GetTitle())),
   fNdets(0),
   fConfigFunction("Config();"),
-  fRandom(new TRandom3()),
   fBaseFileName(""),
   fRunLoader(0x0)
 {
@@ -105,7 +103,7 @@ AliRun::AliRun(const char *name, const char *title):
   gAlice     = this;
 
   // Set random number generator
-  gRandom = fRandom;
+  gRandom = new TRandom3();
 
   if (gSystem->Getenv("CONFIG_SEED")) {
      gRandom->SetSeed(static_cast<UInt_t>(atoi(gSystem->Getenv("CONFIG_SEED"))));
@@ -361,8 +359,7 @@ void AliRun::Streamer(TBuffer &R__b)
     if (!gAlice) gAlice = this;
     AliRun::Class()->ReadBuffer(R__b, this);
     gROOT->GetListOfBrowsables()->Add(this,"Run");
-
-    gRandom = fRandom;
+    gRandom = new TRandom3();
   } else {
     AliRun::Class()->WriteBuffer(R__b, this);
   }
index d4885a45a426fae1ff74b5f4a51c5e6bc073e58b..40e77f331199c71ca180245c9c17d36e2c6690f2 100644 (file)
@@ -73,14 +73,13 @@ protected:
   AliMC         *fMCApp;             //  Pointer to virtual MC Application
   Int_t          fNdets;             //  Number of detectors
   TString        fConfigFunction;    //  Configuration file to be executed
-  TRandom       *fRandom;            //  Pointer to the random number generator
   TString        fBaseFileName;      //  Name of the base root file
   AliRunLoader  *fRunLoader;         //! run getter - written as a separate object
 private:
   AliRun(const AliRun&); // Not implemented
   AliRun& operator = (const AliRun&); // Not implemented
 
-  ClassDef(AliRun,14)      //Supervisor class for all Alice detectors
+  ClassDef(AliRun,15)      //Supervisor class for all Alice detectors
 };
  
 R__EXTERN  AliRun *gAlice;