Geant4-11
Public Member Functions | Static Public Member Functions | Static Protected Attributes | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes
CLHEP::RandFlat Class Reference

#include <RandFlat.h>

Inheritance diagram for CLHEP::RandFlat:
CLHEP::HepRandom CLHEP::RandBit

Public Member Functions

HepRandomEngineengine ()
 
double fire ()
 
double fire (double a, double b)
 
double fire (double width)
 
void fireArray (const int size, double *vect)
 
void fireArray (const int size, double *vect, double lx, double dx)
 
int fireBit ()
 
long fireInt (long a1, long n)
 
long fireInt (long n)
 
double flat ()
 
double flat (HepRandomEngine *theNewEngine)
 
void flatArray (const int size, double *vect)
 
void flatArray (HepRandomEngine *theNewEngine, const int size, double *vect)
 
std::istream & get (std::istream &is)
 
std::string name () const
 
double operator() ()
 
double operator() (double a, double b)
 
double operator() (double width)
 
std::ostream & put (std::ostream &os) const
 
 RandFlat (HepRandomEngine &anEngine)
 
 RandFlat (HepRandomEngine &anEngine, double a, double b)
 
 RandFlat (HepRandomEngine &anEngine, double width)
 
 RandFlat (HepRandomEngine *anEngine)
 
 RandFlat (HepRandomEngine *anEngine, double a, double b)
 
 RandFlat (HepRandomEngine *anEngine, double width)
 
virtual ~RandFlat ()
 

Static Public Member Functions

static int createInstance ()
 
static std::string distributionName ()
 
static HepRandomEnginegetTheEngine ()
 
static HepRandomgetTheGenerator ()
 
static long getTheSeed ()
 
static const long * getTheSeeds ()
 
static void getTheTableSeeds (long *seeds, int index)
 
static std::istream & restoreDistState (std::istream &is)
 
static void restoreEngineStatus (const char filename[]="Config.conf")
 
static std::istream & restoreFullState (std::istream &is)
 
static std::istream & restoreStaticRandomStates (std::istream &is)
 
static std::ostream & saveDistState (std::ostream &os)
 
static void saveEngineStatus (const char filename[]="Config.conf")
 
static std::ostream & saveFullState (std::ostream &os)
 
static std::ostream & saveStaticRandomStates (std::ostream &os)
 
static void setTheEngine (HepRandomEngine *theNewEngine)
 
static void setTheSeed (long seed, int lxr=3)
 
static void setTheSeeds (const long *seeds, int aux=-1)
 
static double shoot ()
 
static double shoot (double a, double b)
 
static double shoot (double width)
 
static double shoot (HepRandomEngine *anEngine)
 
static double shoot (HepRandomEngine *anEngine, double a, double b)
 
static double shoot (HepRandomEngine *anEngine, double width)
 
static void shootArray (const int size, double *vect)
 
static void shootArray (const int size, double *vect, double lx, double dx)
 
static void shootArray (HepRandomEngine *anEngine, const int size, double *vect)
 
static void shootArray (HepRandomEngine *anEngine, const int size, double *vect, double lx, double dx)
 
static int shootBit ()
 
static int shootBit (HepRandomEngine *)
 
static long shootInt (HepRandomEngine *anEngine, long a1, long n)
 
static long shootInt (HepRandomEngine *anEngine, long n)
 
static long shootInt (long a1, long n)
 
static long shootInt (long n)
 
static void showEngineStatus ()
 

Static Protected Attributes

static const long seedTable [215][2]
 

Private Member Functions

void fireBits ()
 

Static Private Member Functions

static void shootBits ()
 
static void shootBits (HepRandomEngine *)
 

Private Attributes

double defaultA
 
double defaultB
 
double defaultWidth
 
unsigned long firstUnusedBit
 
std::shared_ptr< HepRandomEnginelocalEngine
 
unsigned long randomInt
 

Static Private Attributes

static const unsigned long MSB = 1ul<<RandFlat::MSBBits
 
static const int MSBBits = 15
 
static CLHEP_THREAD_LOCAL unsigned long staticFirstUnusedBit = 0
 
static CLHEP_THREAD_LOCAL unsigned long staticRandomInt = 0
 

Detailed Description

Author
Gabri.nosp@m.ele..nosp@m.Cosmo.nosp@m.@cer.nosp@m.n.ch

Definition at line 41 of file RandFlat.h.

Constructor & Destructor Documentation

◆ RandFlat() [1/6]

