ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
Writes out material track records. More...
#include <acts/blob/master/Examples/Algorithms/Geant4/include/ACTFW/Plugins/Geant4/MMEventAction.hpp>
Public Member Functions | |
MMEventAction () | |
Constructor. | |
~MMEventAction () override | |
Virtual destructor. | |
void | BeginOfEventAction (const G4Event *event) finaloverride |
void | EndOfEventAction (const G4Event *event) finaloverride |
void | Reset () |
std::vector < Acts::RecordedMaterialTrack > const | MaterialTracks () |
FW::SimHitContainer const | TrackSteps () |
Public Member Functions inherited from G4UserEventAction | |
G4UserEventAction () | |
virtual | ~G4UserEventAction () |
virtual void | SetEventManager (G4EventManager *value) |
Static Public Member Functions | |
static MMEventAction * | Instance () |
Static access method. | |
Private Attributes | |
std::vector < Acts::RecordedMaterialTrack > | m_records |
The materialTrackWriter. | |
FW::SimHitContainer | m_tracksteps |
Static Private Attributes | |
static MMEventAction * | fgInstance = nullptr |
Instance of the EventAction. | |
Additional Inherited Members | |
Protected Attributes inherited from G4UserEventAction | |
G4EventManager * | fpEventManager |
Writes out material track records.
The MMEventAction class is the realization of the Geant4 class G4UserEventAction and is writing out the collected RecordedMaterialTrack entities needed for material mapping once per event.
Definition at line 37 of file MMEventAction.hpp.
View newest version in sPHENIX GitHub at line 37 of file MMEventAction.hpp
FW::Geant4::MMEventAction::MMEventAction | ( | ) |
Constructor.
Definition at line 25 of file MMEventAction.cpp.
View newest version in sPHENIX GitHub at line 25 of file MMEventAction.cpp
References fgInstance.
|
override |
Virtual destructor.
Definition at line 33 of file MMEventAction.cpp.
View newest version in sPHENIX GitHub at line 33 of file MMEventAction.cpp
Interface method for begin of the event
event | is the G4Event to be processed |
Reimplemented from G4UserEventAction.
Definition at line 37 of file MMEventAction.cpp.
View newest version in sPHENIX GitHub at line 37 of file MMEventAction.cpp
References FW::Geant4::MMSteppingAction::Instance(), and FW::Geant4::MMSteppingAction::Reset().
Interface method for end of event
event | is the G4Event to be processed |
Reimplemented from G4UserEventAction.
Definition at line 42 of file MMEventAction.cpp.
View newest version in sPHENIX GitHub at line 42 of file MMEventAction.cpp
References FW::Geant4::MMPrimaryGeneratorAction::direction(), FW::Geant4::MMSteppingAction::Instance(), FW::Geant4::MMPrimaryGeneratorAction::Instance(), FW::Geant4::MMSteppingAction::materialSteps(), CLHEP::Hep3Vector::x(), CLHEP::Hep3Vector::y(), and CLHEP::Hep3Vector::z().
|
static |
Static access method.
Definition at line 20 of file MMEventAction.cpp.
View newest version in sPHENIX GitHub at line 20 of file MMEventAction.cpp
References fgInstance.
Referenced by FW::Geant4::MMRunAction::BeginOfRunAction(), and FW::GeantinoRecording::execute().
|
inline |
Definition at line 78 of file MMEventAction.hpp.
View newest version in sPHENIX GitHub at line 78 of file MMEventAction.hpp
References m_records.
Referenced by FW::GeantinoRecording::execute().
void FW::Geant4::MMEventAction::Reset | ( | ) |
Interface method
Definition at line 61 of file MMEventAction.cpp.
View newest version in sPHENIX GitHub at line 61 of file MMEventAction.cpp
Referenced by FW::Geant4::MMRunAction::BeginOfRunAction().
|
inline |
Definition at line 84 of file MMEventAction.hpp.
View newest version in sPHENIX GitHub at line 84 of file MMEventAction.hpp
References m_tracksteps.
|
staticprivate |
Instance of the EventAction.
Definition at line 70 of file MMEventAction.hpp.
View newest version in sPHENIX GitHub at line 70 of file MMEventAction.hpp
Referenced by Instance(), and MMEventAction().
|
private |
The materialTrackWriter.
Definition at line 73 of file MMEventAction.hpp.
View newest version in sPHENIX GitHub at line 73 of file MMEventAction.hpp
Referenced by MaterialTracks().
|
private |
Definition at line 74 of file MMEventAction.hpp.
View newest version in sPHENIX GitHub at line 74 of file MMEventAction.hpp
Referenced by TrackSteps().