Prepare the current analysis project for ATLAS Open Data H-to-gammagamma work by selecting the project-local `.rootenv` interpreter, exporting project-local `PYTHONPATH`, configuring writable Matplotlib and fontconfig caches, and verifying PyROOT, RooFit, and required inputs before tests or pipeline runs.
Use this skill before the first command in the current analysis project, after shell or import failures, or when a fresh agent needs a runnable HEP analysis environment quickly.
scripts/check_repo_env.sh <workspace> to verify .rootenv, PyROOT/RooFit, the summary entrypoint, and the input directories.scripts/run_in_repo_env.sh <workspace> -- <command...>.H -> gamma gamma primary fits, stop if PyROOT/RooFit is unavailable. Do not substitute a non-ROOT backend as the primary path.<workspace>/.rootenv/bin to PATH so python and pytest resolve inside the workspace runtime.PYTHONPATH=<workspace> so import analysis works during tests and CLI runs.MPLCONFIGDIR=<workspace>/.cache/matplotlib and XDG_CACHE_HOME=<workspace>/.cache so plotting does not spend time failing on unwritable cache directories.analysis/analysis.summary.json as the canonical summary entrypoint. In this repo it points to analysis/Higgs-to-diphoton.json.input-data/data and input-data/MC before starting a run.skills/metadata.csv; if that directory has been removed, patch or override the runtime path before running.scripts/check_repo_env.sh <workspace>.scripts/run_in_repo_env.sh <workspace> -- ... for tests, preflight, smoke runs, and ad hoc studies.outputs*/report/runtime_recovery.json and outputs*/report/preflight_fact_check.json.outputs_smoke_* directory and read references/command-recipes.md for repo-specific caveats.scripts/check_repo_env.sh: fast readiness check for this reposcripts/run_in_repo_env.sh: command wrapper that enters the normalized repo environmentreferences/command-recipes.md: copy-paste command patterns and known gotchas<workspace>/.rootenv/bin/python is missingimport ROOT fails inside .rootenvanalysis/analysis.summary.json is missinginput-data/data or input-data/MC is missing