#include "ActionInitialization.hh" #include "PrimaryGeneratorAction.hh" #include "RunAction.hh" #include "EventAction.hh" #include "SteppingAction.hh" #include "TrackingAction.hh" #include "G4UserRunAction.hh" //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... ActionInitialization::ActionInitialization() : G4VUserActionInitialization() {} //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... ActionInitialization::~ActionInitialization() { } //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... void ActionInitialization::BuildForMaster() const { SetUserAction(new RunAction); } //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... void ActionInitialization::Build() const { SetUserAction(new PrimaryGeneratorAction); EventAction* eventAction = new EventAction; SetUserAction(eventAction); TrackingAction* trackingAction = new TrackingAction; SetUserAction(trackingAction); SetUserAction(new RunAction); SetUserAction(new SteppingAction(eventAction, trackingAction)); } //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......