Event action class for PlasmaMLPALLAS.
More...
#include <PlasmaMLPALLASEventAction.hh>
Event action class for PlasmaMLPALLAS.
Header file for event-level actions in PlasmaMLPALLAS, including per-event statistics structures.
Implements G4UserEventAction interface to handle per-event statistics, including input particle, collimator, quadrupole, and detector data.
- Author
- Arnaud HUBER huber.nosp@m.@lp2.nosp@m.ib.in.nosp@m.2p3..nosp@m.fr - Alexei SYTOV sytov.nosp@m.@inf.nosp@m.n.it
- Date
- 2025
- Copyright
- PALLAS Project - GEANT4 Collaboration
◆ PlasmaMLPALLASEventAction()
PlasmaMLPALLASEventAction::PlasmaMLPALLASEventAction |
( |
const char * |
suff | ) |
|
< Run action header (for statistics accumulation)
Constructor
< Stepping action header (per-step updates) < Event action header
Constructor for PlasmaMLPALLASEventAction
- Parameters
-
suff | Suffix used for naming ROOT branches or output files |
Initializes the event action and stores the provided suffix.
◆ ~PlasmaMLPALLASEventAction()
PlasmaMLPALLASEventAction::~PlasmaMLPALLASEventAction |
( |
| ) |
|
◆ BeginOfEventAction()
void PlasmaMLPALLASEventAction::BeginOfEventAction |
( |
const G4Event * |
evt | ) |
|
Called at the beginning of each event.
Called at the beginning of each event
- Parameters
-
evt | Pointer to the current G4Event |
Resets all per-event statistics and counters to initial empty states. This includes:
- Input-related counters
- Horizontal and vertical collimator statistics
- Beam Stop (BS) and BSPEC YAG detector statistics
- Quadrupole statistics
Reset input statistics
Reset horizontal and vertical collimator statistics
Reset Beam Stop (BS) and BSPEC YAG detector statistics
Reset Quadrupole statistics
◆ EndOfEventAction()
void PlasmaMLPALLASEventAction::EndOfEventAction |
( |
const G4Event * |
evt | ) |
|
Called at the end of each event.
Called at the end of each event
- Parameters
-
evt | Pointer to the current G4Event |
Updates run-level statistics by passing the per-event data to the PlasmaMLPALLASRunAction. Only non-empty or relevant data are updated for input, BS YAG, and BSPEC YAG statistics, while quadrupole and collimator statistics are always updated.
Get pointer to current run action
Update input energy statistics if valid
Update Beam Stop YAG statistics if not empty
Update Beam Stop SPEC YAG statistics if not empty
Always update quadrupole and collimator statistics
◆ GetBSPECYAG()
RunTallyYAG & PlasmaMLPALLASEventAction::GetBSPECYAG |
( |
| ) |
|
|
inline |
◆ GetBSYAG()
Accessors for generic detector statistics
◆ GetHorizontalCollimators()
◆ GetStatsQuadrupoles()
Horizontal collimator flag and energy accessors Vertical collimator flag and energy accessors Accessors for quadrupole statistics
◆ GetVerticalCollimators()
Accessors for generic detector statistics
◆ SetEnergy()
void PlasmaMLPALLASEventAction::SetEnergy |
( |
G4float |
d | ) |
|
|
inline |
Setter for quadrupole energy
◆ SetEnergyStart()
void PlasmaMLPALLASEventAction::SetEnergyStart |
( |
G4float |
d | ) |
|
|
inline |
◆ SetXpStart()
void PlasmaMLPALLASEventAction::SetXpStart |
( |
G4float |
d | ) |
|
|
inline |
◆ SetXStart()
void PlasmaMLPALLASEventAction::SetXStart |
( |
G4float |
d | ) |
|
|
inline |
Setters for input particle data
◆ SetYpStart()
void PlasmaMLPALLASEventAction::SetYpStart |
( |
G4float |
d | ) |
|
|
inline |
◆ SetYStart()
void PlasmaMLPALLASEventAction::SetYStart |
( |
G4float |
d | ) |
|
|
inline |
◆ SetZpStart()
void PlasmaMLPALLASEventAction::SetZpStart |
( |
G4float |
d | ) |
|
|
inline |
◆ SetZStart()
void PlasmaMLPALLASEventAction::SetZStart |
( |
G4float |
d | ) |
|
|
inline |
The documentation for this class was generated from the following files: