How stezow/stogs works
SToGS is a GEANT4 simulation package for nuclear-structure and gamma-ray spectroscopy experiments. The principal workflow configures a run, constructs detector geometry and physics, generates primary particles, transports them through the simulation, and records event data. The graph preserves detector construction variants, physics-list choices, sensitive-detector hit handling, and ROOT-oriented event models. Source excerpts show only part of the dispatch and data flow; uncertain subsystem links are omitted or marked unverified.
Main entry points: SToGS_DetectorFactory.cc Detector factory · SToGS_UserActionManager.cc Run configuration · ParisUserAction.cc PARIS event actions · SToGS_MaterialConsultant.cc Material consultant
Components 22
Run control
- Simulation entry
SToGS_Source.cc - Run configuration
csrc/SToGS_UserActionManager.cc - Detector builder
SToGS_DetectorBuilder.cc
Detector geometry
- Detector factory
csrc/SToGS_DetectorFactory.cc - Material consultant
csrc/SToGS_MaterialConsultant.cc - Generic geometry
csrc/SToGS_GenericsDF.cc - Two-shell geometry
csrc/SToGS_TwoShellsDetectorConstruction.cc - Germanium detector
csrc/SToGS_SemiConductorGeDF.cc - Scintillator detector
csrc/SToGS_ScintillatorDF.cc - PARIS optical detector
SToGS_MY_Container/PARIS/PW_OpticalDetectorConstruction.cc
Generation and transport
- Modular physics
csrc/SToGS_ModularPhysicsList.cc - Hadron physics
csrc/SToGS_HadronPhysicsList.cc - Primary generation
csrc/SToGS_BasicPrimaryGeneratorAction.cc - ROOT event generator
SToGS_MY_Container/toROOTGPS/toROOTGPSPrimaryGeneratorAction.cc - Action initialization
csrc/SToGS_UserActionInitialization.cc
Event data
- Tracker sensitive detector
csrc/SToGS_G4_TrackerSD.cc - Cluster sensitive detector
csrc/SToGS_G4_CopClusterSD.cc - PARIS event actions
SToGS_MY_Container/PARIS/ParisUserAction.cc - ROOT event model
analysis/SToGS/SToGS_BaseROOTEvents.h - PARIS event model
analysis/ParisAnalysis/ParisEvents.h - Event output handlers
csrc/SToGS_UserActionManager.cc
Other components
- Experiment user
Connections 22
- Experiment user → Simulation entry: starts run
SToGS_Source.cc - Simulation entry → Run configuration: reads settings
SToGS_Source.cc - Simulation entry → Detector builder: launches builder
- Run configuration → Modular physics: selects physics
csrc/SToGS_UserActionManager.cc - Run configuration → Event output handlers: selects actions
csrc/SToGS_UserActionManager.cc - Run configuration → Detector factory: selects setup
- Detector builder → Detector factory: uses factory
SToGS_DetectorBuilder.cc - Detector factory → Material consultant: builds materials
csrc/SToGS_DetectorFactory.cc - Generic geometry → Detector factory: loads geometry
csrc/SToGS_GenericsDF.cc - Generic geometry → Two-shell geometry: references construction
csrc/SToGS_GenericsDF.cc - Germanium detector → Material consultant: requests materials
csrc/SToGS_SemiConductorGeDF.cc - Scintillator detector → Detector factory: loads components
csrc/SToGS_ScintillatorDF.cc - Scintillator detector → Material consultant: requests materials
csrc/SToGS_ScintillatorDF.cc - PARIS optical detector → Material consultant: requests materials
SToGS_MY_Container/PARIS/PW_OpticalDetectorConstruction.cc - Modular physics → Hadron physics: registers physics
csrc/SToGS_ModularPhysicsList.cc - Action initialization → Tracker sensitive detector: registers detector
csrc/SToGS_UserActionInitialization.cc - Action initialization → Cluster sensitive detector: registers detector
csrc/SToGS_UserActionInitialization.cc - ROOT event generator → ROOT event model: reads event model
SToGS_MY_Container/toROOTGPS/toROOTGPSPrimaryGeneratorAction.cc - PARIS event actions → Tracker sensitive detector: reads hits
SToGS_MY_Container/PARIS/ParisUserAction.cc - PARIS event actions → Cluster sensitive detector: reads hits
SToGS_MY_Container/PARIS/ParisUserAction.cc - PARIS event actions → PARIS event model: fills events
SToGS_MY_Container/PARIS/ParisUserAction.cc - Event output handlers → PARIS event actions: dispatches actions