Geant4  10.00.p02
B4bEventAction Class Reference

Event action class. More...

#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 ()
 
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 43 of file B4bEventAction.hh.

Constructor & Destructor Documentation

B4bEventAction::B4bEventAction ( )

Definition at line 43 of file B4bEventAction.cc.

B4bEventAction::~B4bEventAction ( )
virtual

Definition at line 49 of file B4bEventAction.cc.

Member Function Documentation

void B4bEventAction::BeginOfEventAction ( const G4Event event)
virtual

Reimplemented from G4UserEventAction.

Definition at line 74 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 84 of file B4bEventAction.cc.

References B4bRunData::FillPerEvent(), G4cout, G4endl, B4bRunData::GetEdep(), G4RunManager::GetNonConstCurrentRun(), G4RunManager::GetPrintProgress(), G4RunManager::GetRunManager(), B4bRunData::GetTrackLength(), 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 54 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: