1 #ifndef IOMC_RandomEngine_TRandomAdaptor_h 2 #define IOMC_RandomEngine_TRandomAdaptor_h 4 #include "CLHEP/Random/RandomEngine.h" 36 void setSeeds(
long const* seeds,
int)
override;
51 operator unsigned int()
override {
return (
unsigned int)((
trand_->Rndm())*exponent_bit_32()); }
53 virtual std::ostream &
put(std::ostream & os)
const override;
54 virtual std::istream &
get(std::istream & is)
override;
56 virtual std::istream &
getState ( std::istream & is )
override;
62 virtual std::vector<unsigned long>
put ()
const override;
63 bool get (std::vector<unsigned long>
const&
v)
override;
64 bool getState (std::vector<unsigned long>
const&
v)
override {
return get(
v); }
79 #endif // IOMC_RandomEngine_TRandomAdaptor_h
void saveStatus(char const filename[]="TRandom.conf") const override
value_ptr< TRandom3 > TRandom3Ptr
void setSeed(long seed, int) override
TRandom3 * getRootEngine()
void flatArray(int const size, double *vect) override
bool getState(std::vector< unsigned long > const &v) override
static std::string engineName()
std::string name() const override
void setSeeds(long const *seeds, int) override
virtual std::vector< unsigned long > put() const override
void showStatus() const override
virtual std::istream & getState(std::istream &is) override
virtual ~TRandomAdaptor()
void Grumble(std::string const &errortext) const
void restoreStatus(char const filename[]="TRandom.conf") override