CMS 3D CMS Logo

ttbarCategorization_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
3 from PhysicsTools.NanoAOD.globalVariablesTableProducer_cfi import globalVariablesTableProducer
4 
5 
6 
7 from PhysicsTools.JetMCAlgos.GenHFHadronMatcher_cff import matchGenBHadron
8 matchGenBHadron = matchGenBHadron.clone(
9  genParticles = cms.InputTag("prunedGenParticles"),
10  jetFlavourInfos = cms.InputTag("slimmedGenJetsFlavourInfos"),
11 )
12 
13 
15 from PhysicsTools.JetMCAlgos.GenHFHadronMatcher_cff import matchGenCHadron
16 matchGenCHadron = matchGenCHadron.clone(
17  genParticles = cms.InputTag("prunedGenParticles"),
18  jetFlavourInfos = cms.InputTag("slimmedGenJetsFlavourInfos"),
19 )
20 
21 
22 from TopQuarkAnalysis.TopTools.categorizeGenTtbar_cfi import categorizeGenTtbar
23 categorizeGenTtbar = categorizeGenTtbar.clone(
24  genJetPtMin = 20.,
25  genJetAbsEtaMax = 2.4,
26  genJets = cms.InputTag("slimmedGenJets"),
27 )
28 
29 
30 
31 ttbarCategoryTable = globalVariablesTableProducer.clone(
32  variables = cms.PSet(
33  genTtbarId = ExtVar( cms.InputTag("categorizeGenTtbar:genTtbarId"), "int", doc = "ttbar categorization")
34  )
35 )
36 
37 ttbarCategoryTableTask = cms.Task(ttbarCategoryTable)
38 ttbarCatMCProducersTask = cms.Task(matchGenBHadron,matchGenCHadron,categorizeGenTtbar)
def ExtVar(tag, valtype, doc=None, precision=-1)
Definition: common_cff.py:27