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.GenTtbarCategorizer_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"),)
36 run2_miniAOD_80XLegacy.toModify( matchGenCHadron, jetFlavourInfos = cms.InputTag(
"genJetFlavourAssociation"),)
40 ttbarCategoryTable = cms.EDProducer(
"GlobalVariablesTableProducer",
42 genTtbarId =
ExtVar( cms.InputTag(
"categorizeGenTtbar:genTtbarId"),
"int", doc =
"ttbar categorization")
46 ttbarCatMCProducers = cms.Sequence(matchGenBHadron + matchGenCHadron + categorizeGenTtbar)
def ExtVar(tag, valtype, compression=None, doc=None, mcOnly=False, precision=-1)