33 #ifdef G4MULTITHREADED 34 #include "G4MTRunManager.hh" 36 #include "G4RunManager.hh" 39 #include "G4UImanager.hh" 41 #include "G4UIExecutive.hh" 43 #include "G4VisExecutive.hh" 44 #include "ActionInitialization.hh" 50 int main(
int argc,
char** argv)
55 session =
new G4UIExecutive(argc, argv);
60 G4Random::setTheEngine(
new CLHEP::RanecuEngine);
64 #ifdef G4MULTITHREADED 65 G4MTRunManager* runManager =
new G4MTRunManager;
68 G4RunManager* runManager =
new G4RunManager;
73 runManager->SetUserInitialization(detector);
78 runManager->SetUserInitialization(
new ActionInitialization(detector));
81 runManager->Initialize();
83 G4VisManager* visManager =
new G4VisExecutive;
84 visManager->Initialize();
87 G4UImanager* UImanager = G4UImanager::GetUIpointer();
91 UImanager->ApplyCommand(
"/control/execute microelectronics.mac");
92 session->SessionStart();
97 G4String command =
"/control/execute ";
99 UImanager->ApplyCommand(command+fileName);
static G4UIterminal * session
int main(int argc, char **argv)