Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
B2EventAction Class Reference

Event action class. More...

#include <B2EventAction.hh>

Inheritance diagram for B2EventAction:
Collaboration diagram for B2EventAction:

Public Member Functions

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

Additional Inherited Members

- Protected Attributes inherited from G4UserEventAction
G4EventManagerfpEventManager
 

Detailed Description

Event action class.

Definition at line 40 of file B2EventAction.hh.

Constructor & Destructor Documentation

B2EventAction::B2EventAction ( )

Definition at line 41 of file B2EventAction.cc.

B2EventAction::~B2EventAction ( )
virtual

Definition at line 47 of file B2EventAction.cc.

48 {}
B2EventAction::B2EventAction ( )
virtual B2EventAction::~B2EventAction ( )
virtual
B2EventAction::B2EventAction ( )
virtual B2EventAction::~B2EventAction ( )
virtual

Member Function Documentation

void B2EventAction::BeginOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

Definition at line 52 of file B2EventAction.cc.

53 {}
virtual void B2EventAction::BeginOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

virtual void B2EventAction::BeginOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

virtual void B2EventAction::EndOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

void B2EventAction::EndOfEventAction ( const G4Event event)
virtual

Reimplemented from G4UserEventAction.

Definition at line 57 of file B2EventAction.cc.

58 {
59  // get number of stored trajectories
60 
61  G4TrajectoryContainer* trajectoryContainer = event->GetTrajectoryContainer();
62  G4int n_trajectories = 0;
63  if (trajectoryContainer) n_trajectories = trajectoryContainer->entries();
64 
65  // periodic printing
66 
67  G4int eventID = event->GetEventID();
68  if ( eventID < 100 || eventID % 100 == 0) {
69  G4cout << ">>> Event: " << eventID << G4endl;
70  if ( trajectoryContainer ) {
71  G4cout << " " << n_trajectories
72  << " trajectories stored in this event." << G4endl;
73  }
74  G4VHitsCollection* hc = event->GetHCofThisEvent()->GetHC(0);
75  G4cout << " "
76  << hc->GetSize() << " hits stored in this event" << G4endl;
77  }
78 }
virtual size_t GetSize() const
const G4double hc
[MeV*fm]
int G4int
Definition: G4Types.hh:78
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61

Here is the call graph for this function:

virtual void B2EventAction::EndOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.


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