|
|
virtual CLHEP::HepRandomEngine * | GetEngine (const std::string &streamName) override |
|
virtual void | CreateStream (uint32_t seed1, uint32_t seed2, const std::string &streamName) override |
|
bool | CreateStream (const std::vector< uint32_t > &seeds, const std::string &streamName) |
|
|
engineConstIter | begin (void) const |
|
engineConstIter | end (void) const |
|
unsigned int | number_of_streams (void) const |
|
virtual void | print (const std::string &streamName) override |
|
virtual void | print (void) override |
|
void | createStream (uint32_t seed1, uint32_t seed2, const std::string &streamName, short luxLevel) |
| allows to specify luxLevel More...
|
|
virtual CLHEP::HepRandomEngine * | setOnDefinedSeeds (uint32_t theSeed, const std::string &streamName) override |
|
virtual CLHEP::HepRandomEngine * | setOnDefinedSeeds (uint32_t eventNumber, uint32_t runNumber, const std::string &streamName) override |
|
CLHEP::HepRandomEngine * | oldSetOnDefinedSeeds (uint32_t theSeed, const std::string &streamName) |
| broken, temporarily keep for backward compatibility More...
|
|
CLHEP::HepRandomEngine * | oldSetOnDefinedSeeds (uint32_t eventNumber, uint32_t runNumber, const std::string &streamName) |
| broken, temporarily keep for backward compatibility More...
|
|
virtual bool | setAllOnDefinedSeeds (uint32_t theSeed) override |
| seed all streams we manage, combining theSeed and the stream names More...
|
|
virtual bool | setAllOnDefinedSeeds (uint32_t eventNumber, uint32_t runNumber) override |
| seed all streams, combining eventNumber, runNumber and the stream names More...
|
|
|
virtual StatusCode | initialize () override |
|
virtual StatusCode | finalize () override |
|
virtual void | handle (const Incident &) override |
| IIncidentListener implementation. Handles EndEvent incident. More...
|
|
|
|
StringArrayProperty | m_streams_seeds |
| seeds for the engines, this is a vector of strings of the form "EnginName Seed1 Seed2"
More...
|
|
Gaudi::Property< bool > | m_read_from_file {this,"ReadFromFile",false,"set/restore the status of the engine from file"} |
| read engine status from file More...
|
|
Gaudi::Property< std::string > | m_file_to_read |
| name of the file to read the engine status from More...
|
|
Gaudi::Property< bool > | m_save_to_file {this,"SaveToFile", true,"save the status of the engine to file"} |
| should current engine status be saved to file ? More...
|
|
Gaudi::Property< std::string > | m_file_to_write |
| name of the file to save the engine status to. More...
|
|
Gaudi::Property< bool > | m_eventReseed {this,"EventReseeding",true,"reseed every event using a hash of run and event numbers"} |
| reseed for every event More...
|
|
StringArrayProperty | m_reseedStreamNames {this,"ReseedStreamNames",{}, "the streams we are going to set the seeds of (default: all streams)"} |
| streams to be reseeded for every event
More...
|
|
Gaudi::Property< bool > | m_useOldBrokenSeeding {this,"UseOldBrokenSeeding",false} |
| backward compatibility only, broken 32/64 bits More...
|
|
std::map< std::string, uint32_t > | m_reseedingOffsets |
| optional offsets to combine to run/evt no when reseeding. More...
|
|
engineMap | m_engines |
|
std::map< std::string, std::vector< uint32_t > > | m_engines_copy |
| Random engine copy (for output to a file) More...
|
|
short | m_defaultLuxLevel |
| Ranlux luxury level to be used by default. More...
|
|
The default ATLAS random number engine manager, based on Ranlux64.
this service mantains a number of named, independent random number sequences. Each sequence is initialized by an entry of the form "SequenceName [LUXURY luxLevel (range 0:2 default 1) ] Seed1 Seed2" in the Seeds property. For example
Seeds = [
"PYTHIA LUXURY 2 4789899 989240512",
"PYTHIA_INIT LUXURY 0 820021 2347532",
"JIMMY 390020611 821000366",
"JIMMY_INIT LUXURY 0 820021 2347532",
"HERWIG 390020611 821000366", "HERWIG_INIT 820021 2347532" ]
At the end of the job in AtRanluxGenSvc::finalize(), the status of the engine is dumped as an array of uint32_t to the ASCII file "AtRanluxGenSvc.out":
PITHIA 4010409557 1071463497 2862960128 1068652744 145815808 1072305199 2363435712 1072215177 2274024032 1071848040 1607052768 1070928280 1688486400 1071840599 2068481888 1067315347 62450688 1072023539 312153120 1070857822 2535009472 1070427845 3698875904 1070616419 3726185024 0 0 11 1 202
PITHIA_INIT 4010409557 1057836705 3838836736 1072443439 2098440704 1066892778 3689119744 1072151794 3818888768 1071853913 3574320864 1071982408 3603063712 1071718264 2168786016 1072391676 2208235040 1072000044 3037871232 1072480358 3292613248 1071901297 579757952 1065720911 3788918784 0 0 11 1 202
This file can be used to restore the status of the engine in another job by setting the properties
ReadFromFile = true
FileToRead = path_to_ascii_file
Definition at line 54 of file AtRanluxGenSvc.h.