Main program of the eventgenerator/HepMC/HepMCEx02 example.
More...
#include "G4RunManager.hh"
#include "G4UImanager.hh"
#include "H02DetectorConstruction.hh"
#include "FTFP_BERT.hh"
#include "H02PrimaryGeneratorAction.hh"
#include "H02EventAction.hh"
#include "H02SteppingAction.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 54 of file HepMCEx02.cc.
References Initialize().
56 G4RunManager* runManager=
new G4RunManager;
60 G4VUserDetectorConstruction* detector =
new H02DetectorConstruction;
61 runManager-> SetUserInitialization(detector);
63 G4VUserPhysicsList* physics =
new FTFP_BERT;
64 runManager-> SetUserInitialization(physics);
70 G4VUserPrimaryGeneratorAction* gen_action =
new H02PrimaryGeneratorAction;
71 runManager-> SetUserAction(gen_action);
73 G4UserEventAction* event_action =
new H02EventAction;
74 runManager-> SetUserAction(event_action);
76 G4UserSteppingAction* stepping_action =
new H02SteppingAction;
77 runManager-> SetUserAction(stepping_action);
82 G4VisManager* visManager=
new G4VisExecutive;
88 G4UImanager* UImanager = G4UImanager::GetUIpointer();
92 visManager-> SetVerboseLevel(
"quiet");
94 G4String command =
"/control/execute ";
96 UImanager-> ApplyCommand(command+fileName);
99 G4UIExecutive* ui =
new G4UIExecutive(argc, argv);