The user main program of the parallel/TopC/ParN02 example.
More...
#include "ExN02DetectorConstruction.hh"
#include "ExN02PhysicsList.hh"
#include "ExN02PrimaryGeneratorAction.hh"
#include "ExN02RunAction.hh"
#include "ExN02EventAction.hh"
#include "ExN02SteppingAction.hh"
#include "ExN02SteppingVerbose.hh"
#include "G4RunManager.hh"
#include "G4UImanager.hh"
#include "G4VisExecutive.hh"
#include "G4UIExecutive.hh"
#include "ParTopC.icc"
Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
The user main program of the parallel/TopC/ParN02 example.
Definition in file ParN02.cc.
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 52 of file ParN02.cc.
56 G4UIExecutive* ui = 0;
58 ui =
new G4UIExecutive(argc, argv);
63 G4VSteppingVerbose* verbosity =
new ExN02SteppingVerbose;
64 G4VSteppingVerbose::SetInstance(verbosity);
68 G4RunManager * runManager =
new G4RunManager;
72 ExN02DetectorConstruction* detector =
new ExN02DetectorConstruction;
73 runManager->SetUserInitialization(detector);
75 G4VUserPhysicsList* physics =
new ExN02PhysicsList;
76 runManager->SetUserInitialization(physics);
80 G4VUserPrimaryGeneratorAction* gen_action =
new ExN02PrimaryGeneratorAction(detector);
81 runManager->SetUserAction(gen_action);
83 G4UserRunAction* run_action =
new ExN02RunAction;
84 runManager->SetUserAction(run_action);
86 G4UserEventAction* event_action =
new ExN02EventAction;
87 runManager->SetUserAction(event_action);
89 G4UserSteppingAction* stepping_action =
new ExN02SteppingAction;
90 runManager->SetUserAction(stepping_action);
94 G4VisManager* visManager =
new G4VisExecutive;
95 visManager->Initialize();
99 runManager->Initialize();
103 G4UImanager * UImanager = G4UImanager::GetUIpointer();
109 G4String command =
"/control/execute ";
111 UImanager->ApplyCommand(command+fileName);
115 UImanager->ApplyCommand(
"/run/beamOn 10");