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

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

+ Inheritance diagram for B4bEventAction:
+ Collaboration diagram for B4bEventAction:

Public Member Functions

 B4bEventAction ()
 
virtual ~B4bEventAction ()
 
virtual void BeginOfEventAction (const G4Event *event)
 
virtual void EndOfEventAction (const G4Event *event)
 
- Public Member Functions inherited from G4UserEventAction
 G4UserEventAction ()
 
virtual ~G4UserEventAction ()
 
virtual void SetEventManager (G4EventManager *value)
 

Private Member Functions

void PrintEventStatistics (G4double absoEdep, G4double absoTrackLength, G4double gapEdep, G4double gapTrackLength) const
 

Additional Inherited Members

- Protected Attributes inherited from G4UserEventAction
G4EventManagerfpEventManager
 

Detailed Description

Event action class

In EndOfEventAction(), it prints the accumulated quantities of the energy deposit and track lengths of charged particles in Absober and Gap layers stored in B4bRunData object.

Definition at line 42 of file B4bEventAction.hh.

View newest version in sPHENIX GitHub at line 42 of file B4bEventAction.hh

Constructor & Destructor Documentation

B4bEventAction::B4bEventAction ( )

Definition at line 42 of file B4bEventAction.cc.

View newest version in sPHENIX GitHub at line 42 of file B4bEventAction.cc

B4bEventAction::~B4bEventAction ( )
virtual

Definition at line 48 of file B4bEventAction.cc.

View newest version in sPHENIX GitHub at line 48 of file B4bEventAction.cc

Member Function Documentation

void B4bEventAction::BeginOfEventAction ( const G4Event event)
virtual

Reimplemented from G4UserEventAction.

Definition at line 73 of file B4bEventAction.cc.

View newest version in sPHENIX GitHub at line 73 of file B4bEventAction.cc

References G4RunManager::GetNonConstCurrentRun(), G4RunManager::GetRunManager(), and B4bRunData::Reset().

+ Here is the call graph for this function:

void B4bEventAction::EndOfEventAction ( const G4Event event)
virtual

Reimplemented from G4UserEventAction.

Definition at line 83 of file B4bEventAction.cc.

View newest version in sPHENIX GitHub at line 83 of file B4bEventAction.cc

References B4bRunData::FillPerEvent(), G4cout, G4endl, G4RunManager::GetNonConstCurrentRun(), G4RunManager::GetPrintProgress(), G4RunManager::GetRunManager(), kAbs, kGap, and PrintEventStatistics().

+ Here is the call graph for this function:

void B4bEventAction::PrintEventStatistics ( G4double  absoEdep,
G4double  absoTrackLength,
G4double  gapEdep,
G4double  gapTrackLength 
) const
private

Definition at line 53 of file B4bEventAction.cc.

View newest version in sPHENIX GitHub at line 53 of file B4bEventAction.cc

References G4BestUnit, G4cout, and G4endl.

Referenced by EndOfEventAction().

+ Here is the caller graph for this function:


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