32 #ifdef G4MULTITHREADED 33 #include "G4MTRunManager.hh" 35 #include "G4RunManager.hh" 38 #include "G4UImanager.hh" 40 #include "G4UIExecutive.hh" 43 #include "G4VisExecutive.hh" 46 #include "ActionInitialization.hh" 52 int main(
int argc,
char** argv)
57 session =
new G4UIExecutive(argc, argv);
62 G4Random::setTheEngine(
new CLHEP::RanecuEngine);
66 #ifdef G4MULTITHREADED 67 G4MTRunManager* runManager =
new G4MTRunManager;
70 G4RunManager* runManager =
new G4RunManager;
75 runManager->SetUserInitialization(detector);
80 runManager->SetUserInitialization(
new ActionInitialization(detector));
83 runManager->Initialize();
85 G4VisManager* visManager =
new G4VisExecutive;
86 visManager->Initialize();
89 G4UImanager* UImanager = G4UImanager::GetUIpointer();
93 UImanager->ApplyCommand(
"/control/execute microelectronics.mac");
94 session->SessionStart();
99 G4String command =
"/control/execute ";
101 UImanager->ApplyCommand(command+fileName);
static G4UIterminal * session
int main(int argc, char **argv)