1 #ifndef IOMC_RandomEngine_TRandomAdaptor_h
2 #define IOMC_RandomEngine_TRandomAdaptor_h
4 #include "CLHEP/Random/RandomEngine.h"
47 operator float()
override {
return (
float)(
trand_->Rndm()); }
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
std::string name() const override
void setSeed(long seed, int) override
std::vector< unsigned long > put() const override
TRandom3 * getRootEngine()
void flatArray(int const size, double *vect) override
void showStatus() const override
bool getState(std::vector< unsigned long > const &v) override
static std::string engineName()
void setSeeds(long const *seeds, int) override
~TRandomAdaptor() override
std::istream & getState(std::istream &is) override
void saveStatus(char const filename[]="TRandom.conf") const override
void Grumble(std::string const &errortext) const
void restoreStatus(char const filename[]="TRandom.conf") override
tuple size
Write out results.