actions
Loading...
Searching...
No Matches
gaction Namespace Reference

Namespace containing helpers related to action-subsystem configuration. More...

Functions

GOptions defineOptions ()
 Builds the aggregate option set required by the actions subsystem.

Variables

Error codes

Module-level error/status codes emitted by action-related classes.

The values are in the 1200 range and are intended to remain stable so log-based diagnostics can reliably identify the same category of problem across builds.

constexpr int ERR_GRUNACTION_NOT_EXISTING = 1201
constexpr int ERR_GDIGIMAP_NOT_EXISTING = 1202
constexpr int ERR_STREAMERMAP_NOT_EXISTING = 1203
Track guards

Per-step track limits applied by GSteppingAction (GEMC2 MSteppingAction parity).

constexpr int MAX_OPTICAL_PHOTON_STEPS = 100
constexpr int MAX_TRACK_STEPS = 10000
constexpr char KRYPTONITE_KILL_MATERIAL [] = "Kryptonite"
 Must match g4system::KRYPTONITE_MATERIAL in g4system/g4systemConventions.h.

Detailed Description

The functions in this namespace are intended to support module setup by providing a single place where all action-related option definitions can be collected.

Function Documentation

◆ defineOptions()

GOptions gaction::defineOptions ( )
inline

This helper creates a logger-scoped GOptions object for the action module and then merges into it the option definitions contributed by the event action, run action, primary generator action, and run container helpers.

The returned object is meant to be merged into the wider application configuration before constructing GAction.

Returns
A GOptions object containing the union of all action-related option definitions.

Definition at line 54 of file gaction.h.

Variable Documentation

◆ ERR_GDIGIMAP_NOT_EXISTING

int gaction::ERR_GDIGIMAP_NOT_EXISTING = 1202
inlineconstexpr

Definition at line 31 of file gactionConventions.h.

◆ ERR_GRUNACTION_NOT_EXISTING

int gaction::ERR_GRUNACTION_NOT_EXISTING = 1201
inlineconstexpr

Definition at line 30 of file gactionConventions.h.

◆ ERR_STREAMERMAP_NOT_EXISTING

int gaction::ERR_STREAMERMAP_NOT_EXISTING = 1203
inlineconstexpr

Definition at line 32 of file gactionConventions.h.

◆ KRYPTONITE_KILL_MATERIAL

char gaction::KRYPTONITE_KILL_MATERIAL[] = "Kryptonite"
inlineconstexpr

Definition at line 44 of file gactionConventions.h.

◆ MAX_OPTICAL_PHOTON_STEPS

int gaction::MAX_OPTICAL_PHOTON_STEPS = 100
inlineconstexpr

Definition at line 41 of file gactionConventions.h.

◆ MAX_TRACK_STEPS

int gaction::MAX_TRACK_STEPS = 10000
inlineconstexpr

Definition at line 42 of file gactionConventions.h.