Stand-alone library for ESD. Possibility to use only root and lidESD.so for analysis...
[u/mrichter/AliRoot.git] / HIJING / AliHijingRndm.cxx
index d17334b1b5bed995fe232c2be92d83e64cdd5ae2..0aad668d4da71286956a4455b27d672051ba7618 100644 (file)
 
 //-----------------------------------------------------------------------------
 //   Class: AliHijingRndm
-//   Random Number Interface to Fortran (FINCTION RLU_HIJING from HIJING)
-//   Since AliGenHijing belongs to another module (THijing) one cannot
-//   pass the ponter to the generator via static variable
-//   Author:
+//   Responsibilities: Interface to Root random number generator 
+//                     from Fortran (re-implements FINCTION RLU_HIJING 
+//                     from HIJING)
+//   Note: Since AliGenHijing belongs to another module (THijing) one cannot
+//         pass the ponter to the generator via static variable
+//   Collaborators: AliGenHijing class
+//   Example:
+//
+//   root> AliGenHijing *gener = new AliGenHijing(-1);
+//   root> AliHijingRndm::SetHijingRandom(new TRandom3());
+//   root> AliHijingRndm::GetHijingRandom()->SetSeed(0);
+//   root> cout<<"Seed "<< AliHijingRndm::GetHijingRandom()->GetSeed() <<endl;
 //-----------------------------------------------------------------------------
 
-#include <TError.h>
+#include <TRandom.h>
 
 #include "AliHijingRndm.h"
 
@@ -31,40 +39,6 @@ TRandom * AliHijingRndm::fgHijingRandom=0;
 
 ClassImp(AliHijingRndm)
 
-//_______________________________________________________________________
-AliHijingRndm::AliHijingRndm()
-{
-  // 
-  // Default ctor
-  //
-}
-
-//_______________________________________________________________________
-AliHijingRndm::AliHijingRndm(const AliHijingRndm& rn)
-{
-  //
-  // Copy constructor
-  //
-  rn.Copy(*this);
-}
-
-//_______________________________________________________________________
-AliHijingRndm::~AliHijingRndm() {
-  //
-  // Destructor
-  //
-  fgHijingRandom=0;
-}
-
-//_______________________________________________________________________
-void AliHijingRndm::Copy(AliHijingRndm&) const
-{
-  //
-  // No copy is allowed
-  //
-  ::Fatal("Copy","Not implemented\n");
-}
-
 //_______________________________________________________________________
 void AliHijingRndm::SetHijingRandom(TRandom *ran) {
   //