CLHEP::RandFlat::RandFlat ( HepRandomEngine anEngine)
inline

◆ RandFlat() [2/6]

CLHEP::RandFlat::RandFlat ( HepRandomEngine anEngine,
double  width 
)
inline

◆ RandFlat() [3/6]

CLHEP::RandFlat::RandFlat ( HepRandomEngine anEngine,
double  a,
double  b 
)
inline

◆ RandFlat() [4/6]

CLHEP::RandFlat::RandFlat ( HepRandomEngine anEngine)
inline

◆ RandFlat() [5/6]

CLHEP::RandFlat::RandFlat ( HepRandomEngine anEngine,
double  width 
)
inline

◆ RandFlat() [6/6]

CLHEP::RandFlat::RandFlat ( HepRandomEngine anEngine,
double  a,
double  b 
)
inline

◆ ~RandFlat()

CLHEP::RandFlat::~RandFlat ( )
virtual

Definition at line 46 of file RandFlat.cc.

46 {
47}

Member Function Documentation

◆ createInstance()

int CLHEP::HepRandom::createInstance ( )
staticinherited

◆ distributionName()

static std::string CLHEP::RandFlat::distributionName ( )
inlinestatic

Definition at line 136 of file RandFlat.h.

136{return "RandFlat";}

Referenced by restoreDistState(), and saveDistState().

◆ engine()

HepRandomEngine & CLHEP::RandFlat::engine ( )
virtual

Reimplemented from CLHEP::HepRandom.

Definition at line 44 of file RandFlat.cc.

44{return *localEngine;}
std::shared_ptr< HepRandomEngine > localEngine
Definition: RandFlat.h:199

References localEngine.

◆ fire() [1/3]

double CLHEP::RandFlat::fire ( )
inline

Referenced by fireArray(), and operator()().

◆ fire() [2/3]

double CLHEP::RandFlat::fire ( double  a,
double  b 
)
inline

◆ fire() [3/3]

double CLHEP::RandFlat::fire ( double  width)
inline

◆ fireArray() [1/2]

void CLHEP::RandFlat::fireArray ( const int  size,
double *  vect 
)

Definition at line 88 of file RandFlat.cc.

89{
90 int i;
91
92 for (i=0; i<size; ++i)
93 vect[i] = fire( defaultA, defaultB );
94}
double defaultB
Definition: RandFlat.h:202
double defaultA
Definition: RandFlat.h:201

References defaultA, defaultB, and fire().

◆ fireArray() [2/2]

void CLHEP::RandFlat::fireArray ( const int  size,
double *  vect,
double  lx,
double  dx 
)

Definition at line 96 of file RandFlat.cc.

98{
99 int i;
100
101 for (i=0; i<size; ++i)
102 vect[i] = fire( lx, dx );
103}

References fire().

◆ fireBit()

int CLHEP::RandFlat::fireBit ( )
inline

◆ fireBits()

void CLHEP::RandFlat::fireBits ( )
inlineprivate

◆ fireInt() [1/2]

long CLHEP::RandFlat::fireInt ( long  a1,
long  n 
)
inline

◆ fireInt() [2/2]

long CLHEP::RandFlat::fireInt ( long  n)
inline

◆ flat() [1/2]

double CLHEP::HepRandom::flat ( )
inherited

◆ flat() [2/2]

double CLHEP::HepRandom::flat ( HepRandomEngine theNewEngine)
inlineinherited

◆ flatArray() [1/2]

void CLHEP::HepRandom::flatArray ( const int  size,
double *  vect 
)
inherited

◆ flatArray() [2/2]

void CLHEP::HepRandom::flatArray ( HepRandomEngine theNewEngine,
const int  size,
double *  vect 
)
inlineinherited

◆ get()

std::istream & CLHEP::RandFlat::get ( std::istream &  is)
virtual

Reimplemented from CLHEP::HepRandom.

Definition at line 173 of file RandFlat.cc.

