|
ATLAS Offline Software
|
Go to the documentation of this file.
25 G4cout <<
"TestAction::BeginOfRunAction" << G4endl;
33 G4cout <<
"TestAction::EndOfRunAction - "
44 G4cout <<
"TestAction::BeginOfEventAction" << G4endl;
53 G4cout <<
"TestAction::EndOfEventAction" << G4endl;
68 const std::string&
name,
80 return StatusCode::SUCCESS;
95 results.numEvent <<
" events processed, " <<
96 results.numStep <<
" steps processed");
98 return StatusCode::SUCCESS;
104 std::unique_ptr<TestAction>
109 auto action = std::make_unique<TestAction>();
virtual void BeginOfRunAction(const G4Run *) override final
Executes before the run.
Struct for passing around user actions.
const Report & getReport() const
Get the results report.
virtual void UserSteppingAction(const G4Step *step) override final
Stepping action method.
Report m_report
Results report.
void accumulate(ResultType &result, Mapper mapOp, Reducer reduceOp)
Accumulate results across user actions with specified operations.
::StatusCode StatusCode
StatusCode definition for legacy code.
virtual void EndOfEventAction(const G4Event *) override final
Executes at end of G4 event.
std::vector< G4UserRunAction * > runActions
virtual void BeginOfEventAction(const G4Event *) override final
Executes at beginning of G4 event.
Results to be accumulated across threads at end of job.
std::vector< G4UserEventAction * > eventActions
std::vector< G4UserSteppingAction * > steppingActions
virtual void EndOfRunAction(const G4Run *) override final
Exeuctes after the run.
void merge(const Report &other)