Skip to content

ruelasvh/hh

Repository files navigation

Tools for R21 and R22 HH4b Analysis

Installation

git clone https://github.com/ruelasvh/hh.git
cd hh
python3 -m pip install -e .

Creating histograms and making plots

Create a directory outside of the repository, and go into it. For example:

cd ..
mkdir workdir
cd workdir
hh4b_non_res_res_make_hists config.json -v

For example, have a look in this config file.

The output will be an h5 file. To make the actual plots, do:

hh4b_non_res_res_draw_hists hists.h5

Dumping information for ML studies

hh4b_dump config.json -v

This will create a h5 file with the information specifiend in config.json (look in here for an example). If you want to instead dump the information into a ROOT file, then do:

hh4b_dump config.json -v --output output.root

Running jobs in parallel (htcondor)

First you need to set up kerberos authentication, usually done with kinit.

The Apptainer path should be set in the environment variable APPTAINER_CACHEDIR:

export APPTAINER_CACHEDIR=/path/to/apptainer_cache

Then you need to create an image that contains all the depedencies:

apptainer build $APPTAINER_CACHEDIR/hh.sif hh/Apptainer.def

The container should be re-built every time jobs will be submitted to htcondor.

Now everything's ready to submit jobs. Submit the jobs with:

hh4b_submit $APPTAINER_CACHEDIR/hh.sif [hh4b_non_res_res_make_hists|hh4b_dump] config.json

The output will be stored to the working directory.

For any of the commands, you can use the -h flag to get more information on the options available.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages