How jeffersonlab/simc_gfortran works
SIMC is Hall C/A’s FORTRAN Monte Carlo for coincidence-reaction studies. The principal workflow is to configure a reaction, generate events with physics and spectrometer effects, and write simulation output; separate utilities can convert that output to PAW ntuples or ROOT trees, and hcana reconstruction can recompute kinematics from a ROOT tree. README-documented capabilities include elastic, exclusive, semi-inclusive and rho reactions, plus radiative effects, energy loss, scattering, decay and spectrometer optics. Several implementation links are not shown because the sampled source does not establish their callers.
Main entry points: simc.f SIMC driver · infiles Reaction inputs · event.f Event generation · ntuple PAW converter
Components 23
Simulation
- Reaction inputs
infiles - SIMC driver
simc.f - Event generation
event.f
Physics models
- Elastic models
physics_proton.f - Pion models
physics_pion.f - Kaon models
physics_kaon.f - Semi-inclusive models
semi_physics.f - Rho models
rho_physics.f - Target effects
target.f - Radiative effects
radc.f - Energy loss
enerloss_new.f - Multiple scattering
shared/musc.f - Particle decay
rho_decay.f
Spectrometers
- HMS transport
hms - SHMS transport
shms - SOS transport
sos - HRS transport
hrsl - BigCal response
calo
Output and analysis
- Simulation output
- PAW converter
util/ntuple - ROOT converter
util/root_tree - Kinematics reconstruction
util/recon_hcana
Other components
- Researcher
Connections 8
- Researcher → Reaction inputs: configures
- Researcher → SIMC driver: runs
- Reaction inputs → SIMC driver: configures
- SIMC driver → Event generation: generates
- SIMC driver → Simulation output: writes
- SIMC driver → PAW converter: converts output
- SIMC driver → ROOT converter: converts output
- Simulation output → Kinematics reconstruction: reads ROOT tree