41 Bool_t specialStacking =
false;
42 TG4RunConfiguration* runConfiguration =
new TG4RunConfiguration(
43 "geomRoot",
"QGSP_FTFP_BERT",
"stepLimiter+specialCuts+specialControls+stackPopper", specialStacking, mtMode);
46 TGeant4* geant4 =
new TGeant4(
"TGeant4",
"The Geant4 Monte Carlo", runConfiguration);
47 cout <<
"Geant4 has been created." << endl;
53 geant4->SetStack(stack);
56 TVirtualMCDecayer* decayer = TPythia6Decayer::Instance();
57 geant4->SetExternalDecayer(decayer);
63 TString configm(gSystem->Getenv(
"VMCWORKDIR"));
64 TString configm1 = configm +
"/gconfig/g4config.in";
65 cout <<
" -I g4Config() using g4conf macro: " << configm1 << endl;
68 geant4->SetMaxNStep(10000);
69 geant4->ProcessGeantMacro(configm1.Data());
void SetMinPoints(Int_t min)
void StoreSecondaries(Bool_t choice=kTRUE)
static FairRunSim * Instance()
void Config()
Configuration macro for Geant3 VirtualMC.