1 #ifndef IOMC_RandomEngine_TRandomAdaptor_h 2 #define IOMC_RandomEngine_TRandomAdaptor_h 4 #include "CLHEP/Random/RandomEngine.h" 35 void setSeeds(
long const* seeds,
int)
override;
50 operator unsigned int()
override {
return (
unsigned int)((
trand_->Rndm()) * exponent_bit_32()); }
52 std::ostream&
put(std::ostream& os)
const override;
53 std::istream&
get(std::istream& is)
override;
55 std::istream&
getState(std::istream& is)
override;
61 std::vector<unsigned long>
put()
const override;
62 bool get(std::vector<unsigned long>
const&
v)
override;
63 bool getState(std::vector<unsigned long>
const&
v)
override {
return get(
v); }
77 #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
std::vector< unsigned long > put() const override
void showStatus() const override
~TRandomAdaptor() override
std::istream & getState(std::istream &is) override
void Grumble(std::string const &errortext) const
void restoreStatus(char const filename[]="TRandom.conf") override