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 hadronFlavourHasPriority = cms.bool(
True)
21 ak4GenJetsForPUid = cms.EDFilter(
"GenJetSelector",
22 src = cms.InputTag(
"ak4GenJets"),
23 cut = cms.string(
'pt > 8.'),
24 filter = cms.bool(
False)
28 newpatJetGenJetMatch = patJetGenJetMatch.clone(
29 src = cms.InputTag(
"ak4PFJetsCHS"),
30 matched = cms.InputTag(
"ak4GenJetsForPUid"),
31 maxDeltaR = cms.double(0.25),
32 resolveAmbiguities = cms.bool(
True)
37 bTagValidation.jetMCSrc =
'myak4JetFlavourInfos'
38 bTagValidation.ptRanges = cms.vdouble(0.0)
39 bTagValidation.etaRanges = cms.vdouble(0.0)
40 bTagValidation.doJetID =
True
41 bTagValidation.doJEC =
True
42 bTagValidation.genJetsMatched = cms.InputTag(
"newpatJetGenJetMatch")
44 prebTagSequenceMC = cms.Sequence(ak4GenJetsForPUid*newpatJetGenJetMatch*selectedHadronsAndPartons*myak4JetFlavourInfos)
45 bTagPlotsMC = cms.Sequence(bTagValidation)
48 bTagValidationNoall = bTagValidation.clone(flavPlots=
"bcl")
49 bTagPlotsMCbcl = cms.Sequence(bTagValidationNoall)