CLARION2_GEANT4/CloverActionInitialization.cc
2022-10-13 14:32:30 -04:00

41 lines
1.1 KiB
C++

#include "CloverActionInitialization.hh"
#include "CloverPrimaryGeneratorAction.hh"
#include "CloverRunAction.hh"
#include "CloverEventAction.hh"
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
CloverActionInitialization::CloverActionInitialization()
: G4VUserActionInitialization()
{}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
CloverActionInitialization::~CloverActionInitialization()
{}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
void CloverActionInitialization::BuildForMaster() const
{
auto eventAction = new CloverEventAction;
SetUserAction(new CloverRunAction(eventAction));
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
void CloverActionInitialization::Build() const
{
auto eventAction = new CloverEventAction;
SetUserAction(eventAction);
SetUserAction(new CloverPrimaryGeneratorAction());
SetUserAction(new CloverRunAction(eventAction));
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......