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

#include <geant4/tree/geant4-10.6-release/examples/basic/B4/B4b/include/B4bRunAction.hh>

+ Inheritance diagram for B4bRunAction:
+ Collaboration diagram for B4bRunAction:

Public Member Functions

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

Additional Inherited Members

- Protected Attributes inherited from G4UserRunAction
G4bool isMaster
 

Detailed Description

Run action class

It accumulates statistic and computes dispersion of the energy deposit and track lengths of charged particles with use of analysis tools: H1D histograms are created in BeginOfRunAction() for the following physics quantities:

  • Edep in absorber
  • Edep in gap
  • Track length in absorber
  • Track length in gap The same values are also saved in the ntuple. The histograms and ntuple are saved in the output file in a format accoring to a selected technology in B4Analysis.hh.

In EndOfRunAction(), the accumulated statistic and computed dispersion is printed.

Definition at line 56 of file B4bRunAction.hh.

View newest version in sPHENIX GitHub at line 56 of file B4bRunAction.hh

Constructor & Destructor Documentation

B4bRunAction::B4bRunAction ( )

Definition at line 41 of file B4bRunAction.cc.

View newest version in sPHENIX GitHub at line 41 of file B4bRunAction.cc

References cm, G4cout, G4endl, G4RunManager::GetRunManager(), G4ToolsAnalysisManager::Instance(), m, MeV, and G4RunManager::SetPrintProgress().

+ Here is the call graph for this function:

B4bRunAction::~B4bRunAction ( )
virtual

Definition at line 81 of file B4bRunAction.cc.

View newest version in sPHENIX GitHub at line 81 of file B4bRunAction.cc

References G4ToolsAnalysisManager::Instance().

+ Here is the call graph for this function:

Member Function Documentation

void B4bRunAction::BeginOfRunAction ( const G4Run run)
virtual

Reimplemented from G4UserRunAction.

Definition at line 95 of file B4bRunAction.cc.

View newest version in sPHENIX GitHub at line 95 of file B4bRunAction.cc

References G4cout, G4endl, G4Run::GetRunID(), and G4ToolsAnalysisManager::Instance().

+ Here is the call graph for this function:

void B4bRunAction::EndOfRunAction ( const G4Run )
virtual

Reimplemented from G4UserRunAction.

Definition at line 113 of file B4bRunAction.cc.

View newest version in sPHENIX GitHub at line 113 of file B4bRunAction.cc

References G4BestUnit, G4cout, G4endl, G4ToolsAnalysisManager::Instance(), and G4UserRunAction::isMaster.

+ Here is the call graph for this function:

G4Run * B4bRunAction::GenerateRun ( void  )
virtual

Reimplemented from G4UserRunAction.

Definition at line 88 of file B4bRunAction.cc.

View newest version in sPHENIX GitHub at line 88 of file B4bRunAction.cc


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