173 {
174 std::string inName;
175 is >> inName;
176 if (inName != name()) {
177 is.clear(std::ios::badbit | is.rdstate());
178 std::cerr << "Mismatch when expecting to read state of a "
179 << name() << " distribution\n"
180 << "Name found was " << inName
181 << "\nistream is left in the badbit state\n";
182 return is;
183 }
184 if (possibleKeywordInput(is, "Uvec", randomInt)) {
185 std::vector<unsigned long> t(2);
186 is >> randomInt >> firstUnusedBit;
187 is >> defaultWidth >>t[0]>>t[1]; defaultWidth = DoubConv::longs2double(t);
188 is >> defaultA >> t[0] >> t[1]; defaultA = DoubConv::longs2double(t);
189 is >> defaultB >> t[0] >> t[1]; defaultB = DoubConv::longs2double(t);
190 if (!is) {
191 is.clear(std::ios::badbit | is.rdstate());
192 std::cerr << "\nRandFlat input failed"
193 << "\nInput stream is probably mispositioned now." << std::endl;
194 return is;
195 }
196 return is;
197 }
198 // is >> randomInt encompassed by possibleKeywordInput
199 is >> firstUnusedBit;
200 is >> defaultWidth >> defaultA >> defaultB;
201 return is;
202}
static double longs2double(const std::vector< unsigned long > &v)
Definition: DoubConv.cc:110
unsigned long firstUnusedBit
Definition: RandFlat.h:195
std::string name() const
Definition: RandFlat.cc:43
double defaultWidth
Definition: RandFlat.h:200
unsigned long randomInt
Definition: RandFlat.h:194
bool possibleKeywordInput(IS &is, const std::string &key, T &t)
Definition: RandomEngine.h:166

References defaultA, defaultB, defaultWidth, firstUnusedBit, CLHEP::DoubConv::longs2double(), name(), CLHEP::possibleKeywordInput(), and randomInt.

Referenced by CLHEP::RandBit::get().

◆ getTheEngine()

HepRandomEngine * CLHEP::HepRandom::getTheEngine ( )
staticinherited

◆ getTheGenerator()

HepRandom * CLHEP::HepRandom::getTheGenerator ( )
staticinherited

◆ getTheSeed()

long CLHEP::HepRandom::getTheSeed ( )
staticinherited

◆ getTheSeeds()

const long * CLHEP::HepRandom::getTheSeeds ( )
staticinherited

◆ getTheTableSeeds()

void CLHEP::HepRandom::getTheTableSeeds ( long *  seeds,
int  index 
)
staticinherited

Definition at line 254 of file Random.cc.

255{
256 if ((index >= 0) && (index < 215)) {
257 seeds[0] = seedTable[index][0];
258 seeds[1] = seedTable[index][1];
259 }
260 else seeds = NULL;
261}
static const long seedTable[215][2]
Definition: Random.h:156

Referenced by CLHEP::HepJamesRandom::HepJamesRandom(), CLHEP::MTwistEngine::MTwistEngine(), CLHEP::RanecuEngine::RanecuEngine(), CLHEP::Ranlux64Engine::Ranlux64Engine(), CLHEP::RanluxEngine::RanluxEngine(), and CLHEP::RanecuEngine::setSeed().

◆ name()

std::string CLHEP::RandFlat::name ( ) const
virtual

Reimplemented from CLHEP::HepRandom.

Definition at line 43 of file RandFlat.cc.

43{return "RandFlat";}

Referenced by source.g4viscp.G4Scene::create_scene(), get(), mcscore.MCParticle::printout(), put(), and source.g4viscp.G4Scene::update_scene().

◆ operator()() [1/3]

double CLHEP::RandFlat::operator() ( )
virtual

Reimplemented from CLHEP::HepRandom.

Definition at line 49 of file RandFlat.cc.

49 {
50 return fire( defaultA, defaultB );
51}

References defaultA, defaultB, and fire().

◆ operator()() [2/3]

double CLHEP::RandFlat::operator() ( double  a,
double  b 
)

Definition at line 57 of file RandFlat.cc.

57 {
58 return fire( a, b );
59}

References fire().

◆ operator()() [3/3]

double CLHEP::RandFlat::operator() ( double  width)

Definition at line 53 of file RandFlat.cc.

53 {
54 return fire( w );
55}

References fire().

◆ put()

std::ostream & CLHEP::RandFlat::put ( std::ostream &  os) const
virtual

Reimplemented from CLHEP::HepRandom.

Definition at line 157 of file RandFlat.cc.

157 {
158 int pr=os.precision(20);
159 std::vector<unsigned long> t(2);
160 os << " " << name() << "\n";
161 os << "Uvec" << "\n";
162 os << randomInt << " " << firstUnusedBit << "\n";
164 os << defaultWidth << " " << t[0] << " " << t[1] << "\n";
166 os << defaultA << " " << t[0] << " " << t[1] << "\n";
168 os << defaultB << " " << t[0] << " " << t[1] << "\n";
169 os.precision(pr);
170 return os;
171}
static std::vector< unsigned long > dto2longs(double d)
Definition: DoubConv.cc:94

