PlasmaMLPALLAS
|
Implements the Geant4 stepping action for the PALLAS project. More...
#include <PlasmaMLPALLASSteppingAction.hh>
Public Member Functions | |
PlasmaMLPALLASSteppingAction () | |
Constructor. | |
~PlasmaMLPALLASSteppingAction () override | |
Destructor. | |
void | SetInputInformations (PlasmaMLPALLASEventAction *evtac) const |
Store the initial particle information at the beginning of an event. | |
void | SetQuadrupoleInformation (PlasmaMLPALLASEventAction *evtac, QuadID quad, PositionType posType) const |
Store quadrupole crossing information. | |
void | UserSteppingAction (const G4Step *step) override |
Stepping action executed at each Geant4 step. | |
Implements the Geant4 stepping action for the PALLAS project.
This class records tracking information at each step of a particle inside the simulation. It extracts position, momentum, deposited energy and other metadata (volume, process, etc.) for later analysis.
It also handles quadrupole-related information and collimator updates.
PlasmaMLPALLASSteppingAction::PlasmaMLPALLASSteppingAction | ( | ) |
Constructor.
Initializes the stepping action and messenger.
Initializes the Geant4 generic messenger and declares user commands for controlling tracking status (global and for collimators).
|
override |
Destructor.
Cleans up the allocated messenger.
void PlasmaMLPALLASSteppingAction::SetInputInformations | ( | PlasmaMLPALLASEventAction * | evtac | ) | const |
Store the initial particle information at the beginning of an event.
Store the initial beam parameters at the beginning of the event.
evtac | Pointer to the event action where data will be stored. |
evtac | Pointer to the event action where the values are stored. |
void PlasmaMLPALLASSteppingAction::SetQuadrupoleInformation | ( | PlasmaMLPALLASEventAction * | evtac, |
QuadID | quad, | ||
PositionType | posType | ||
) | const |
Store quadrupole crossing information.
Store quadrupole-related information in the event statistics.
evtac | Pointer to the event action. |
quad | Identifier of the quadrupole. |
posType | Position type (pre-step or post-step). |
evtac | Pointer to the event action. |
quad | Identifier of the quadrupole. |
posType | Position type (begin or end of quadrupole). |
|
override |
Stepping action executed at each Geant4 step.
Main Geant4 stepping action executed at each simulation step.
Extracts step information (positions, momenta, energy deposition, etc.) and stores it for later analysis. Also manages collimator updates.
step | Current Geant4 step. |
Collects track and step information (positions, momenta, energies, volumes). Manages input beam initialization, quadrupole crossing, collimator detection, YAG screens, and particle termination.
aStep | Pointer to the current Geant4 step. |