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

Event action class for PlasmaMLPALLAS. More...

#include <PlasmaMLPALLASEventAction.hh>

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

Public Member Functions

 PlasmaMLPALLASEventAction (const char *)
 < Run action header (for statistics accumulation)
 
 ~PlasmaMLPALLASEventAction ()
 Destructor for PlasmaMLPALLASEventAction.
 
void BeginOfEventAction (const G4Event *)
 Called at the beginning of each event.
 
void EndOfEventAction (const G4Event *)
 Called at the end of each event.
 
void SetXStart (G4float d)
 
void SetXpStart (G4float d)
 
void SetYStart (G4float d)
 
void SetYpStart (G4float d)
 
void SetZStart (G4float d)
 
void SetZpStart (G4float d)
 
void SetEnergyStart (G4float d)
 
void SetEnergy (G4float d)
 
RunTallyQuadrupolesGetStatsQuadrupoles ()
 
RunTallyCollimatorsGetVerticalCollimators ()
 
RunTallyCollimatorsGetHorizontalCollimators ()
 
RunTallyYAGGetBSYAG ()
 
RunTallyYAGGetBSPECYAG ()
 

Detailed Description

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

Constructor & Destructor Documentation

◆ 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
suffSuffix used for naming ROOT branches or output files

Initializes the event action and stores the provided suffix.

◆ ~PlasmaMLPALLASEventAction()

PlasmaMLPALLASEventAction::~PlasmaMLPALLASEventAction ( )

Destructor for PlasmaMLPALLASEventAction.

Destructor

Cleans up any resources used by the event action.

Member Function Documentation

◆ BeginOfEventAction()

void PlasmaMLPALLASEventAction::BeginOfEventAction ( const G4Event *  evt)

Called at the beginning of each event.

Called at the beginning of each event

Parameters
evtPointer 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
evtPointer 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()

RunTallyYAG & PlasmaMLPALLASEventAction::GetBSYAG ( )
inline

Accessors for generic detector statistics

◆ GetHorizontalCollimators()

RunTallyCollimators & PlasmaMLPALLASEventAction::GetHorizontalCollimators ( )
inline

◆ GetStatsQuadrupoles()

RunTallyQuadrupoles & PlasmaMLPALLASEventAction::GetStatsQuadrupoles ( )
inline

Horizontal collimator flag and energy accessors Vertical collimator flag and energy accessors Accessors for quadrupole statistics

◆ GetVerticalCollimators()

RunTallyCollimators & PlasmaMLPALLASEventAction::GetVerticalCollimators ( )
inline

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: