1 from Configuration.Eras.Modifier_run2_miniAOD_80XLegacy_cff
import run2_miniAOD_80XLegacy
4 import FWCore.ParameterSet.Config
as cms
10 from PhysicsTools.JetMCAlgos.GenHFHadronMatcher_cff
import matchGenBHadron
11 matchGenBHadron = matchGenBHadron.clone(
12 genParticles = cms.InputTag(
"prunedGenParticles"),
13 jetFlavourInfos = cms.InputTag(
"slimmedGenJetsFlavourInfos"),
18 from PhysicsTools.JetMCAlgos.GenHFHadronMatcher_cff
import matchGenCHadron
19 matchGenCHadron = matchGenCHadron.clone(
20 genParticles = cms.InputTag(
"prunedGenParticles"),
21 jetFlavourInfos = cms.InputTag(
"slimmedGenJetsFlavourInfos"),
25 from TopQuarkAnalysis.TopTools.categorizeGenTtbar_cfi
import categorizeGenTtbar
26 categorizeGenTtbar = categorizeGenTtbar.clone(
28 genJetAbsEtaMax = 2.4,
29 genJets = cms.InputTag(
"slimmedGenJets"),
34 run2_miniAOD_80XLegacy.toModify( matchGenBHadron, jetFlavourInfos = cms.InputTag(
"genJetFlavourAssociation"),)
35 run2_miniAOD_80XLegacy.toModify( matchGenCHadron, jetFlavourInfos = cms.InputTag(
"genJetFlavourAssociation"),)
39 ttbarCategoryTable = cms.EDProducer(
"GlobalVariablesTableProducer",
41 genTtbarId =
ExtVar( cms.InputTag(
"categorizeGenTtbar:genTtbarId"),
"int", doc =
"ttbar categorization")
45 ttbarCategoryTableTask = cms.Task(ttbarCategoryTable)
46 ttbarCatMCProducersTask = cms.Task(matchGenBHadron,matchGenCHadron,categorizeGenTtbar)