// Configuration macro for Geant4 VirtualMC void Config() { // Load the User Defined Physics List cout << "-I- R3B Config(): Loading G4 User Defined Physics List " << endl; gSystem->Load("libSOFIAPlist.so"); cout<SetDebug(kFALSE); stack->StoreSecondaries(kTRUE); stack->SetMinPoints(0); geant4->SetStack(stack); if(FairRunSim::Instance()->IsExtDecayer()){ TVirtualMCDecayer* decayer = TPythia6Decayer::Instance(); geant4->SetExternalDecayer(decayer); } /// Customise Geant4 setting /// (verbose level, global range cut, ..) TString configm(gSystem->Getenv("VMCWORKDIR")); configm1 = configm + "/gconfig/g4sofiaconfig.in"; cout << " -I g4Config() using g4conf macro: " << configm1 << endl; //set geant4 specific stuff geant4->SetMaxNStep(10000); // default is 30000 geant4->ProcessGeantMacro(configm1.Data()); }