Commit 92a0261
Store correct random seed in parameter container
Between Root 6.22 and 6.24 the return value of TRandom3::GetSeed() was changed.
Since Root 6.24 the function GetSeed returns the current element of the state
used to generate the random number which returns a fixed value of 624 for
TRandom3.
To get the seed value which was set by the function SetSeed one neeeds to use
the GetSeed() function from the base class (gRandom->TRandom::GetSeed()),
FairSoft apr21p2 does not have the problem but any later FairSoft version will
save the wrong information in the parameter container FairBaseParSet
irrespective of the seed value defined in Root.
This commit fixes the issue and saves the correct seed value specified by
gRandom->SetSeed(<your value>).
(cherry picked from commit 20d0431)1 parent 4cd6215 commit 92a0261
3 files changed
Lines changed: 5 additions & 5 deletions
File tree
- base/steer
- templates
- project_root_containers/MyProjGenerators
- project_stl_containers/MyProjGenerators
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
237 | | - | |
| 237 | + | |
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
0 commit comments