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)
 Read and return the next cascade entry for the (Z, A) isotope.
 

Static Public Member Functions

static RMGGrabmayrGCReaderGetInstance ()
 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 )

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

The reader cycles back to the beginning when the file is exhausted.


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