References defaultA, defaultB, defaultWidth, CLHEP::DoubConv::dto2longs(), firstUnusedBit, name(), and randomInt.

Referenced by CLHEP::RandBit::put().

◆ restoreDistState()

std::istream & CLHEP::RandFlat::restoreDistState ( std::istream &  is)
static

Definition at line 213 of file RandFlat.cc.

213 {
214 std::string inName;
215 is >> inName;
216 if (inName != distributionName()) {
217 is.clear(std::ios::badbit | is.rdstate());
218 std::cerr << "Mismatch when expecting to read static state of a "
219 << distributionName() << " distribution\n"
220 << "Name found was " << inName
221 << "\nistream is left in the badbit state\n";
222 return is;
223 }
224 std::string keyword;
225 std::string c1;
226 std::string c2;
227 is >> keyword;
228 if (keyword!="RANDFLAT") {
229 is.clear(std::ios::badbit | is.rdstate());
230 std::cerr << "Mismatch when expecting to read RANDFLAT bit cache info: "
231 << keyword << "\n";
232 return is;
233 }
234 is >> c1 >> staticRandomInt >> c2 >> staticFirstUnusedBit;
235 return is;
236}
static CLHEP_THREAD_LOCAL unsigned long staticRandomInt
Definition: RandFlat.h:196
static CLHEP_THREAD_LOCAL unsigned long staticFirstUnusedBit
Definition: RandFlat.h:197
static std::string distributionName()
Definition: RandFlat.h:136

References distributionName(), staticFirstUnusedBit, and staticRandomInt.

Referenced by CLHEP::StaticRandomStates::restore(), CLHEP::RandBit::restoreDistState(), and restoreFullState().

◆ restoreEngineStatus()

void CLHEP::RandFlat::restoreEngineStatus ( const char  filename[] = "Config.conf")
static

Definition at line 120 of file RandFlat.cc.

120 {
121
122 // First restore the engine status just like the base class would do:
123 getTheEngine()->restoreStatus( filename );
124
125 // Now find the line describing the cached data:
126
127 std::ifstream infile ( filename, std::ios::in );
128 if (!infile) return;
129 char inputword[] = "NO_KEYWORD "; // leaves room for 14 characters plus \0
130 while (true) {
131 infile.width(13);
132 infile >> inputword;
133 if (strcmp(inputword,"RANDFLAT")==0) break;
134 if (infile.eof()) break;
135 // If the file ends without the RANDFLAT line, that means this
136 // was a file produced by an earlier version of RandFlat. We will
137 // replicate the old behavior in that case: staticFirstUnusedBit
138 // and staticRandomInt retain their existing values.
139 }
140
141 // Then read and use the caching info:
142
143 if (strcmp(inputword,"RANDFLAT")==0) {
144 char setword[40]; // the longest, staticFirstUnusedBit: has length 21
145 infile.width(39);
146 infile >> setword;
147 // setword should be staticRandomInt:
148 infile >> staticRandomInt;
149 infile.width(39);
150 infile >> setword;
151 // setword should be staticFirstUnusedBit:
152 infile >> staticFirstUnusedBit;
153 }
154
155} // restoreEngineStatus
virtual void restoreStatus(const char filename[]="Config.conf")=0
static HepRandomEngine * getTheEngine()
Definition: Random.cc:268

References CLHEP::HepRandom::getTheEngine(), CLHEP::HepRandomEngine::restoreStatus(), staticFirstUnusedBit, and staticRandomInt.

◆ restoreFullState()

std::istream & CLHEP::RandFlat::restoreFullState ( std::istream &  is)
static

Definition at line 244 of file RandFlat.cc.

244 {
247 return is;
248}
static std::istream & restoreFullState(std::istream &is)
Definition: Random.cc:293
static std::istream & restoreDistState(std::istream &is)
Definition: RandFlat.cc:213

References restoreDistState(), and CLHEP::HepRandom::restoreFullState().

Referenced by CLHEP::RandBit::restoreFullState().

◆ restoreStaticRandomStates()

std::istream & CLHEP::HepRandom::restoreStaticRandomStates ( std::istream &  is)
staticinherited

Definition at line 302 of file Random.cc.

302 {
304}
static std::istream & restore(std::istream &is)

References CLHEP::StaticRandomStates::restore().

◆ saveDistState()

std::ostream & CLHEP::RandFlat::saveDistState ( std::ostream &  os)
static

