Go to the documentation of this file.
22 #include "CLHEP/Random/defs.h"
23 #include "CLHEP/Random/RandStudentT.h"
24 #include "CLHEP/Random/DoubConv.hh"
36 return fire( defaultA );
72 if(
a < 0.0)
return (DBL_MAX);
79 while ((w = u * u +
v *
v) > 1.0);
81 return(u * std::sqrt(
a * ( std::exp(- 2.0 /
a * std::log(w)) - 1.0) / w));
87 for(
double*
v = vect;
v != vect +
size; ++
v )
92 const int size,
double* vect,
95 for(
double*
v = vect;
v != vect +
size; ++
v )
105 u = 2.0 * localEngine->flat() - 1.0;
106 v = 2.0 * localEngine->flat() - 1.0;
108 while ((w = u * u +
v *
v) > 1.0);
110 return(u * std::sqrt(
a * ( std::exp(- 2.0 /
a * std::log(w)) - 1.0) / w));
115 for(
double*
v = vect;
v != vect +
size; ++
v )
122 for(
double*
v = vect;
v != vect +
size; ++
v )
132 u = 2.0 * anEngine->
flat() - 1.0;
133 v = 2.0 * anEngine->
flat() - 1.0;
135 while ((w = u * u +
v *
v) > 1.0);
137 return(u * std::sqrt(
a * ( std::exp(- 2.0 /
a * std::log(w)) - 1.0) / w));
141 int pr=os.precision(20);
142 std::vector<unsigned long> t(2);
143 os <<
" " <<
name() <<
"\n";
144 os <<
"Uvec" <<
"\n";
146 os << defaultA <<
" " << t[0] <<
" " << t[1] <<
"\n";
150 int pr=os.precision(20);
151 os <<
" " <<
name() <<
"\n";
152 os << defaultA <<
"\n";
161 if (inName !=
name()) {
162 is.clear(std::ios::badbit |
is.rdstate());
163 std::cerr <<
"Mismatch when expecting to read state of a "
164 <<
name() <<
" distribution\n"
165 <<
"Name found was " << inName
166 <<
"\nistream is left in the badbit state\n";
170 std::vector<unsigned long> t(2);
std::istream & get(std::istream &is)
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
static double longs2double(const std::vector< unsigned long > &v)
HepRandomEngine & engine()
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 fireArray(const int size, double *vect)
std::ostream & put(std::ostream &os) const
static void shootArray(const int size, double *vect, double a=1.0)
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
bool possibleKeywordInput(IS &is, const std::string &key, T &t)
static std::vector< unsigned long > dto2longs(double d)
static HepRandomEngine * getTheEngine()