ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Par02RunAction Class Reference

#include <geant4/tree/geant4-10.6-release/examples/extended/parameterisations/Par02/include/Par02RunAction.hh>

+ Inheritance diagram for Par02RunAction:
+ Collaboration diagram for Par02RunAction:

Public Member Functions

 Par02RunAction (const G4String OutName="SimpleOutput")
 
virtual ~Par02RunAction ()
 
virtual void BeginOfRunAction (const G4Run *)
 
virtual void EndOfRunAction (const G4Run *)
 
- Public Member Functions inherited from G4UserRunAction
 G4UserRunAction ()
 
virtual ~G4UserRunAction ()
 
virtual G4RunGenerateRun ()
 
virtual void SetMaster (G4bool val=true)
 
G4bool IsMaster () const
 

Additional Inherited Members

- Protected Attributes inherited from G4UserRunAction
G4bool isMaster
 

Detailed Description

Run action (before/after run processing).

Defines the action at the beginning and at the end of each run. Content of G4Run cannot be changed. The class needs to be set in G4RunManager::SetUserAction().

Author
Anna Zaborowska

Definition at line 45 of file Par02RunAction.hh.

View newest version in sPHENIX GitHub at line 45 of file Par02RunAction.hh

Constructor & Destructor Documentation

Par02RunAction::Par02RunAction ( const G4String  OutName = "SimpleOutput")

A default constructor.

Parameters
OutNameThe output root file name (it will store all the events within one run).

Definition at line 38 of file Par02RunAction.cc.

View newest version in sPHENIX GitHub at line 38 of file Par02RunAction.cc

References Par02Output::Instance(), and Par02Output::SetFileName().

+ Here is the call graph for this function:

Par02RunAction::~Par02RunAction ( )
virtual

Definition at line 45 of file Par02RunAction.cc.

View newest version in sPHENIX GitHub at line 45 of file Par02RunAction.cc

References Par02Output::Instance(), and G4UserRunAction::isMaster.

+ Here is the call graph for this function:

Member Function Documentation

void Par02RunAction::BeginOfRunAction ( const G4Run aRun)
virtual

Defines the actions at the beginning of the run. It starts the analysis (create output root file) and create all the histograms defined in Par02Output singleton class.

Reimplemented from G4UserRunAction.

Definition at line 55 of file Par02RunAction.cc.

View newest version in sPHENIX GitHub at line 55 of file Par02RunAction.cc

References Par02Output::CreateHistograms(), G4Run::GetRunID(), Par02Output::Instance(), and Par02Output::StartAnalysis().

+ Here is the call graph for this function:

void Par02RunAction::EndOfRunAction ( const G4Run )
virtual

Defines the actions at the end of the run. It ends the analysis (write and close output root file) via Par02Output singleton class.

Reimplemented from G4UserRunAction.

Definition at line 62 of file Par02RunAction.cc.

View newest version in sPHENIX GitHub at line 62 of file Par02RunAction.cc

References Par02Output::EndAnalysis(), and Par02Output::Instance().

+ Here is the call graph for this function:


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