Base classes for flat ROOT nTuple processing
Setup your CMSSW release area:
cd CMSSW_10_2_0/src
cmsenv
Clone this repo with the flat nTuple analysis base class definitions:
git clone [email protected]:patrickbryant/nTupleAnalysis.git
Clone the ZZ4b analysis repo:
git clone [email protected]:patrickbryant/ZZ4b.git
Compile:
scram b ZZ4b/nTupleAnalysis
Initialize grid certificate:
voms-proxy-init -voms cms
Run on a simulated data sample:
nTupleAnalysis ZZ4b/nTupleAnalysis/scripts/nTupleAnalysis_cfg.py -i ZZ4b/fileLists/ZH4b2018.txt -o $PWD -y 2018 -l 59.6e3 --histogramming 1 --histFile hists.root --isMC --nevents 1000
This makes a skimmed nTuple called ZH4b2018/picoAOD.root and a ROOT file with histograms from the event loop called ZH4b2018/hists.root
cmsrel CMSSW_11_1_0_pre6
cd CMSSW_11_1_0_pre6/src/
cmsenv
git cms-init
git cms-merge-topic patrickbryant:MakePyBind11ParameterSetsIncludingCommandLineArguments
git clone -b CMSSW_11 [email protected]:patrickbryant/nTupleAnalysis.git
git clone -b CMSSW_11 [email protected]:johnalison/TriggerStudies.git
Edit nTupleAnalysis/baseClasses/src/myParameterSetReader.cc nTupleAnalysis/baseClasses/src/myMakeParameterSets.cc to make sure that line
#define NTUPLEANALYSIS_SLC6 1
is commented OUT