Garfield++ 3.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:\n"
15 << " Seed: " << m_rng.GetSeed() << "\n";
16}
17
19 std::cout << "RandomEngineRoot::Print:\n"
20 << " Generator type: TRandom3\n"
21 << " Seed: " << m_rng.GetSeed() << "\n";
22}
23
24}
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.
Abstract base class for random number generators.
Definition: RandomEngine.hh:8
RandomEngineRoot randomEngine
Random number generator.