 |
Belle II Software
release-05-02-19
|
12 #ifndef SIMULATION_KERNEL_RANDOMENGINE_H
13 #define SIMULATION_KERNEL_RANDOMENGINE_H
15 #include <CLHEP/Random/Random.h>
16 #include <framework/core/RandomGenerator.h>
38 void setSeeds(
const long*,
int)
override final {}
46 std::string
name() const override final {
return "Belle2::RandomGenerator"; }
48 std::vector<unsigned long>
put() const override final {
return std::vector<unsigned long>(); }
50 std::ostream&
put(std::ostream& o)
const override final {
return o; }
52 bool get(
const std::vector<unsigned long>&)
override final {
return false; }
54 std::istream&
get(std::istream& i)
override final {
return i; }
59 #endif // SIMULATION_KERNEL_RANDOMENGINE_H
void setSeeds(const long *, int) override final
set array of seed values, ignored
RandomEngine()
Constructor expecting a reference to the Belle2::RandomGenerator.
std::vector< unsigned long > put() const override final
put call, whatever that does.
double flat() override final
return a flat distributed double in (0,1), both excluded
Fast Random number Generator using on xorshift1024* [arXiv:1402.6246].
void flatArray(const int size, double *vect) override final
fill an array of doubles with values in (0,1), both exluded
Abstract base class for different kinds of events.
std::istream & get(std::istream &i) override final
get call, I assume same as above
void showStatus() const override final
show status, ignored
std::ostream & put(std::ostream &o) const override final
put call, whatever that does.
bool get(const std::vector< unsigned long > &) override final
get call, I assume same as above
double random01()
Generate a random double value between 0 and 1, both limits excluded.
std::string name() const override final
return name of the generator
void RndmArray(Int_t n, Float_t *array)
Fill an array of floats with random values in (0,1), both limits excluded.
void saveStatus(const char[]) const override final
save status to file, ignored
void restoreStatus(const char[]) override final
restore status from file, ignored
Interface class to make Geant4 use the Belle2 RandomGenerator.
void setSeed(long, int) override final
set the seed, ignored