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)
13 from PhysicsTools.JetMCAlgos.HadronAndPartonSelector_cfi
import selectedHadronsAndPartons
14 from PhysicsTools.JetMCAlgos.AK4PFJetsMCFlavourInfos_cfi
import ak4JetFlavourInfos
15 myak4JetFlavourInfos = ak4JetFlavourInfos.clone(
16 jets = cms.InputTag(
"ak4PFJetsCHS"),
17 partons = cms.InputTag(
"selectedHadronsAndPartons",
"algorithmicPartons"),
18 hadronFlavourHasPriority = cms.bool(
True)
22 ak4GenJetsForPUid = cms.EDFilter(
"GenJetSelector",
23 src = cms.InputTag(
"ak4GenJets"),
24 cut = cms.string(
'pt > 8.'),
25 filter = cms.bool(
False)
29 newpatJetGenJetMatch = patJetGenJetMatch.clone(
30 src = cms.InputTag(
"ak4PFJetsCHS"),
31 matched = cms.InputTag(
"ak4GenJetsForPUid"),
32 maxDeltaR = cms.double(0.25),
33 resolveAmbiguities = cms.bool(
True)
38 bTagValidation.jetMCSrc =
'myak4JetFlavourInfos' 39 bTagValidation.ptRanges = cms.vdouble(0.0)
40 bTagValidation.etaRanges = cms.vdouble(0.0)
41 bTagValidation.doJetID =
True 42 bTagValidation.doJEC =
True 43 bTagValidation.genJetsMatched = cms.InputTag(
"newpatJetGenJetMatch")
45 prebTagSequenceMC = cms.Sequence(ak4GenJetsForPUid*newpatJetGenJetMatch*selectedHadronsAndPartons*myak4JetFlavourInfos)
46 bTagPlotsMC = cms.Sequence(bTagValidation)
49 bTagValidationNoall = bTagValidation.clone(flavPlots=
"bcl")
50 bTagPlotsMCbcl = cms.Sequence(bTagValidationNoall)