3 #include <FairLogger.h>
4 #include <FairRunSim.h>
7 #include <TPythia6Decayer.h>
8 #include <TVirtualMC.h>
10 #include <G4NuclearLevelData.hh>
16 TGeant4* vmcg4 =
dynamic_cast<TGeant4*
>(vmc);
23 if (FairRunSim::Instance()->IsExtDecayer()) {
24 TVirtualMCDecayer* decayer = TPythia6Decayer::Instance();
25 vmcg4->SetExternalDecayer(decayer);
26 LOG(info) <<
": Using Phythia6 decayer";
32 buffer,
"/random/setSeeds %i %i ", gRandom->GetSeed(), gRandom->GetSeed());
33 vmcg4->ProcessGeantCommand(
buffer);
38 LOG(info) <<
"Passing the following command to Geant4: " << command;
39 vmcg4->ProcessGeantCommand(command.c_str());
42 LOG(warning) <<
"Fix for Geant4 bug applied (see "
43 "https://bugzilla-geant4.kek.jp/show_bug.cgi?id=2226)";
44 G4NuclearLevelData::GetInstance()->GetParameters()->SetMaxLifeTime(
45 1 * CLHEP::microsecond);