Begin by cloning the repository,
git clone [email protected]:UMN-CMS/WrCoffea.git
cd WrCoffea
Then source the appropriate LGC release. For example,
source /cvmfs/sft.cern.ch/lcg/views/LCG_104/x86_64-el9-gcc11-opt/setup.sh (LPC)
source /cvmfs/sft.cern.ch/lcg/views/LCG_104/x86_64-centos8-gcc11-opt/setup.sh (UMN)
Create and source a virtual python environment,
python3 -m venv coffea-cvfms-env
source coffea-cvfms-env/bin/activate
Install the appropriate packages,
python3 -m pip install -r requirements.txt
To set up a grid UI
voms-proxy-init --rfc --voms cms -valid 192:00
To run a basic analysis,
python3 bin/run_analysis.py Run3Summer22 DYJets --hists --skimmed
More information can be found in the README.md
file in other folders.
To preprocess the datasets (only needs to be done once),
python3 scripts/make_skimmed_json.py Run2Summer20UL18 bkg --umn
where Run2Summer20UL18
can be replaced with Run3Summer22
to preprocess Run3 datasets.
To run a basic analysis at UMN,
python3.11 bin/run_analysis.py Run2Summer20UL18 DYJets --skimmed --umn --hists
Plotting is handled in the WR_Plotter
submodule,
cd WR_Plotter