LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
artg4tk::ArtG4EventAction Class Reference

#include "ArtG4EventAction.hh"

Inheritance diagram for artg4tk::ArtG4EventAction:

Public Member Functions

 ArtG4EventAction (ActionHolderService *actionHolder, DetectorHolderService *detectorHolder)
 

Private Member Functions

void BeginOfEventAction (const G4Event *currentEvent) override
 
void EndOfEventAction (const G4Event *currentEvent) override
 

Private Attributes

ActionHolderServiceactionHolder_
 
DetectorHolderServicedetectorHolder_
 

Detailed Description

Definition at line 18 of file ArtG4EventAction.hh.

Constructor & Destructor Documentation

artg4tk::ArtG4EventAction::ArtG4EventAction ( ActionHolderService actionHolder,
DetectorHolderService detectorHolder 
)

Definition at line 13 of file ArtG4EventAction.cc.

References detectorHolder_.

15  : actionHolder_{actionHolder}, detectorHolder_{detectorHolder}
16 {}
ActionHolderService * actionHolder_
DetectorHolderService * detectorHolder_

Member Function Documentation

void artg4tk::ArtG4EventAction::BeginOfEventAction ( const G4Event *  currentEvent)
overrideprivate

Definition at line 20 of file ArtG4EventAction.cc.

References actionHolder_, and artg4tk::ActionHolderService::beginOfEventAction().

21 {
22  actionHolder_->beginOfEventAction(currentEvent);
23 }
ActionHolderService * actionHolder_
void beginOfEventAction(const G4Event *)
void artg4tk::ArtG4EventAction::EndOfEventAction ( const G4Event *  currentEvent)
overrideprivate

Definition at line 28 of file ArtG4EventAction.cc.

References actionHolder_, detectorHolder_, artg4tk::ActionHolderService::endOfEventAction(), and artg4tk::DetectorHolderService::fillEventWithArtHits().

29 {
30  detectorHolder_->fillEventWithArtHits(currentEvent->GetHCofThisEvent());
31  actionHolder_->endOfEventAction(currentEvent);
32 }
void endOfEventAction(const G4Event *)
ActionHolderService * actionHolder_
DetectorHolderService * detectorHolder_
void fillEventWithArtHits(G4HCofThisEvent *hc)

Member Data Documentation

ActionHolderService* artg4tk::ArtG4EventAction::actionHolder_
private

Definition at line 32 of file ArtG4EventAction.hh.

Referenced by BeginOfEventAction(), and EndOfEventAction().

DetectorHolderService* artg4tk::ArtG4EventAction::detectorHolder_
private

Definition at line 33 of file ArtG4EventAction.hh.

Referenced by ArtG4EventAction(), and EndOfEventAction().


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