Skip to content

Repository for Commissioning studies in the BTV POG based on (custom) nanoAOD samples

License

Notifications You must be signed in to change notification settings

Ming-Yan/BTVNanoCommissioning

 
 

Repository files navigation

BTVNanoCommissioning

Linting btag ttbar ctag ttbar ctag DY+jets Workflow ctag W+c Workflow BTA Workflow QCD Workflow Code style: black

Repository for Commissioning studies in the BTV POG based on (custom) nanoAOD samples

This framework is based on coffea and using btvnano as input. The framework is also used as frontend for the btv automation task autobtv

This framework is based on coffea processor. Each workflow can be a separate processor file in the workflows, creating the mapping from PFNano to the histograms as coffea file or creating .root files by saving awkward arrays. Workflow processors can be passed to the runner.py script along with the fileset these should run over. Multiple executors can be chosen (iterative - one by one, futures - multiprocessing). Scale out to clusters depend on facilities. Obtain the histograms as plot(.pdf) or save to template .root file with dedicated scripts

The minimum requirement commands are shown in follow, specified the selections, datataset, campaign and year

python runner.py --workflow ttsemilep_sf --json metadata/test_bta_run3.json --campaign Summer22EERun3 --year 2022

Setup

You can install your standalone conda envrionment via yaml or on the lxplus you can directly jump to setup

Standalone conda environment

Caution

suggested to install under bash environment

For installing Micromamba, see [here]

curl -L -O "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh"
# Run and follow instructions on screen
bash Miniforge3-$(uname)-$(uname -m).sh

micromamba activate

NOTE: always make sure that conda, python, and pip point to local micromamba installation (which conda etc.).

You can simply create the environment through the existing test_env.yml under your micromamba environment using micromamba, and activate it

micromamba env create -f test_env.yml 

Setup the framework

# activate enviroment once you have coffea framework 
conda/micromamba activate btv_coffea

conda/micromamba activate  /eos/home-m/milee/miniforge3/envs/btv_coffea

# only first time, including submodules
git clone [email protected]:cms-btv-pog/BTVNanoCommissioning.git 
# Once the environment is set up, compile the python package:
pip install -e .
pip install -e .[dev, doc] # for developer

You can still install additional packages itself by pip install $PACKAGE

conda/micromamba activate btv_coffea is required to setup

About

Repository for Commissioning studies in the BTV POG based on (custom) nanoAOD samples

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 71.3%
  • Python 25.6%
  • Roff 2.0%
  • Other 1.1%