TreeWriter to build a ROOT tree from MiniAOD. Photon Cut- and MVA-IDs are computed.
Get CMSSW environment 80X
cmsrel CMSSW_8_0_26_patch1
cd CMSSW_8_0_26_patch1/src/
cmsenv
git cms-merge-topic cms-met:METRecipe_8020
git cms-merge-topic cms-met:METRecipe_80X_part2
git cms-merge-topic ikrav:egm_id_80X_v3_photons
git clone git@github.com:cms-susy-photon-rwth-1b/TreeWriter.git
git cms-merge-topic rafaellopesdesa:EgammaAnalysis80_EGMSmearer_Moriond17_23Jan
git clone https://github.com/ECALELFS/ScalesSmearings.git EgammaAnalysis/ElectronTools/data/ScalesSmearings
wget -qP TreeWriter/TreeWriter https://github.com/cms-jet/JECDatabase/raw/master/SQLiteFiles/Spring16_25nsFastSimV1_MC.db
scram b -j7
cd TreeWriter
Create Pileup Histograms
make -C PUreweighting
Run the TreeWriter
- locally
voms-proxy-init -voms cms
cmsRun TreeWriter/python/runTreeWriter.py
- on the Grid using CRAB3
. /cvmfs/cms.cern.ch/crab3/crab.sh
cd crab
for a single dataset
crab submit -c crabConfig.py
for all datasets
python2 crabConfig.py
in the python config, set
HT_cut
: minimum HTphoton_pT_cut
: minimum leading-photon pT
- official cut-based ID for Spring16 and Spring15 are stored TWiki
- all photons are used. boolean flags for: loose/medium/tight
- ak4PFJetsCHS
- all jets are used
- boolean flag for: loose
- boolean flags for whether a loose electron/photon is found within dR<0.4
- fulfilling loose id
- tight id boolean flag
- relative isolation is stored
- fulfilling "veto" id
- boolean flags for loose/medium/tight
- recipes on TWiki
- genJets collection is stored (= full slimmedGenJets)
- gen[Electrons|Photons]: status=1, pT>30
- Decay products (daughters) of W bosons