19#ifdef __GENIE_PYTHIA6_ENABLED__
32 LOG(
"Rndm",
pINFO) <<
"RandomGen late initialization";
49 if ( gSystem->Getenv(
"GSEED") ) {
52 <<
"************************************************************************************** \n"
53 <<
"The random number seed is no longer set via the $GSEED variable.\n"
54 <<
"Please use the --seed option implemented in all GENIE apps or, if you access RandomGen \n"
55 <<
"directly in your user code, use RandomGen::SetSeed(long int seed).\n"
56 <<
"Unset $GSEED to continue running GENIE. \n"
57 <<
"************************************************************************************** \n";
90 <<
"random number seed"
91 << ((
fInitalized) ?
": " :
" at random number generator initialization: ")
97 this->
RndDec ().SetSeed(seed);
98 this->
RndFsi ().SetSeed(seed);
99 this->
RndLep ().SetSeed(seed);
100 this->
RndISel ().SetSeed(seed);
101 this->
RndGeom ().SetSeed(seed);
102 this->
RndFlux ().SetSeed(seed);
103 this->
RndEvg ().SetSeed(seed);
104 this->
RndNum ().SetSeed(seed);
105 this->
RndGen ().SetSeed(seed);
108 gRandom ->SetSeed (seed);
110#ifdef __GENIE_PYTHIA6_ENABLED__
112 TPythia6 * pythia6 = TPythia6::Instance();
113 pythia6->SetMRPY(1, seed);
118 LOG(
"Rndm",
pINFO) <<
"RndDec seed = " << this->
RndDec ().GetSeed();
119 LOG(
"Rndm",
pINFO) <<
"RndFsi seed = " << this->
RndFsi ().GetSeed();
120 LOG(
"Rndm",
pINFO) <<
"RndLep seed = " << this->
RndLep ().GetSeed();
124 LOG(
"Rndm",
pINFO) <<
"RndEvg seed = " << this->
RndEvg ().GetSeed();
125 LOG(
"Rndm",
pINFO) <<
"RndNum seed = " << this->
RndNum ().GetSeed();
126 LOG(
"Rndm",
pINFO) <<
"RndGen seed = " << this->
RndGen ().GetSeed();
127 LOG(
"Rndm",
pINFO) <<
"gRandom seed = " << gRandom->GetSeed();
128#ifdef __GENIE_PYTHIA6_ENABLED__
129 LOG(
"Rndm",
pINFO) <<
"PYTHIA6 seed = " << pythia6->GetMRPY(1);
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE,...
A singleton holding random number generator classes. All random number generation in GENIE should tak...
bool fInitalized
done initializing singleton?
TRandom3 & RndGeom(void) const
rnd number generator used by geometry drivers
TRandom3 & RndEvg(void) const
rnd number generator used by the event generation drivers
TRandom3 & RndHadro(void) const
rnd number generator used by hadronization models
static RandomGen * Instance()
Access instance.
TRandom3 & RndLep(void) const
rnd number generator used by final state primary lepton generators
TRandom3 & RndDec(void) const
rnd number generator used by decay models
TRandom3 * fRandom3
Mersenne Twistor.
TRandom3 & RndISel(void) const
rnd number generator used by interaction selectors
void SetSeed(long int seed)
static RandomGen * fInstance
void InitRandomGenerators(long int seed)
TRandom3 & RndFlux(void) const
rnd number generator used by flux drivers
TRandom3 & RndFsi(void) const
rnd number generator used by intranuclear cascade monte carlos
TRandom3 & RndKine(void) const
rnd number generator used by kinematics generators
long int fCurrSeed
random number generator seed number
TRandom3 & RndGen(void) const
rnd number generator for generic usage
TRandom3 & RndNum(void) const
rnd number generator used by MC integrators & other numerical methods
Misc GENIE control constants.
static const unsigned int kDefaultRandSeed
THE MAIN GENIE PROJECT NAMESPACE
void DummyMethodAndSilentCompiler()