Definition at line 204 of file RandFlat.cc.

204 {
205 os << distributionName() << "\n";
206 int prec = os.precision(20);
207 os << "RANDFLAT staticRandomInt: " << staticRandomInt
208 << " staticFirstUnusedBit: " << staticFirstUnusedBit << "\n";
209 os.precision(prec);
210 return os;
211}
static const double prec
Definition: RanecuEngine.cc:61

References distributionName(), CLHEP::prec, staticFirstUnusedBit, and staticRandomInt.

Referenced by CLHEP::StaticRandomStates::save(), CLHEP::RandBit::saveDistState(), and saveFullState().

◆ saveEngineStatus()

void CLHEP::RandFlat::saveEngineStatus ( const char  filename[] = "Config.conf")
static

Definition at line 105 of file RandFlat.cc.

105 {
106
107 // First save the engine status just like the base class would do:
108 getTheEngine()->saveStatus( filename );
109
110 // Now append the cached random Int, and first unused bit:
111
112 std::ofstream outfile ( filename, std::ios::app );
113
114 outfile << "RANDFLAT staticRandomInt: " << staticRandomInt
115 << " staticFirstUnusedBit: " << staticFirstUnusedBit << "\n";
116
117} // saveEngineStatus
virtual void saveStatus(const char filename[]="Config.conf") const =0
app
Definition: demo.py:189

References demo::app, CLHEP::HepRandom::getTheEngine(), CLHEP::HepRandomEngine::saveStatus(), staticFirstUnusedBit, and staticRandomInt.

◆ saveFullState()

std::ostream & CLHEP::RandFlat::saveFullState ( std::ostream &  os)
static

Definition at line 238 of file RandFlat.cc.

238 {
240 saveDistState(os);
241 return os;
242}
static std::ostream & saveFullState(std::ostream &os)
Definition: Random.cc:288
static std::ostream & saveDistState(std::ostream &os)
Definition: RandFlat.cc:204

References saveDistState(), and CLHEP::HepRandom::saveFullState().

Referenced by CLHEP::RandBit::saveFullState().

◆ saveStaticRandomStates()

std::ostream & CLHEP::HepRandom::saveStaticRandomStates ( std::ostream &  os)
staticinherited

Definition at line 298 of file Random.cc.

298 {
299 return StaticRandomStates::save(os);
300}
static std::ostream & save(std::ostream &os)

References CLHEP::StaticRandomStates::save().

◆ setTheEngine()

void CLHEP::HepRandom::setTheEngine ( HepRandomEngine theNewEngine)
staticinherited

Definition at line 273 of file Random.cc.

274{
275 theDefaults().theEngine.reset( theNewEngine, do_nothing_deleter() );
276}

References CLHEP::anonymous_namespace{Random.cc}::theDefaults(), and CLHEP::anonymous_namespace{Random.cc}::defaults::theEngine.

Referenced by CLHEP::StaticRandomStates::restore().

◆ setTheSeed()

void CLHEP::HepRandom::setTheSeed ( long  seed,
int  lxr = 3 
)
staticinherited

Definition at line 234 of file Random.cc.

235{
236 theDefaults().theEngine->setSeed(seed,lux);
237}
static constexpr double lux

References CLHEP::lux, CLHEP::anonymous_namespace{Random.cc}::theDefaults(), and CLHEP::anonymous_namespace{Random.cc}::defaults::theEngine.

◆ setTheSeeds()

void CLHEP::HepRandom::setTheSeeds ( const long *  seeds,
int  aux = -1 
)
staticinherited

◆ shoot() [1/6]

double CLHEP::RandFlat::shoot ( )
static

◆ shoot() [2/6]

static double CLHEP::RandFlat::shoot ( double  a,
double  b 
)
inlinestatic

◆ shoot() [3/6]

static double CLHEP::RandFlat::shoot ( double  width)
inlinestatic

◆ shoot() [4/6]

static double CLHEP::RandFlat::shoot ( HepRandomEngine anEngine)
inlinestatic

◆ shoot() [5/6]

static double CLHEP::RandFlat::shoot ( HepRandomEngine anEngine,
double  a,
double  b 
)
inlinestatic

◆ shoot() [6/6]

static double CLHEP::RandFlat::shoot ( HepRandomEngine anEngine,
double  width 
)
inlinestatic

◆ shootArray() [1/4]

void CLHEP::RandFlat::shootArray ( const int  size,
double *  vect 
)
static

Definition at line 65 of file RandFlat.cc.

