1 import FWCore.ParameterSet.Config
as cms
3 from RecoBTag.Combined.pfDeepCSVDiscriminatorsJetTags_cfi
import pfDeepCSVDiscriminatorsJetTags
8 bTagAnalysis.ptRanges = cms.vdouble(0.0)
9 bTagAnalysis.doJetID =
True
10 bTagAnalysis.doJEC =
True
12 bTagPlotsDATA = cms.Sequence(pfDeepCSVDiscriminatorsJetTags * bTagAnalysis)
15 from Configuration.Eras.Modifier_pp_on_XeXe_2017_cff
import pp_on_XeXe_2017
16 from Configuration.ProcessModifiers.pp_on_AA_cff
import pp_on_AA
17 (pp_on_XeXe_2017 | pp_on_AA).toModify(bTagAnalysis,
24 from PhysicsTools.JetMCAlgos.HadronAndPartonSelector_cfi
import selectedHadronsAndPartons
25 from PhysicsTools.JetMCAlgos.AK4PFJetsMCFlavourInfos_cfi
import ak4JetFlavourInfos
26 myak4JetFlavourInfos = ak4JetFlavourInfos.clone(
27 jets = cms.InputTag(
"ak4PFJetsCHS"),
28 partons = cms.InputTag(
"selectedHadronsAndPartons",
"algorithmicPartons"),
29 hadronFlavourHasPriority = cms.bool(
True)
33 ak4GenJetsForPUid = cms.EDFilter(
"GenJetSelector",
34 src = cms.InputTag(
"ak4GenJets"),
35 cut = cms.string(
'pt > 8.'),
36 filter = cms.bool(
False)
40 newpatJetGenJetMatch = patJetGenJetMatch.clone(
41 src = cms.InputTag(
"ak4PFJetsCHS"),
42 matched = cms.InputTag(
"ak4GenJetsForPUid"),
43 maxDeltaR = cms.double(0.25),
44 resolveAmbiguities = cms.bool(
True)
47 from Configuration.ProcessModifiers.pp_on_AA_cff
import pp_on_AA
48 pp_on_AA.toModify(newpatJetGenJetMatch, src =
"akCs4PFJets")
52 bTagValidation.jetMCSrc =
'myak4JetFlavourInfos'
53 bTagValidation.ptRanges = cms.vdouble(0.0)
54 bTagValidation.etaRanges = cms.vdouble(0.0)
55 bTagValidation.doJetID =
True
56 bTagValidation.doJEC =
True
57 bTagValidation.genJetsMatched = cms.InputTag(
"newpatJetGenJetMatch")
59 prebTagSequenceMC = cms.Sequence(ak4GenJetsForPUid*newpatJetGenJetMatch*selectedHadronsAndPartons*myak4JetFlavourInfos*pfDeepCSVDiscriminatorsJetTags)
60 bTagPlotsMC = cms.Sequence(bTagValidation)
63 (pp_on_XeXe_2017 | pp_on_AA).toModify(bTagValidation,
68 bTagValidationNoall = bTagValidation.clone(flavPlots=
"bcl")
69 bTagPlotsMCbcl = cms.Sequence(bTagValidationNoall)