Skip to content
Snippets Groups Projects

Fix Geant4 random number initialisation

Merged Florian Uhlig requested to merge f.uhlig/cbmroot:fix_random_seed_geant4 into master
All threads resolved!

Files

+ 3
1
@@ -62,8 +62,10 @@ void Config()
//set geant4 specific stuff
// Get the infomation about the seed value defined by SetSeed from the base class.
// Since ROOT 6.24 the derived classes return a differnt value.
Text_t buffer[50];
sprintf(buffer, "/random/setSeeds %i %i ", gRandom->GetSeed(), gRandom->GetSeed());
sprintf(buffer, "/random/setSeeds %i %i ", gRandom->TRandom::GetSeed(), gRandom->TRandom::GetSeed());
geant4->ProcessGeantCommand(buffer);
geant4->SetMaxNStep(10000); // default is 30000
Loading