65 {
67}
virtual void flatArray(const int size, double *vect)=0

References CLHEP::HepRandomEngine::flatArray(), and CLHEP::HepRandom::getTheEngine().

◆ shootArray() [2/4]

void CLHEP::RandFlat::shootArray ( const int  size,
double *  vect,
double  lx,
double  dx 
)
static

Definition at line 69 of file RandFlat.cc.

71{
72 int i;
73
74 for (i=0; i<size; ++i)
75 vect[i] = shoot(lx,dx);
76}
static double shoot()
Definition: RandFlat.cc:61

References shoot().

◆ shootArray() [3/4]

static void CLHEP::RandFlat::shootArray ( HepRandomEngine anEngine,
const int  size,
double *  vect 
)
inlinestatic

◆ shootArray() [4/4]

void CLHEP::RandFlat::shootArray ( HepRandomEngine anEngine,
const int  size,
double *  vect,
double  lx,
double  dx 
)
static

Definition at line 78 of file RandFlat.cc.

81{
82 int i;
83
84 for (i=0; i<size; ++i)
85 vect[i] = shoot(anEngine,lx,dx);
86}

References shoot().

◆ shootBit() [1/2]

static int CLHEP::RandFlat::shootBit ( )
inlinestatic

◆ shootBit() [2/2]

static int CLHEP::RandFlat::shootBit ( HepRandomEngine )
inlinestatic

◆ shootBits() [1/2]

static void CLHEP::RandFlat::shootBits ( )
inlinestaticprivate

◆ shootBits() [2/2]

static void CLHEP::RandFlat::shootBits ( HepRandomEngine )
inlinestaticprivate

◆ shootInt() [1/4]

static long CLHEP::RandFlat::shootInt ( HepRandomEngine anEngine,
long  a1,
long  n 
)
inlinestatic

◆ shootInt() [2/4]

static long CLHEP::RandFlat::shootInt ( HepRandomEngine anEngine,
long  n 
)
inlinestatic

◆ shootInt() [3/4]

static long CLHEP::RandFlat::shootInt ( long  a1,
long  n 
)
inlinestatic

◆ shootInt() [4/4]

static long CLHEP::RandFlat::shootInt ( long  n)
inlinestatic

◆ showEngineStatus()

void CLHEP::HepRandom::showEngineStatus ( )
staticinherited

Field Documentation

◆ defaultA

double CLHEP::RandFlat::defaultA
private

Definition at line 201 of file RandFlat.h.

Referenced by fireArray(), get(), operator()(), and put().

◆ defaultB

double CLHEP::RandFlat::defaultB
private

Definition at line 202 of file RandFlat.h.

Referenced by fireArray(), get(), operator()(), and put().

◆ defaultWidth

double CLHEP::RandFlat::defaultWidth
private

Definition at line 200 of file RandFlat.h.

Referenced by get(), and put().

◆ firstUnusedBit

unsigned long CLHEP::RandFlat::firstUnusedBit
private

Definition at line 195 of file RandFlat.h.

Referenced by get(), and put().

◆ localEngine

std::shared_ptr<HepRandomEngine> CLHEP::RandFlat::localEngine
private

Definition at line 199 of file RandFlat.h.

Referenced by engine().

◆ MSB

const unsigned long CLHEP::RandFlat::MSB = 1ul<<RandFlat::MSBBits
staticprivate

Definition at line 190 of file RandFlat.h.

◆ MSBBits

const int CLHEP::RandFlat::MSBBits = 15
staticprivate

Definition at line 191 of file RandFlat.h.

◆ randomInt

unsigned long CLHEP::RandFlat::randomInt
private

Definition at line 194 of file RandFlat.h.

Referenced by get(), and put().

◆ seedTable

const long CLHEP::HepRandom::seedTable
staticprotectedinherited

Definition at line 156 of file Random.h.

◆ staticFirstUnusedBit

CLHEP_THREAD_LOCAL unsigned long CLHEP::RandFlat::staticFirstUnusedBit = 0
staticprivate

Definition at line 197 of file RandFlat.h.

Referenced by restoreDistState(), restoreEngineStatus(), saveDistState(), and saveEngineStatus().

◆ staticRandomInt

CLHEP_THREAD_LOCAL unsigned long CLHEP::RandFlat::staticRandomInt = 0
staticprivate

Definition at line 196 of file RandFlat.h.

Referenced by restoreDistState(), restoreEngineStatus(), saveDistState(), and saveEngineStatus().


The documentation for this class was generated from the following files: