35 #ifdef G4MULTITHREADED 36 #include "G4MTRunManager.hh" 38 #include "G4RunManager.hh" 41 #include "G4UImanager.hh" 42 #include "Randomize.hh" 46 #include "ActionInitialization.hh" 49 #include "SteppingVerbose.hh" 52 #include "G4VisExecutive.hh" 56 #include "G4UIExecutive.hh" 61 int main(
int argc,
char** argv) {
64 CLHEP::HepRandom::setTheEngine(
new CLHEP::RanecuEngine);
66 #ifdef G4MULTITHREADED 67 G4MTRunManager* runManager =
new G4MTRunManager;
68 runManager->SetNumberOfThreads(G4Threading::G4GetNumberOfCores());
70 G4VSteppingVerbose::SetInstance(
new SteppingVerbose);
71 G4RunManager* runManager =
new G4RunManager;
77 runManager->SetUserInitialization(detector);
79 runManager->SetUserInitialization(
new PhysicsList());
82 runManager->SetUserInitialization(
new ActionInitialization(detector));
85 G4UImanager* UI = G4UImanager::GetUIpointer();
89 G4String command =
"/control/execute ";
91 UI->ApplyCommand(command+fileName);
97 G4VisManager* visManager =
new G4VisExecutive;
98 visManager->Initialize();
102 G4UIExecutive * ui =
new G4UIExecutive(argc,argv);
int main(int argc, char **argv)
TConfigurablePhysicsList< ModularPhysicsList > PhysicsList