Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ActsExamples::Geant4::HepMC3::RunAction Exception Referencefinal

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

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

Public Member Functions

 RunAction ()
 Construct the action and ensure singleton usage.
 
 ~RunAction () override
 
void BeginOfRunAction (const G4Run *run) override
 
void EndOfRunAction (const G4Run *run) override
 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 RunAction class is the implementation of the Geant4 class G4UserRunAction. It initiates the run an resets the EventAction

Definition at line 23 of file RunAction.hpp.

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

Constructor & Destructor Documentation

ActsExamples::Geant4::HepMC3::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.

ActsExamples::Geant4::HepMC3::RunAction::~RunAction ( )
override

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 ActsExamples::Geant4::HepMC3::RunAction::BeginOfRunAction ( const G4Run *  run)
override

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::Geant4::HepMC3::EventAction::clear(), and ActsExamples::Geant4::HepMC3::EventAction::instance().

+ Here is the call graph for this function:

void ActsExamples::Geant4::HepMC3::RunAction::EndOfRunAction ( const G4Run *  run)
override

Interface method at the end of the run.

Definition at line 42 of file RunAction.cpp.

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

RunAction * ActsExamples::Geant4::HepMC3::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 * ActsExamples::Geant4::HepMC3::RunAction::s_instance = nullptr
staticprivate

Instance of the EventAction.

Definition at line 41 of file RunAction.hpp.

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

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


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