|
G4OCCT 0.1.0
Geant4 interface to Open CASCADE Technology (OCCT) geometry definitions
|
Event action that accumulates per-event quantities. More...
#include <G4OCCTEventAction.hh>
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. | |
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.
|
explicit |
Definition at line 13 of file G4OCCTEventAction.cc.
|
overridedefault |
| 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().
| void G4OCCTEventAction::AddTrack | ( | ) |
Called from G4OCCTTrackingAction at the end of each track.
Definition at line 46 of file G4OCCTEventAction.cc.
Referenced by G4OCCTTrackingAction::PostUserTrackingAction().
|
override |
Definition at line 15 of file G4OCCTEventAction.cc.
|
override |
Definition at line 24 of file G4OCCTEventAction.cc.
References G4OCCTRunAction::GetEventsNtupleId().
|
inline |
Returns the current event ID; cached in BeginOfEventAction.
Definition at line 31 of file G4OCCTEventAction.hh.
Referenced by G4OCCTTrackingAction::PostUserTrackingAction(), and G4OCCTSteppingAction::UserSteppingAction().
| void G4OCCTEventAction::IncrementPrimaries | ( | ) |
Called from G4OCCTTrackingAction for primary tracks.
Definition at line 48 of file G4OCCTEventAction.cc.
Referenced by G4OCCTTrackingAction::PreUserTrackingAction().