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.Eras.Modifier_pp_on_AA_2018_cff
import pp_on_AA_2018
16 (pp_on_XeXe_2017 | pp_on_AA_2018).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)
48 bTagValidation.jetMCSrc =
'myak4JetFlavourInfos'
49 bTagValidation.ptRanges = cms.vdouble(0.0)
50 bTagValidation.etaRanges = cms.vdouble(0.0)
51 bTagValidation.doJetID =
True
52 bTagValidation.doJEC =
True
53 bTagValidation.genJetsMatched = cms.InputTag(
"newpatJetGenJetMatch")
55 prebTagSequenceMC = cms.Sequence(ak4GenJetsForPUid*newpatJetGenJetMatch*selectedHadronsAndPartons*myak4JetFlavourInfos*pfDeepCSVDiscriminatorsJetTags)
56 bTagPlotsMC = cms.Sequence(bTagValidation)
59 (pp_on_XeXe_2017 | pp_on_AA_2018).toModify(bTagValidation,
64 bTagValidationNoall = bTagValidation.clone(flavPlots=
"bcl")
65 bTagPlotsMCbcl = cms.Sequence(bTagValidationNoall)