30 #include "G4RunManager.hh" 33 #include "G4UImanager.hh" 34 #include "G4VisExecutive.hh" 35 #include "G4MTRunManager.hh" 36 #include "AnalysisManager.hh" 37 #include "ActionInitialization.hh" 38 #include "AnalysisManager.hh" 39 #include "G4UIExecutive.hh" 42 int main(
int argc,
char** argv)
45 #ifdef G4MULTITHREADED 46 G4MTRunManager* pRunManager =
new G4MTRunManager;
47 pRunManager->SetNumberOfThreads(4);
49 G4RunManager* pRunManager =
new G4RunManager;
52 AnalysisManager* analysis =
new AnalysisManager();
56 pRunManager -> SetUserInitialization(detector);
60 pRunManager -> SetUserInitialization(physics);
64 ActionInitialization* actions =
new ActionInitialization(analysis);
65 pRunManager->SetUserInitialization(actions);
67 G4VisManager* visManager =
new G4VisExecutive();
68 visManager->Initialize();
72 G4UImanager* UImanager = G4UImanager::GetUIpointer();
77 G4UIExecutive* ui =
new G4UIExecutive(argc, argv);
78 G4cout <<
" UI session starts ..." << G4endl;
79 UImanager -> ApplyCommand(
"/control/execute vis.mac");
87 G4String command =
"/control/execute ";
89 UImanager->ApplyCommand(command+fileName);
int main(int argc, char **argv)
TConfigurablePhysicsList< ModularPhysicsList > PhysicsList