#include "ActionInitialization.hh" #include "PrimaryGeneratorAction.hh" #include "RunAction.hh" #include "EventAction.hh" #include "SteppingAction.hh" #include "StackingAction.hh" //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... ActionInitialization::ActionInitialization() : G4VUserActionInitialization() {} //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... ActionInitialization::~ActionInitialization() {} //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... void ActionInitialization::BuildForMaster() const { RunAction* runAction = new RunAction; SetUserAction(runAction); } //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... void ActionInitialization::Build() const { SetUserAction(new PrimaryGeneratorAction); RunAction* runAction = new RunAction; SetUserAction(runAction); EventAction* eventAction = new EventAction(runAction); SetUserAction(eventAction); // Include StackingAction in the user actions StackingAction* stackingAction = new StackingAction(runAction); SetUserAction(stackingAction); SetUserAction(new SteppingAction(eventAction)); } //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......