1 import FWCore.ParameterSet.Config
as cms
5 bTagAnalysis.ptRanges = cms.vdouble(0.0)
6 bTagAnalysis.doJetID =
True
7 bTagAnalysis.doJEC =
True
9 bTagPlotsDATA = cms.Sequence(bTagAnalysis)
12 from Configuration.Eras.Modifier_pp_on_XeXe_2017_cff
import pp_on_XeXe_2017
13 from Configuration.ProcessModifiers.pp_on_AA_cff
import pp_on_AA
14 (pp_on_XeXe_2017 | pp_on_AA).toModify(bTagAnalysis,
21 from PhysicsTools.JetMCAlgos.HadronAndPartonSelector_cfi
import selectedHadronsAndPartons
22 from PhysicsTools.JetMCAlgos.AK4PFJetsMCFlavourInfos_cfi
import ak4JetFlavourInfos
23 myak4JetFlavourInfos = ak4JetFlavourInfos.clone(
24 jets = cms.InputTag(
"ak4PFJetsCHS"),
25 partons = cms.InputTag(
"selectedHadronsAndPartons",
"algorithmicPartons"),
26 hadronFlavourHasPriority = cms.bool(
True)
30 ak4GenJetsForPUid = cms.EDFilter(
"GenJetSelector",
31 src = cms.InputTag(
"ak4GenJets"),
32 cut = cms.string(
'pt > 8.'),
33 filter = cms.bool(
False)
37 newpatJetGenJetMatch = patJetGenJetMatch.clone(
38 src = cms.InputTag(
"ak4PFJetsCHS"),
39 matched = cms.InputTag(
"ak4GenJetsForPUid"),
40 maxDeltaR = cms.double(0.25),
41 resolveAmbiguities = cms.bool(
True)
44 from Configuration.ProcessModifiers.pp_on_AA_cff
import pp_on_AA
45 pp_on_AA.toModify(newpatJetGenJetMatch, src =
"akCs4PFJets")
49 bTagValidation.jetMCSrc =
'myak4JetFlavourInfos'
50 bTagValidation.ptRanges = cms.vdouble(0.0)
51 bTagValidation.etaRanges = cms.vdouble(0.0)
52 bTagValidation.doJetID =
True
53 bTagValidation.doJEC =
True
54 bTagValidation.genJetsMatched = cms.InputTag(
"newpatJetGenJetMatch")
56 prebTagSequenceMC = cms.Sequence(ak4GenJetsForPUid*newpatJetGenJetMatch*selectedHadronsAndPartons*myak4JetFlavourInfos)
57 bTagPlotsMC = cms.Sequence(bTagValidation)
60 (pp_on_XeXe_2017 | pp_on_AA).toModify(bTagValidation,
65 bTagValidationNoall = bTagValidation.clone(flavPlots=
"bcl")
66 bTagPlotsMCbcl = cms.Sequence(bTagValidationNoall)