ROOT logo
AliRoot » PYTHIA6 » AliPythiaRndm

class AliPythiaRndm

   Class: AliPythiaRndm
   Responsibilities: Interface to Root random number generator
                     from Fortran (re-implements FINCTION PYR from PYTHIA)
                     Very similar to AliHijingRndm
   Collaborators: AliPythia and AliGenPythia classes
   Example:

   root> AliPythia::Instance();
   root> AliPythiaRndm::SetPythiaRandom(new TRandom3());
   root> AliPythiaRndm::GetPythiaRandom()->SetSeed(0);
   root> cout<<"Seed "<< AliPythiaRndm::GetPythiaRandom()->GetSeed() <<endl;


Function Members (Methods)

public:
AliPythiaRndm()
AliPythiaRndm(const AliPythiaRndm&)
virtual~AliPythiaRndm()
static TClass*Class()
static TRandom*GetPythiaRandom()
virtual TClass*IsA() const
AliPythiaRndm&operator=(const AliPythiaRndm&)
static voidSetPythiaRandom(TRandom* ran = 0)
virtual voidShowMembers(TMemberInspector&)
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)

Data Members

private:
static TRandom*fgPythiaRandom! pointer to the random number generator

Class Charts

Inheritance Chart:
AliPythiaRndm

Function documentation

void SetPythiaRandom(TRandom* ran = 0)
 Sets the pointer to an existing random numbers generator

TRandom * GetPythiaRandom()
 Retrieves the pointer to the random numbers generator

AliPythiaRndm()
 Default constructor. The static data member is initialized
 in the implementation file
AliPythiaRndm(const AliPythiaRndm& )
 Copy constructor: no copy allowed for the object
virtual ~AliPythiaRndm()
 Destructor
AliPythiaRndm & operator=(const AliPythiaRndm& )
 Assignment operator: no assignment allowed