Skip to content

Jingyan95/TopLFV

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Top LFV Analysis

This framework depends on ROOT libraries

I. File Lists

Files Description
bin/nano_files_2016APV.py Python file to store addresses of 2016-preVFP samples
bin/nano_files_2016.py Python file to store addresses of 2016-postVFP samples
bin/nano_files_2017.py Python file to store addresses of 2017 samples
bin/nano_files_2018.py Python file to store addresses of 2018 samples
bin/makeJobs.py Python function for writing condor jobs
bin/submitJobs.py Python function for submitting condor jobs
bin/Jobs/ Directory where condor job files live
helper/ Directory where utility functions live
hists/hadd.py Utility function for merging root files
include/ Directory where header files live
input/ Directory where input files live
plot/ Directory where plotting functions live
src/MyAnalysis.cc Main analysis file
src/event_candidate.cc Object class for events
src/jet_candidate.cc Object class for jets
src/lepton_candidate.cc Object class for leptons
src/trigger.cc HLT trigger logic
src/main.cc Testing file
src/PU_reWeighting.cc Reweight MC pile up distribution
src/common_details.cc,fastforest_functions,fastforest.cc Standalone C++ interface of XGBoost

II. To compile & run

cmsrel CMSSW_10_6_4
cd CMSSW_10_6_4/src/
export LC_CTYPE=en_US.UTF-8
export LC_ALL=en_US.UTF-8
cmsenv
cd-
git clone https://github.com/jingyan95/TopLFV.git 
cd TopLFV
make all
./RunAll

III. To write & submit jobs

makeJobs.py

cd bin/
python makeJobs.py

submitJobs.py

python submitJobs.py

IV. To merge files & make plots

cd ../hists/
python hadd.py

Make sure all the necessary output files are there under TopLFV/hists/2016/, otherwise, this function might run into problems. We use the function under TopLFV/plot/ to make plots:

cd ../plot/
python drawHists.py 

IV.a To make cutflow tables

cd ../helper/
python cutflow.py

This script will print out cutflow tables in LaTeX format.