Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4MultiEventAction Class Reference

#include <G4MultiEventAction.hh>

+ Inheritance diagram for G4MultiEventAction:

Public Member Functions

 G4MultiEventAction ()=default
 
virtual ~G4MultiEventAction () override=default
 
virtual void SetEventManager (G4EventManager *) override
 
virtual void BeginOfEventAction (const G4Event *) override
 
virtual void EndOfEventAction (const G4Event *) override
 
- Public Member Functions inherited from G4UserEventAction
 G4UserEventAction ()
 
virtual ~G4UserEventAction ()
 
virtual void SetEventManager (G4EventManager *value)
 
virtual void BeginOfEventAction (const G4Event *anEvent)
 
virtual void EndOfEventAction (const G4Event *anEvent)
 

Additional Inherited Members

- Protected Attributes inherited from G4UserEventAction
G4EventManagerfpEventManager = nullptr
 

Detailed Description

Definition at line 56 of file G4MultiEventAction.hh.

Constructor & Destructor Documentation

◆ G4MultiEventAction()

G4MultiEventAction::G4MultiEventAction ( )
default

◆ ~G4MultiEventAction()

virtual G4MultiEventAction::~G4MultiEventAction ( )
overridevirtualdefault

Member Function Documentation

◆ BeginOfEventAction()

void G4MultiEventAction::BeginOfEventAction ( const G4Event evt)
overridevirtual

Reimplemented from G4UserEventAction.

Definition at line 41 of file G4MultiEventAction.cc.

42{
43 std::for_each( begin() , end() ,
44 [evt](G4UserEventActionUPtr& e) { e->BeginOfEventAction(evt); }
45 );
46}
std::unique_ptr< G4UserEventAction > G4UserEventActionUPtr

◆ EndOfEventAction()

void G4MultiEventAction::EndOfEventAction ( const G4Event evt)
overridevirtual

Reimplemented from G4UserEventAction.

Definition at line 48 of file G4MultiEventAction.cc.

49{
50 std::for_each( begin() , end() ,
51 [evt](G4UserEventActionUPtr& e) { e->EndOfEventAction(evt); }
52 );
53}

◆ SetEventManager()

void G4MultiEventAction::SetEventManager ( G4EventManager mgr)
overridevirtual

Reimplemented from G4UserEventAction.

Definition at line 34 of file G4MultiEventAction.cc.

35{
36 std::for_each( begin() , end() ,
37 [mgr](G4UserEventActionUPtr& e) { e->SetEventManager(mgr); }
38 );
39}

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