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);
48 operator float() {
return (
float)(
trand_->Rndm()); }
51 operator unsigned int() {
return (
unsigned int)((
trand_->Rndm())*exponent_bit_32()); }
53 virtual std::ostream &
put (std::ostream & os)
const;
54 virtual std::istream &
get (std::istream & is);
56 virtual std::istream &
getState ( std::istream & is );
62 std::vector<unsigned long>
put ()
const;
63 bool get (std::vector<unsigned long>
const&
v);
64 bool getState (std::vector<unsigned long>
const&
v) {
return get(
v); }
79 #endif // IOMC_RandomEngine_TRandomAdaptor_h
void flatArray(int const size, double *vect)
value_ptr< TRandom3 > TRandom3Ptr
std::vector< unsigned long > put() const
void setSeed(long seed, int)
virtual std::istream & getState(std::istream &is)
TRandom3 * getRootEngine()
void saveStatus(char const filename[]="TRandom.conf") const
bool getState(std::vector< unsigned long > const &v)
void setSeeds(long const *seeds, int)
static std::string engineName()
void restoreStatus(char const filename[]="TRandom.conf")
virtual ~TRandomAdaptor()
void Grumble(std::string const &errortext) const
tuple size
Write out results.