1 import FWCore.ParameterSet.Config
as cms
3 from PhysicsTools.NanoAOD.globalVariablesTableProducer_cfi
import globalVariablesTableProducer
7 from PhysicsTools.JetMCAlgos.GenHFHadronMatcher_cff
import matchGenBHadron
8 matchGenBHadron = matchGenBHadron.clone(
9 genParticles = cms.InputTag(
"prunedGenParticles"),
10 jetFlavourInfos = cms.InputTag(
"slimmedGenJetsFlavourInfos"),
15 from PhysicsTools.JetMCAlgos.GenHFHadronMatcher_cff
import matchGenCHadron
16 matchGenCHadron = matchGenCHadron.clone(
17 genParticles = cms.InputTag(
"prunedGenParticles"),
18 jetFlavourInfos = cms.InputTag(
"slimmedGenJetsFlavourInfos"),
22 from TopQuarkAnalysis.TopTools.categorizeGenTtbar_cfi
import categorizeGenTtbar
23 categorizeGenTtbar = categorizeGenTtbar.clone(
25 genJetAbsEtaMax = 2.4,
26 genJets = cms.InputTag(
"slimmedGenJets"),
31 ttbarCategoryTable = globalVariablesTableProducer.clone(
33 genTtbarId =
ExtVar( cms.InputTag(
"categorizeGenTtbar:genTtbarId"),
"int", doc =
"ttbar categorization")
37 ttbarCategoryTableTask = cms.Task(ttbarCategoryTable)
38 ttbarCatMCProducersTask = cms.Task(matchGenBHadron,matchGenCHadron,categorizeGenTtbar)
def ExtVar(tag, valtype, doc=None, precision=-1)