PlasmaMLPALLAS
Loading...
Searching...
No Matches
Classes | Public Member Functions | List of all members
PlasmaMLPALLASSteppingAction Class Reference

Implements the Geant4 stepping action for the PALLAS project. More...

#include <PlasmaMLPALLASSteppingAction.hh>

Inheritance diagram for PlasmaMLPALLASSteppingAction:
Inheritance graph
[legend]
Collaboration diagram for PlasmaMLPALLASSteppingAction:
Collaboration graph
[legend]

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.
 

Detailed Description

Implements the Geant4 stepping action for the PALLAS project.

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

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.

Constructor & Destructor Documentation

◆ PlasmaMLPALLASSteppingAction()

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).

◆ ~PlasmaMLPALLASSteppingAction()

PlasmaMLPALLASSteppingAction::~PlasmaMLPALLASSteppingAction ( )
override

Destructor.

Cleans up the allocated messenger.

Member Function Documentation

◆ SetInputInformations()

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.

Parameters
evtacPointer to the event action where data will be stored.
evtacPointer to the event action where the values are stored.

◆ SetQuadrupoleInformation()

void PlasmaMLPALLASSteppingAction::SetQuadrupoleInformation ( PlasmaMLPALLASEventAction evtac,
QuadID  quad,
PositionType  posType 
) const

Store quadrupole crossing information.

Store quadrupole-related information in the event statistics.

Parameters
evtacPointer to the event action.
quadIdentifier of the quadrupole.
posTypePosition type (pre-step or post-step).
evtacPointer to the event action.
quadIdentifier of the quadrupole.
posTypePosition type (begin or end of quadrupole).

◆ UserSteppingAction()

void PlasmaMLPALLASSteppingAction::UserSteppingAction ( const G4Step *  aStep)
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.

Parameters
stepCurrent Geant4 step.

Collects track and step information (positions, momenta, energies, volumes). Manages input beam initialization, quadrupole crossing, collimator detection, YAG screens, and particle termination.

Parameters
aStepPointer to the current Geant4 step.

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