larndsim.consts subpackage

The larndsim.consts subpackage holds all global simulation constants. Constants are populated at run-time by calling larndsim.consts.load_properties() (or the individual set_*_properties helpers) with YAML configuration files.


Top-level loader

Set global variables with detector and physics properties

larndsim.consts.load_properties(detprop_file, pixel_file, response_file, sim_file)[source][source]

The function loads the detector properties, the pixel geometry, and the simulation YAML files and stores the constants as global variables

Parameters:
  • detprop_file (str) – detector properties YAML filename

  • pixel_file (str) – pixel layout YAML filename

  • sim_file (str) – simulation properties YAML filename