geant4-B1-example  1.0
 All Classes Files Functions Variables Pages
B1EventAction Class Reference

user event class More...

#include <B1EventAction.hh>

Inheritance diagram for B1EventAction:
Collaboration diagram for B1EventAction:

Public Member Functions

 B1EventAction (B1RunAction *runAction)
 
virtual ~B1EventAction ()
 do nothing. More...
 
virtual void BeginOfEventAction (const G4Event *event)
 reset B1EventAction::fEdep to 0 More...
 
virtual void EndOfEventAction (const G4Event *event)
 
void AddEdep (G4double edep)
 for user stepping action object to update the B1EventAction::fEdep. More...
 

Detailed Description

user event class

Definition at line 19 of file B1EventAction.hh.

Constructor & Destructor Documentation

B1EventAction::B1EventAction ( B1RunAction runAction)

B1EventAction::fEdep represents the energy deposit from a given event.
here, we initialize B1EventAction::fEdep = 0

Definition at line 13 of file B1EventAction.cc.

B1EventAction::~B1EventAction ( )
virtual

do nothing.

Definition at line 21 of file B1EventAction.cc.

Member Function Documentation

void B1EventAction::BeginOfEventAction ( const G4Event *  event)
virtual

reset B1EventAction::fEdep to 0

Definition at line 25 of file B1EventAction.cc.

void B1EventAction::EndOfEventAction ( const G4Event *  event)
virtual

at the end of a given event, we use fRunAction object to update the B1RunAction::fEdep by call B1RunAction::AddEdep()

Definition at line 32 of file B1EventAction.cc.

References B1RunAction::AddEdep().

Here is the call graph for this function:

void B1EventAction::AddEdep ( G4double  edep)
inline

for user stepping action object to update the B1EventAction::fEdep.

Definition at line 32 of file B1EventAction.hh.

Referenced by B1SteppingAction::UserSteppingAction().

Here is the caller graph for this function:


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