remage
Simulation framework for HPGe-based experiments
Loading...
Searching...
No Matches
RMGGrabmayrGCReader Class Reference

Thread-local reader of pre-computed (n,gamma) cascade tables. More...

#include <RMGGrabmayrGCReader.hh>

Public Member Functions

G4bool IsApplicable (G4int z, G4int a)
 Whether a cascade file has been registered for the (Z, A) isotope.
void CloseFiles ()
 Close all open cascade files held by this thread.
GammaCascadeLine GetNextEntry (G4int z, G4int a, G4double neutron_energy_keV)
 Read and return the next cascade entry for the (Z, A) isotope.

Static Public Member Functions

static RMGGrabmayrGCReader * GetInstance ()
 Thread-local singleton accessor.

Detailed Description

Thread-local reader of pre-computed (n,gamma) cascade tables.

Loads per-isotope cascade files registered through messenger commands and serves them to RMGNeutronCaptureProcess one cascade at a time. The reader is a thread-local singleton: every worker keeps its own file handles and its own read position.

Member Function Documentation

◆ GetNextEntry()

GammaCascadeLine RMGGrabmayrGCReader::GetNextEntry ( G4int z,
G4int a,
G4double neutron_energy_keV )

Read and return the next cascade entry for the (Z, A) isotope.

Selects the cascade file whose neutron kinetic-energy range contains neutron_energy_keV (or the single registered file, if only one). If the energy falls outside every registered range it is clamped to the nearest bin (a one-time warning is emitted per isotope). The reader cycles back to the beginning when the file is exhausted.


The documentation for this class was generated from the following files:
  • /home/docs/checkouts/readthedocs.org/user_builds/remage/checkouts/latest/include/RMGGrabmayrGCReader.hh
  • /home/docs/checkouts/readthedocs.org/user_builds/remage/checkouts/latest/src/RMGGrabmayrGCReader.cc