42 #ifdef G4MULTITHREADED 43 #include "G4MTRunManager.hh" 45 #include "G4RunManager.hh" 48 #include "G4UImanager.hh" 49 #include "Randomize.hh" 52 #include "G4VisExecutive.hh" 56 #include "G4UIExecutive.hh" 59 #include "DMXAnalysisManager.hh" 60 #include "DMXDetectorConstruction.hh" 61 #include "DMXPhysicsList.hh" 62 #include "DMXActionInitializer.hh" 64 int main(
int argc,
char** argv) {
67 G4Random::setTheEngine(
new CLHEP::RanecuEngine);
70 #ifdef G4MULTITHREADED 71 G4MTRunManager* runManager =
new G4MTRunManager;
74 G4RunManager* runManager =
new G4RunManager;
78 runManager->SetUserInitialization(
new DMXDetectorConstruction);
79 runManager->SetUserInitialization(
new DMXPhysicsList);
80 runManager->SetUserInitialization(
new DMXActionInitializer());
84 G4VisManager* visManager =
new G4VisExecutive;
85 visManager->Initialize();
90 G4cout <<
" Using GPS and not DMX gun " << G4endl;
92 G4cout <<
" Using the DMX gun " << G4endl;
97 runManager->Initialize();
100 G4UImanager* UImanager = G4UImanager::GetUIpointer();
106 G4UIExecutive* ui =
new G4UIExecutive(argc, argv);
108 UImanager->ApplyCommand(
"/control/execute initInter.mac");
117 G4String command =
"/control/execute ";
119 UImanager->ApplyCommand(command+fileName);
124 G4AnalysisManager* man = G4AnalysisManager::Instance();
128 delete G4AnalysisManager::Instance();
131 if(visManager)
delete visManager;
int main(int argc, char **argv)