LARDON reads three environment variables at startup. If any variable is unset, LARDON falls back toDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/dune-lardon/lardon/llms.txt
Use this file to discover all available pages before exploring further.
os.getcwd() — the directory from which the lardon command was invoked.
| Variable | Purpose | Default if unset |
|---|---|---|
LARDON_PATH | Path to the src/lardon/ directory (settings, channel maps, calibration files) | os.getcwd() |
LARDON_RECO | Directory where reconstructed HDF5 output files are written | os.getcwd() |
LARDON_PLOT | Directory where control plots are saved | os.getcwd() |
Setting environment variables with set_lardon.sh
The repository ships with set_lardon.sh in its root directory. Source it once per shell session before running LARDON:
$PWD, so run it from the repository root:
set_lardon.sh sets LARDON_RECO to $PWD/reco and LARDON_PLOT to $PWD/plots. These directories are not created automatically — create them if they do not exist:Setting variables manually
You can also export the variables directly for non-standard layouts:How LARDON uses the variables
The variables are read insrc/lardon/config.py:
LARDON_PATH is the most critical: LARDON constructs all internal paths from it, including the path to detector settings ($LARDON_PATH/settings/), channel maps, and calibration files. If it is wrong, LARDON will fail to load detector geometry and abort.
Qt headless display
set_lardon.sh also exports:
XRootD for remote file access
If you need to open raw data files stored outside CERN or Fermilab — for example, using the-file root://... command-line option — uncomment the two XRootD lines in set_lardon.sh: