Go to the documentation of this file. 1 #ifndef IOMC_RandomEngine_TRandomAdaptor_h
2 #define IOMC_RandomEngine_TRandomAdaptor_h
4 #include "CLHEP/Random/RandomEngine.h"
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
value_ptr< TRandom3 > TRandom3Ptr
void showStatus() const override
std::string name() const override
std::istream & get(std::istream &is) override
std::vector< unsigned long > put() const override
TRandom3 * getRootEngine()
static std::string engineName()
~TRandomAdaptor() override
void setSeed(long seed, int) override
void restoreStatus(char const filename[]="TRandom.conf") override
void setSeeds(long const *seeds, int) override
void Grumble(std::string const &errortext) const
void saveStatus(char const filename[]="TRandom.conf") const override
std::istream & getState(std::istream &is) override
void flatArray(int const size, double *vect) override
bool getState(std::vector< unsigned long > const &v) override