#include "G4MTRunManager.hh"
#include "G4RunManager.hh"
#include "G4UImanager.hh"
#include "G4VisExecutive.hh"
#include "G4UIExecutive.hh"
#include "STCyclotronAnalysis.hh"
#include "STCyclotronActionInitialization.hh"
#include "STCyclotronDetectorConstruction.hh"
#include "STCyclotronPhysicsList.hh"
#include "STCyclotronPrimaryGeneratorAction.hh"
#include "STCyclotronRunAction.hh"
Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 50 of file STCyclotron.cc.
52 #ifdef G4MULTITHREADED 53 G4MTRunManager* runManager =
new G4MTRunManager;
54 runManager->SetNumberOfThreads(4);
56 G4RunManager* runManager =
new G4RunManager;
60 STCyclotronDetectorConstruction* det =
new STCyclotronDetectorConstruction();
61 runManager->SetUserInitialization(det);
63 STCyclotronPhysicsList* physList =
new STCyclotronPhysicsList(det);
64 runManager->SetUserInitialization(physList);
67 STCyclotronActionInitialization* actions =
new STCyclotronActionInitialization(det);
68 runManager->SetUserInitialization(actions);
81 G4VisManager* visManager =
new G4VisExecutive(
"Quiet");
82 visManager->Initialize();
85 G4UImanager* UImanager = G4UImanager::GetUIpointer();
87 UImanager->ApplyCommand(
"/control/execute Macro/init_parameters.mac");
92 G4String command =
"/control/execute ";
94 UImanager->ApplyCommand(command+fileName);
100 G4UIExecutive* ui =
new G4UIExecutive(argc, argv);
102 UImanager->ApplyCommand(
"/control/execute Macro/Vis/init_vis.mac");
106 UImanager->ApplyCommand(
"/control/execute Macro/GUI/gui.mac");