Main program of the eventgenerator/HepMC/HepMCEx02 example.
More...
#include "G4Types.hh"
#include "G4RunManager.hh"
#include "G4UImanager.hh"
#include "H02DetectorConstruction.hh"
#include "FTFP_BERT.hh"
#include "H02PrimaryGeneratorAction.hh"
#include "H02EventAction.hh"
#include "H02SteppingAction.hh"
#include "G4VisExecutive.hh"
#include "G4UIExecutive.hh"
Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
Main program of the eventgenerator/HepMC/HepMCEx02 example.
Definition in file HepMCEx02.cc.
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 50 of file HepMCEx02.cc.
References Initialize().
53 G4UIExecutive* ui =
nullptr;
55 ui =
new G4UIExecutive(argc, argv);
58 G4RunManager* runManager=
new G4RunManager;
62 G4VUserDetectorConstruction* detector =
new H02DetectorConstruction;
63 runManager-> SetUserInitialization(detector);
65 G4VUserPhysicsList* physics =
new FTFP_BERT;
66 runManager-> SetUserInitialization(physics);
72 G4VUserPrimaryGeneratorAction* gen_action =
new H02PrimaryGeneratorAction;
73 runManager-> SetUserAction(gen_action);
75 G4UserEventAction* event_action =
new H02EventAction;
76 runManager-> SetUserAction(event_action);
78 G4UserSteppingAction* stepping_action =
new H02SteppingAction;
79 runManager-> SetUserAction(stepping_action);
81 G4VisManager* visManager=
new G4VisExecutive;
86 G4UImanager* UImanager = G4UImanager::GetUIpointer();
89 visManager-> SetVerboseLevel(
"quiet");
90 G4String command =
"/control/execute ";
92 UImanager-> ApplyCommand(command+fileName);