27#define RandGeneral_h 1
48 const double* aProbFunc,
52 const double* aProbFunc,
97 inline double shoot();
99 inline void shootArray (
const int size,
double* vect);
120 std::ostream &
put ( std::ostream & os )
const;
121 std::istream &
get ( std::istream & is );
132 std::shared_ptr<HepRandomEngine> localEngine;
133 std::vector<double> theIntegralPdf;
136 int InterpolationType;
139 void prepareTable(
const double* aProbFunc);
140 void useFlatDistribution();
141 double mapRandom(
double rand)
const;
147#ifdef ENABLE_BACKWARDS_COMPATIBILITY
149using namespace CLHEP;
void shootArray(HepRandomEngine *anEngine, const int size, double *vect)
RandGeneral(const double *aProbFunc, int theProbSize, int IntType=0)
std::istream & get(std::istream &is)
std::ostream & put(std::ostream &os) const
static std::string distributionName()
void fireArray(const int size, double *vect)
RandGeneral(HepRandomEngine *anEngine, const double *aProbFunc, int theProbSize, int IntType=0)
HepRandomEngine & engine()
void shootArray(const int size, double *vect)
RandGeneral(HepRandomEngine &anEngine, const double *aProbFunc, int theProbSize, int IntType=0)