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