G4OCCT 0.1.0
Geant4 interface to Open CASCADE Technology (OCCT) geometry definitions
Loading...
Searching...
No Matches
G4OCCTEventAction Class Reference

Event action that accumulates per-event quantities. More...

#include <G4OCCTEventAction.hh>

Inheritance diagram for G4OCCTEventAction:

Public Member Functions

 G4OCCTEventAction (const G4OCCTRunAction *runAction)
 
 ~G4OCCTEventAction () override=default
 
void BeginOfEventAction (const G4Event *event) override
 
void EndOfEventAction (const G4Event *event) override
 
G4int GetEventId () const
 Returns the current event ID; cached in BeginOfEventAction.
 
void AddStep (G4double edep, G4double stepLength)
 Called from G4OCCTSteppingAction for each step.
 
void AddTrack ()
 Called from G4OCCTTrackingAction at the end of each track.
 
void IncrementPrimaries ()
 Called from G4OCCTTrackingAction for primary tracks.
 

Detailed Description

Event action that accumulates per-event quantities.

G4OCCTSteppingAction and G4OCCTTrackingAction call the Add* methods below to accumulate totals. At the end of each event the accumulated values are written to the "events" ntuple.

Definition at line 22 of file G4OCCTEventAction.hh.

Constructor & Destructor Documentation

◆ G4OCCTEventAction()

G4OCCTEventAction::G4OCCTEventAction ( const G4OCCTRunAction runAction)
explicit

Definition at line 13 of file G4OCCTEventAction.cc.

◆ ~G4OCCTEventAction()

G4OCCTEventAction::~G4OCCTEventAction ( )
overridedefault

Member Function Documentation

◆ AddStep()

void G4OCCTEventAction::AddStep ( G4double  edep,
G4double  stepLength 
)

Called from G4OCCTSteppingAction for each step.

Definition at line 40 of file G4OCCTEventAction.cc.

Referenced by G4OCCTSteppingAction::UserSteppingAction().

◆ AddTrack()

void G4OCCTEventAction::AddTrack ( )

Called from G4OCCTTrackingAction at the end of each track.

Definition at line 46 of file G4OCCTEventAction.cc.

Referenced by G4OCCTTrackingAction::PostUserTrackingAction().

◆ BeginOfEventAction()

void G4OCCTEventAction::BeginOfEventAction ( const G4Event *  event)
override

Definition at line 15 of file G4OCCTEventAction.cc.

◆ EndOfEventAction()

void G4OCCTEventAction::EndOfEventAction ( const G4Event *  event)
override

Definition at line 24 of file G4OCCTEventAction.cc.

References G4OCCTRunAction::GetEventsNtupleId().

◆ GetEventId()

G4int G4OCCTEventAction::GetEventId ( ) const
inline

Returns the current event ID; cached in BeginOfEventAction.

Definition at line 31 of file G4OCCTEventAction.hh.

Referenced by G4OCCTTrackingAction::PostUserTrackingAction(), and G4OCCTSteppingAction::UserSteppingAction().

◆ IncrementPrimaries()

void G4OCCTEventAction::IncrementPrimaries ( )

Called from G4OCCTTrackingAction for primary tracks.

Definition at line 48 of file G4OCCTEventAction.cc.

Referenced by G4OCCTTrackingAction::PreUserTrackingAction().


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