Code and scripts developed to run beam induced background (BIB) studies, following a detector agnostic approach.
# starting in an AFS/EOS folder with cvmfs+eos access, and subscription to
git clone [email protected]:HEP-FCC/bib-studies.git
cd bib-studies
source setup.sh
# create a working directory where to run the code
mkdir run
cd run
drawhits.py -s VertexBarrel -e 10 -D 0
#will produce a root file with histogramsThe setup.sh script will setup this repository paths and
the latest stable release of the key4hep software stack:
source setup.sh# or, for latest nightly:
source setup.sh -n# for a given release:
source setup.sh 2025-05-29# or for given nightly
source setup.sh -n 2025-07-22This repo contains four principal folders:
plottingfor executable scripts concerning plotssimulationwith utility scripts and recipes for running simulations, and a list of relevant gen files.pythonwhere shared code is stored together with detector specific implementations of key functions used by the scripts.detectors_dictsstoring detectors related dictionaries.
The two folders with the executable scripts contain dedicated READMEs with more complete info:
- get bib files (eg produced by Jan, Giulia, A. Ciarma..), which are in hepevt/pairs format
- set vertices to 0, if running on samples before 2026 see here
- using the submit_pairs script, submit condor jobs to simulate the bib particles through your detector of choice (eg ALLEGRO), which gives root files
- use the drawhits/plot_all_subdetectors scripts to generate occupancy and other plots
- optional: use the hits2highLevelEstimations.py script to extract more numbers from the occupancy plots