Garfield++
v1r0
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
4
namespace
Garfield
{
5
6
RandomEngineRoot
randomEngine
;
7
8
RandomEngineRoot::RandomEngineRoot
() : rng(0) {
9
10
std::cout <<
"RandomEngineRoot:\n"
;
11
std::cout <<
" Generator type: TRandom3\n"
;
12
std::cout <<
" Seed: "
<< rng.GetSeed() <<
"\n"
;
13
}
14
15
RandomEngineRoot::~RandomEngineRoot
() {}
16
17
void
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
}
RandomEngineRoot.hh
Garfield::RandomEngineRoot
Definition:
RandomEngineRoot.hh:12
Garfield::RandomEngineRoot::Seed
void Seed(unsigned int s)
Definition:
RandomEngineRoot.cc:17
Garfield::RandomEngineRoot::~RandomEngineRoot
~RandomEngineRoot()
Definition:
RandomEngineRoot.cc:15
Garfield::RandomEngineRoot::RandomEngineRoot
RandomEngineRoot()
Definition:
RandomEngineRoot.cc:8
Garfield
Definition:
HeedChamber.hh:10
Garfield::randomEngine
RandomEngineRoot randomEngine
Definition:
RandomEngineRoot.cc:6
garfieldpp-v1r0
Source
RandomEngineRoot.cc
Generated by
1.9.6