Go to the documentation of this file.
25 #ifndef RandBinomial_h
26 #define RandBinomial_h 1
28 #include "CLHEP/Random/Random.h"
29 #include "CLHEP/Utility/memory.h"
37 class RandBinomial :
public HepRandom {
59 static inline double shoot();
61 static double shoot(
long n,
double p );
64 long n=1,
double p=0.5 );
69 static inline double shoot( HepRandomEngine* anEngine );
71 static double shoot( HepRandomEngine* anEngine,
74 static void shootArray ( HepRandomEngine* anEngine,
const int size,
75 double* vect,
long n=1,
83 double fire(
long n,
double p );
93 std::ostream &
put ( std::ostream & os )
const;
94 std::istream &
get ( std::istream &
is );
96 std::string
name()
const;
97 HepRandomEngine &
engine();
114 #ifdef ENABLE_BACKWARDS_COMPATIBILITY
116 using namespace CLHEP;
119 #include "CLHEP/Random/RandBinomial.icc"
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
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()
static void shootArray(const int size, double *vect, long n=1, double p=0.5)
static std::string distributionName()
std::istream & get(std::istream &is)
void fireArray(const int size, double *vect)
RandBinomial(HepRandomEngine &anEngine, long n=1, double p=0.5)
std::ostream & put(std::ostream &os) const