Skip to content

Commit

Permalink
Make photon MC matching optional, as it's quite slow, and switch it o…
Browse files Browse the repository at this point in the history
…ff for multilepton for now
  • Loading branch information
gpetruc committed Dec 19, 2014
1 parent 63d019c commit 086d7be
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 6 deletions.
20 changes: 17 additions & 3 deletions CMGTools/TTHAnalysis/cfg/run_susyMultilepton_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
#ttHLepSkim.ptCuts = []


# switch off slow photon MC matching
photonAna.do_mc_match = False

# Event Analyzer for susy multi-lepton (at the moment, it's the TTH one)
from CMGTools.TTHAnalysis.analyzers.ttHLepEventAnalyzer import ttHLepEventAnalyzer
ttHEventAna = cfg.Analyzer(
Expand Down Expand Up @@ -57,9 +60,9 @@
#-------- SAMPLES AND TRIGGERS -----------

#-------- SEQUENCE
from CMGTools.TTHAnalysis.samples.samples_13TeV_PHYS14 import TTH_PU40bx25, SMS_T1tttt_2J_mGl1500_mLSP100
from CMGTools.TTHAnalysis.samples.samples_13TeV_PHYS14 import *

selectedComponents = [ TTH_PU40bx25 ]
selectedComponents = [ SMS_T1tttt_2J_mGl1200_mLSP800 ]

sequence = cfg.Sequence(susyCoreSequence+[
ttHEventAna,
Expand All @@ -68,11 +71,22 @@

test = 1
if test == 1:
comp = TTH_PU40bx25; comp.name = "TTH"
comp = TTH; comp.name = "TTH"
#comp = SMS_T1tttt_2J_mGl1500_mLSP100
comp.files = comp.files[:1]
comp.splitFactor = 1
comp.fineSplitFactor = 4
selectedComponents = [ comp ]
elif test == 2:
for comp in selectedComponents:
comp.files = comp.files[:1]
comp.splitFactor = 1
elif test == 3:
comp = TTJets
comp.files = comp.files[:1]
comp.splitFactor = 1
selectedComponents = [ comp ]


# the following is declared in case this cfg is used in input to the heppy.py script
from PhysicsTools.HeppyCore.framework.eventsfwlite import Events
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,8 @@
photons='slimmedPhotons',
ptMin = 20,
etaMax = 2.5,
gammaID = "PhotonCutBasedIDLoose_CSA14"
gammaID = "PhotonCutBasedIDLoose_CSA14",
do_mc_match = True,
)


Expand Down
4 changes: 2 additions & 2 deletions CMGTools/TTHAnalysis/python/plotter/bins/validation_plots.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ lep1sip3d: LepGood1_sip3d: 15,0,5; Legend='TR'
lep2sip3d: LepGood2_sip3d: 15,0,5; Legend='TR'
lep1tightId: LepGood1_tightId: [-0.5,0.5,1.5]; Legend='TL'
lep2tightId: LepGood2_tightId: [-0.5,0.5,1.5]; Legend='TL'
lep1mvaTTH: LepGood1_mvaTTH: 20,-1,1; Legend='TL'
lep2mvaTTH: LepGood2_mvaTTH: 20,-1,1; Legend='TL'
lep1mvaSusy: LepGood1_mvaSusy: 20,-1,1; Legend='TL'
lep2mvaSusy: LepGood2_mvaSusy: 20,-1,1; Legend='TL'
lep1mcMatchId: abs(LepGood1_mcMatchId): 28,-1.5,26.5; Legend='TR'
lep2mcMatchId: abs(LepGood2_mcMatchId): 28,-1.5,26.5; Legend='TR'
lep1mcMatchAny: LepGood1_mcMatchAny: [-1.5,-0.5,0.5,1.5,2.5,3.5]; Legend='TR'
Expand Down

0 comments on commit 086d7be

Please sign in to comment.