Garfield++ 5.0
A toolkit for the detailed simulation of particle detectors based on ionisation measurement in gases and semiconductors
Loading...
Searching...
No Matches
RandomEngineRoot.cc
Go to the documentation of this file.
2#include <iostream>
3
4namespace Garfield {
5
7
9
11
12void RandomEngineRoot::Seed(const unsigned int s) {
13 m_rng.SetSeed(s);
14 std::cout << "RandomEngineRoot::Seed: " << m_rng.GetSeed() << "\n";
15}
16
18 std::cout << "RandomEngineRoot::Print:\n"
19 << " Generator type: TRandom3\n"
20 << " Seed: " << m_rng.TRandom::GetSeed() << "\n";
21}
22
23}
ROOT random number generator.
void Print() override
Print information about the generator used and the seed.
void Seed(const unsigned int s) override
Initialise the random number generator.
RandomEngine()=default
Constructor.
RandomEngineRoot randomEngine
Random number generator.