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

#include <geant4/tree/geant4-10.6-release/examples/basic/B4/B4c/include/B4cEventAction.hh>

+ Inheritance diagram for B4cEventAction:
+ Collaboration diagram for B4cEventAction:

Public Member Functions

 B4cEventAction ()
 
virtual ~B4cEventAction ()
 
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

B4cCalorHitsCollectionGetHitsCollection (G4int hcID, const G4Event *event) const
 
void PrintEventStatistics (G4double absoEdep, G4double absoTrackLength, G4double gapEdep, G4double gapTrackLength) const
 

Private Attributes

G4int fAbsHCID
 
G4int fGapHCID
 

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 the hits collections.

Definition at line 45 of file B4cEventAction.hh.

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

Constructor & Destructor Documentation

B4cEventAction::B4cEventAction ( )

Definition at line 46 of file B4cEventAction.cc.

View newest version in sPHENIX GitHub at line 46 of file B4cEventAction.cc

B4cEventAction::~B4cEventAction ( )
virtual

Definition at line 54 of file B4cEventAction.cc.

View newest version in sPHENIX GitHub at line 54 of file B4cEventAction.cc

Member Function Documentation

void B4cEventAction::BeginOfEventAction ( const G4Event event)
virtual

Reimplemented from G4UserEventAction.

Definition at line 99 of file B4cEventAction.cc.

View newest version in sPHENIX GitHub at line 99 of file B4cEventAction.cc

void B4cEventAction::EndOfEventAction ( const G4Event event)
virtual

Reimplemented from G4UserEventAction.

Definition at line 104 of file B4cEventAction.cc.

View newest version in sPHENIX GitHub at line 104 of file B4cEventAction.cc

References fAbsHCID, fGapHCID, G4cout, G4endl, G4SDManager::GetCollectionID(), GetHitsCollection(), G4RunManager::GetPrintProgress(), G4RunManager::GetRunManager(), G4SDManager::GetSDMpointer(), G4ToolsAnalysisManager::Instance(), and PrintEventStatistics().

+ Here is the call graph for this function:

B4cCalorHitsCollection * B4cEventAction::GetHitsCollection ( G4int  hcID,
const G4Event event 
) const
private

Definition at line 60 of file B4cEventAction.cc.

View newest version in sPHENIX GitHub at line 60 of file B4cEventAction.cc

References FatalException, and G4Exception().

Referenced by EndOfEventAction().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 79 of file B4cEventAction.cc.

View newest version in sPHENIX GitHub at line 79 of file B4cEventAction.cc

References G4BestUnit, G4cout, and G4endl.

Referenced by EndOfEventAction().

+ Here is the caller graph for this function:

Member Data Documentation

G4int B4cEventAction::fAbsHCID
private

Definition at line 62 of file B4cEventAction.hh.

View newest version in sPHENIX GitHub at line 62 of file B4cEventAction.hh

Referenced by EndOfEventAction().

G4int B4cEventAction::fGapHCID
private

Definition at line 63 of file B4cEventAction.hh.

View newest version in sPHENIX GitHub at line 63 of file B4cEventAction.hh

Referenced by EndOfEventAction().


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