Go to the documentation of this file.
42 #include "CLHEP/Random/defs.h"
43 #include "CLHEP/Random/RandomEngine.h"
44 #include "CLHEP/Random/Hurd288Engine.h"
77 void saveStatus(
const char filename[] =
"TripleRand.conf" )
const;
80 void restoreStatus(
const char filename[] =
"TripleRand.conf" );
87 operator unsigned int();
89 virtual std::ostream &
put (std::ostream & os)
const;
90 virtual std::istream &
get (std::istream &
is);
92 virtual std::istream &
getState ( std::istream &
is );
94 std::string
name()
const;
97 std::vector<unsigned long>
put ()
const;
98 bool get (
const std::vector<unsigned long> &
v);
99 bool getState (
const std::vector<unsigned long> &
v);
105 static int numEngines;
115 Tausworthe(
unsigned int seed);
117 operator unsigned int();
119 void put( std::ostream & os )
const;
120 void put(std::vector<unsigned long> &
v)
const;
121 void get( std::istream &
is );
122 bool get(std::vector<unsigned long>::const_iterator & iv);
127 unsigned int words[4];
138 IntegerCong(
unsigned int seed,
int streamNumber);
140 operator unsigned int();
142 void put( std::ostream & os )
const;
143 void put(std::vector<unsigned long> &
v)
const;
144 void get( std::istream &
is );
145 bool get(std::vector<unsigned long>::const_iterator & iv);
149 unsigned int state, multiplier, addend;
152 Hurd288Engine & Hurd();
154 const Tausworthe & ConstTaus()
const;
155 const IntegerCong & ConstCong()
const;
156 const Hurd288Engine & ConstHurd()
const;
158 Tausworthe tausworthe;
159 IntegerCong integerCong;
166 #ifdef ENABLE_BACKWARDS_COMPATIBILITY
168 using namespace CLHEP;
171 #endif // TripleRand_h
static std::string beginTag()
virtual std::istream & getState(std::istream &is)
virtual std::istream & get(std::istream &is)
std::vector< unsigned long > put() const
HepRotation and so forth isNear() norm2() rectify() static Rotation row1 row4(To avoid bloat in the code pulled in for programs which don 't use all these features, we split the implementation .cc files. Only isNear() goes into the original Rotation.cc) --------------------------------------- HepAxisAngle and HepEulerAngles classes --------------------------------------- These classes are very useful and simple structures for holding the result of a nice intuituve decomposition of a rotation there is no longer much content in the distinct ZOOM PhysicsVectors library The only content left in the library is the object files representing the various Exception objects When we build the CLHEP classes for the ZOOM we will set up so as to use ZOOM SpaceVector is(but we can disable namespace usage and most of our users do so at this point). What I do is leave Hep3Vector in the global namespace
void restoreStatus(const char filename[]="TripleRand.conf")
ought always be logged and essentially never be ignored ZMexPROBLEM The software has reached a logically impossible internal state
void setSeeds(const long *seeds, int)
user code seldom needs to call this function directly ZMerrno whether or not they are still recorded ZMerrno size() Return the(integer) number of ZMthrow 'n exceptions currently recorded. 5) ZMerrno.clear() Set an internal counter to zero. This counter is available(see next function) to user code to track ZMthrow 'n exceptions that have occurred during any arbitrary time interval. 6) ZMerrno.countSinceCleared() Return the(integer) number of ZMthrow 'n exceptions that have been recorded via ZMerrno.write()
void setSeed(long seed, int)
void saveStatus(const char filename[]="TripleRand.conf") const
they are gone ZOOM Features Discontinued The following features of the ZOOM package were felt to be extreme overkill These have been after checking that no existing user code was utilizing as in SpaceVector v
Technical Maintenance Note for CLHEP Random Consequences of seeding JamesRandom with positive seed values greater than In the source code JamesRandom The usual way of seeding a generator is via the default which makes use of the table of seeds(with some trickery to ensure that the values won 't repeat after the table rows are exhausted). The trickery preserves the fact that sees are never negative(because the table values are never negative
void flatArray(const int size, double *vect)
static const unsigned int VECTOR_STATE_SIZE
static std::string engineName()