31 #ifdef G4MULTITHREADED 32 #include "G4MTRunManager.hh" 34 #include "G4RunManager.hh" 37 #include "G4UImanager.hh" 39 #include "ActionInitialization.hh" 43 int main(
int argc,
char** argv) {
47 G4Random::setTheEngine(
new CLHEP::RanecuEngine);
51 #ifdef G4MULTITHREADED 52 G4MTRunManager* runManager =
new G4MTRunManager;
59 runManager->SetNumberOfThreads(1);
62 G4RunManager* runManager =
new G4RunManager;
69 runManager->SetUserInitialization(detector);
75 runManager->SetUserInitialization(
new ActionInitialization(detector));
79 runManager->Initialize();
83 G4UImanager* UImanager = G4UImanager::GetUIpointer();
87 UImanager->ApplyCommand(
"/control/execute default.mac");
91 G4String command =
"/control/execute ";
93 UImanager->ApplyCommand(command+fileName);
int main(int argc, char **argv)