Geant4  10.03
B4dEventAction Class Reference

Event action class. More...

#include <B4dEventAction.hh>

+ Inheritance diagram for B4dEventAction:
+ Collaboration diagram for B4dEventAction:

Public Member Functions

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

G4THitsMap< G4double > * GetHitsCollection (G4int hcID, const G4Event *event) const
 
G4double GetSum (G4THitsMap< G4double > *hitsMap) const
 
void PrintEventStatistics (G4double absoEdep, G4double absoTrackLength, G4double gapEdep, G4double gapTrackLength) const
 

Private Attributes

G4int fAbsoEdepHCID
 
G4int fGapEdepHCID
 
G4int fAbsoTrackLengthHCID
 
G4int fGapTrackLengthHCID
 

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 B4dEventAction.hh.

Constructor & Destructor Documentation

B4dEventAction::B4dEventAction ( )

Definition at line 45 of file B4dEventAction.cc.

B4dEventAction::~B4dEventAction ( )
virtual

Definition at line 55 of file B4dEventAction.cc.

Member Function Documentation

void B4dEventAction::BeginOfEventAction ( const G4Event event)
virtual

Reimplemented from G4UserEventAction.

Definition at line 113 of file B4dEventAction.cc.

void B4dEventAction::EndOfEventAction ( const G4Event event)
virtual

Reimplemented from G4UserEventAction.

Definition at line 118 of file B4dEventAction.cc.

References fAbsoEdepHCID, fAbsoTrackLengthHCID, fGapEdepHCID, fGapTrackLengthHCID, G4cout, G4endl, G4SDManager::GetCollectionID(), GetHitsCollection(), G4RunManager::GetPrintProgress(), G4RunManager::GetRunManager(), G4SDManager::GetSDMpointer(), GetSum(), and PrintEventStatistics().

+ Here is the call graph for this function:

G4THitsMap< G4double > * B4dEventAction::GetHitsCollection ( G4int  hcID,
const G4Event event 
) const
private

Definition at line 61 of file B4dEventAction.cc.

References FatalException, and G4Exception().

Referenced by EndOfEventAction().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4double B4dEventAction::GetSum ( G4THitsMap< G4double > *  hitsMap) const
private

Definition at line 80 of file B4dEventAction.cc.

References G4THitsMap< T >::GetMap().

Referenced by EndOfEventAction().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 92 of file B4dEventAction.cc.

References G4BestUnit, G4cout, and G4endl.

Referenced by EndOfEventAction().

+ Here is the caller graph for this function:

Member Data Documentation

G4int B4dEventAction::fAbsoEdepHCID
private

Definition at line 63 of file B4dEventAction.hh.

Referenced by EndOfEventAction().

G4int B4dEventAction::fAbsoTrackLengthHCID
private

Definition at line 65 of file B4dEventAction.hh.

Referenced by EndOfEventAction().

G4int B4dEventAction::fGapEdepHCID
private

Definition at line 64 of file B4dEventAction.hh.

Referenced by EndOfEventAction().

G4int B4dEventAction::fGapTrackLengthHCID
private

Definition at line 66 of file B4dEventAction.hh.

Referenced by EndOfEventAction().


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