1 from Configuration.Eras.Modifier_run2_miniAOD_80XLegacy_cff
import run2_miniAOD_80XLegacy
2 from Configuration.Eras.Modifier_run2_nanoAOD_92X_cff
import run2_nanoAOD_92X
5 import FWCore.ParameterSet.Config
as cms
11 from PhysicsTools.JetMCAlgos.GenHFHadronMatcher_cff
import matchGenBHadron
12 matchGenBHadron = matchGenBHadron.clone(
13 genParticles = cms.InputTag(
"prunedGenParticles"),
14 jetFlavourInfos = cms.InputTag(
"slimmedGenJetsFlavourInfos"),
19 from PhysicsTools.JetMCAlgos.GenHFHadronMatcher_cff
import matchGenCHadron
20 matchGenCHadron = matchGenCHadron.clone(
21 genParticles = cms.InputTag(
"prunedGenParticles"),
22 jetFlavourInfos = cms.InputTag(
"slimmedGenJetsFlavourInfos"),
26 from TopQuarkAnalysis.TopTools.GenTtbarCategorizer_cfi
import categorizeGenTtbar
27 categorizeGenTtbar = categorizeGenTtbar.clone(
29 genJetAbsEtaMax = 2.4,
30 genJets = cms.InputTag(
"slimmedGenJets"),
35 run2_miniAOD_80XLegacy.toModify( matchGenBHadron, jetFlavourInfos = cms.InputTag(
"genJetFlavourAssociation"),)
36 run2_nanoAOD_92X.toModify( matchGenBHadron, jetFlavourInfos = cms.InputTag(
"genJetFlavourAssociation"),)
38 run2_miniAOD_80XLegacy.toModify( matchGenCHadron, jetFlavourInfos = cms.InputTag(
"genJetFlavourAssociation"),)
39 run2_nanoAOD_92X.toModify( matchGenCHadron, jetFlavourInfos = cms.InputTag(
"genJetFlavourAssociation"),)
43 ttbarCategoryTable = cms.EDProducer(
"GlobalVariablesTableProducer",
45 genTtbarId =
ExtVar( cms.InputTag(
"categorizeGenTtbar:genTtbarId"),
"int", doc =
"ttbar categorization")
49 ttbarCatMCProducers = cms.Sequence(matchGenBHadron + matchGenCHadron + categorizeGenTtbar)
def ExtVar(tag, valtype, compression=None, doc=None, mcOnly=False, precision=-1)