28 TG4RunConfiguration* runConfiguration
32 =
new TG4RunConfiguration(
"geomRoot",
"FTFP_BERT",
"stepLimiter");
38 TGeant4* geant4 =
new TGeant4(
"TGeant4",
"The Geant4 Monte Carlo", runConfiguration);
39 cout <<
"Geant4 has been created." << endl;
45 geant4->SetStack(stack);
49 TVirtualMCDecayer* decayer = TPythia6Decayer::Instance();
50 geant4->SetExternalDecayer(decayer);
57 TString configm(gSystem->Getenv(
"VMCWORKDIR"));
58 TString configm1 = configm +
"/gconfig/g4config.in";
59 cout <<
" -I g4Config() using g4conf macro: " << configm1 << endl;
62 geant4->SetMaxNStep(10000);
65 sprintf(buffer,
"/random/setSeeds %i %i ",gRandom->GetSeed(), gRandom->GetSeed());
66 geant4->ProcessGeantCommand(buffer);
68 geant4->ProcessGeantMacro(configm1.Data());