Garfield++ v2r0
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.
1#include <iostream>
2#include "RandomEngineRoot.hh"
3
4namespace Garfield {
5
7
9
10 std::cout << "RandomEngineRoot:\n";
11 std::cout << " Generator type: TRandom3\n";
12 std::cout << " Seed: " << rng.GetSeed() << "\n";
13}
14
16
17void RandomEngineRoot::Seed(unsigned int s) {
18
19 rng.SetSeed(s);
20 std::cout << "RandomEngineRoot::Seed:\n";
21 std::cout << " Seed: " << rng.GetSeed() << "\n";
22}
23}
ROOT random number generator.
void Seed(unsigned int s)
Initialise the random number generator.
RandomEngineRoot randomEngine
Random number generator.