Skip to content

HEP-FCC/bib-studies

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

208 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Beam induced background studies

Code and scripts developed to run beam induced background (BIB) studies, following a detector agnostic approach.

Quick Start

# 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 histograms

Setup script

The 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-22

Repo structure

This repo contains four principal folders:

  • plotting for executable scripts concerning plots
  • simulation with utility scripts and recipes for running simulations, and a list of relevant gen files.
  • python where shared code is stored together with detector specific implementations of key functions used by the scripts.
  • detectors_dicts storing detectors related dictionaries.

The two folders with the executable scripts contain dedicated READMEs with more complete info:

Recommended workflow

  • 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

About

Collection of scripts for running BIB studies

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5