Skip to content

TreeWriter to build a ROOT tree from MiniAOD. Photon Cut- and MVA-IDs are computed.

Notifications You must be signed in to change notification settings

cms-susy-photon-rwth-1b/TreeWriter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TreeWriter to build a ROOT tree from MiniAOD. Photon Cut- and MVA-IDs are computed.

Building and Running

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

Configure

in the python config, set

  • HT_cut: minimum HT
  • photon_pT_cut: minimum leading-photon pT

Objects

Photons

  • official cut-based ID for Spring16 and Spring15 are stored TWiki
  • all photons are used. boolean flags for: loose/medium/tight

Jets

  • ak4PFJetsCHS
  • all jets are used
  • boolean flag for: loose
  • boolean flags for whether a loose electron/photon is found within dR<0.4

Muons

  • fulfilling loose id
  • tight id boolean flag
  • relative isolation is stored

Electrons

  • fulfilling "veto" id
  • boolean flags for loose/medium/tight
  • recipes on TWiki

Generated Particles

  • genJets collection is stored (= full slimmedGenJets)
  • gen[Electrons|Photons]: status=1, pT>30
  • Decay products (daughters) of W bosons

About

TreeWriter to build a ROOT tree from MiniAOD. Photon Cut- and MVA-IDs are computed.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published