EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ActsExamples::RunAction Class Referencefinal

The material mapping run action. More...

#include <acts/blob/sPHENIX/Examples/Algorithms/Geant4/src/RunAction.hpp>

+ Inheritance diagram for ActsExamples::RunAction:
+ Collaboration diagram for ActsExamples::RunAction:

Public Member Functions

 RunAction ()
 Construct the action and ensure singleton usage.
 
 ~RunAction () finaloverride
 
void BeginOfRunAction (const G4Run *) finaloverride
 
void EndOfRunAction (const G4Run *) finaloverride
 Interface method at the end of the run.
 

Static Public Member Functions

static RunActioninstance ()
 Static access method.
 

Static Private Attributes

static RunActions_instance = nullptr
 Instance of the EventAction.
 

Detailed Description

The material mapping run action.

The RunAction class is the implementation of the Geant4 class G4UserRunAction. It initiates the run an resets the EventAction

Definition at line 27 of file RunAction.hpp.

View newest version in sPHENIX GitHub at line 27 of file RunAction.hpp

Constructor & Destructor Documentation

RunAction::RunAction ( )

Construct the action and ensure singleton usage.

Definition at line 25 of file RunAction.cpp.

View newest version in sPHENIX GitHub at line 25 of file RunAction.cpp

References s_instance.

RunAction::~RunAction ( )
finaloverride

Definition at line 33 of file RunAction.cpp.

View newest version in sPHENIX GitHub at line 33 of file RunAction.cpp

References s_instance.

Member Function Documentation

void RunAction::BeginOfRunAction ( const G4Run *  aRun)
finaloverride

Interface method at the begin of the run

Note
resets the event action

Definition at line 37 of file RunAction.cpp.

View newest version in sPHENIX GitHub at line 37 of file RunAction.cpp

References ActsExamples::EventAction::clear(), and ActsExamples::EventAction::instance().

+ Here is the call graph for this function:

void RunAction::EndOfRunAction ( const G4Run *  aRun)
finaloverride

Interface method at the end of the run.

Definition at line 43 of file RunAction.cpp.

View newest version in sPHENIX GitHub at line 43 of file RunAction.cpp

RunAction * RunAction::instance ( )
static

Static access method.

Definition at line 21 of file RunAction.cpp.

View newest version in sPHENIX GitHub at line 21 of file RunAction.cpp

References s_instance.

Member Data Documentation

RunAction * RunAction::s_instance = nullptr
staticprivate

Instance of the EventAction.

Definition at line 45 of file RunAction.hpp.

View newest version in sPHENIX GitHub at line 45 of file RunAction.hpp

Referenced by instance(), RunAction(), and ~RunAction().


The documentation for this class was generated from the following files: