32 #ifdef G4MULTITHREADED 33 #include "G4MTRunManager.hh" 35 #include "G4RunManager.hh" 37 #include "G4UImanager.hh" 38 #include "G4ScoringManager.hh" 40 #include "RE03DetectorConstruction.hh" 41 #include "FTFP_BERT.hh" 42 #include "RE03ActionInitialization.hh" 45 #include "G4VisExecutive.hh" 49 #include "G4UIExecutive.hh" 57 int main(
int argc,
char** argv)
61 #ifdef G4MULTITHREADED 62 G4MTRunManager * runManager =
new G4MTRunManager;
63 runManager->SetNumberOfThreads(4);
65 G4RunManager * runManager =
new G4RunManager;
69 G4ScoringManager * scManager = G4ScoringManager::GetScoringManager();
70 scManager->SetVerboseLevel(1);
79 G4VUserDetectorConstruction* detector =
new RE03DetectorConstruction;
80 runManager->SetUserInitialization(detector);
82 G4VUserPhysicsList* physics =
new FTFP_BERT;
83 runManager->SetUserInitialization(physics);
87 RE03ActionInitialization* actions =
new RE03ActionInitialization;
88 runManager->SetUserInitialization(actions);
92 G4VisManager* visManager =
new G4VisExecutive;
93 visManager->Initialize();
98 runManager->Initialize();
102 G4UImanager* UImanager = G4UImanager::GetUIpointer();
107 G4UIExecutive* ui =
new G4UIExecutive(argc, argv);
109 UImanager->ApplyCommand(
"/control/execute vis.mac");
117 G4String command =
"/control/execute ";
119 UImanager->ApplyCommand(command+fileName);
int main(int argc, char **argv)