Path length analysis¶
Module type name (to be used for the module commands): pathLength
Description¶
The path length analysis module computes the total path length in the selected volume(s). The path length is the sum of all step lengths of all particles inside the volumes.
In SEU analyses, the path length analysis can be useful for the generation of step-length histograms for later convolution with LET spectra (which can be obtained with the LET analysis module).
In micro-dometric studies, this module can be used to define an average length of radiation from a given source direction for lineal energy spectra.
The results can be split into the contributions by incident particle species by specifying additional volume boundaries.
Script example:
/gras/analysis/pathLength/addModule pathLengthDetector
/gras/analysis/pathLength/pathLengthDetector/addVolume Detector
/gras/analysis/pathLength/pathLengthDetector/addVolumeInterface Hall Detector
/gras/analysis/pathLength/pathLengthDetector/setUnit mm
Available Units¶
The module accepts as units all the G4 units under the “Length” category.
Specific Module commands¶
The Module doesn’t have any specific commands.
Output¶
Scalars (only in CSV file)¶
AVERAGE PATHLENGTH
Average path length of each event in the specified volumes
Always active
Precision Calculations This variable is registered for precision calculations if activated
Histograms (in CSV and ROOT files)¶
Controlled by the bookHisto
command (default is active).
PATHLENGTH DISTRIBUTION
Name (for the
setHistoByName
command): <moduleName>_path_lengthSpectrum of the path length per event in all the specified volumes
Always active
Tuples (only in ROOT file)¶
Controlled by the bookTuples
(default is active).
<moduleName> Event total pathLength
Name: <moduleName>_tuple_path_length
Path length information by event
Columns:
pathLength: path length of the event
weight: weight of the event
Always active
<moduleName> Event pathLength per particle
Name: <moduleName>_tuple_path_length_per_particle
Path length information by event per particle
Columns: tid, weight, primarykine, pdg
pathLength: path length of the event per particle
weight: weight of the event
pdg: pdg of particle
Always active
GRAS/trunk/r2242