44 #ifdef G4MULTITHREADED 45 #include "G4MTRunManager.hh" 47 #include "G4RunManager.hh" 50 #include "G4UImanager.hh" 51 #include "Randomize.hh" 53 #include "G4VisExecutive.hh" 54 #include "G4UIExecutive.hh" 56 #include "DMXAnalysisManager.hh" 57 #include "DMXDetectorConstruction.hh" 58 #include "DMXPhysicsList.hh" 59 #include "DMXActionInitializer.hh" 61 int main(
int argc,
char** argv) {
64 G4Random::setTheEngine(
new CLHEP::RanecuEngine);
67 #ifdef G4MULTITHREADED 68 G4MTRunManager* runManager =
new G4MTRunManager;
71 G4RunManager* runManager =
new G4RunManager;
75 runManager->SetUserInitialization(
new DMXDetectorConstruction);
76 runManager->SetUserInitialization(
new DMXPhysicsList);
77 runManager->SetUserInitialization(
new DMXActionInitializer());
80 G4VisManager* visManager =
new G4VisExecutive;
81 visManager->Initialize();
84 G4cout <<
" Using GPS and not DMX gun " << G4endl;
86 G4cout <<
" Using the DMX gun " << G4endl;
91 runManager->Initialize();
94 G4UImanager* UImanager = G4UImanager::GetUIpointer();
99 G4UIExecutive* ui =
new G4UIExecutive(argc, argv);
100 UImanager->ApplyCommand(
"/control/execute initInter.mac");
107 G4String command =
"/control/execute ";
109 UImanager->ApplyCommand(command+fileName);
114 G4AnalysisManager* man = G4AnalysisManager::Instance();
118 delete G4AnalysisManager::Instance();
120 if(visManager)
delete visManager;
int main(int argc, char **argv)