11 bTagAnalysis.ptRanges = cms.vdouble(0.0)
12 bTagAnalysis.doJetID =
True
13 bTagAnalysis.doJEC =
True
15 bTagAnalysis.JECsource = cms.string(
"ak4PFCHSL1FastL2L3")
16 bTagPlotsDATA = cms.Sequence(bTagAnalysis)
20 from PhysicsTools.JetMCAlgos.HadronAndPartonSelector_cfi
import selectedHadronsAndPartons
21 from PhysicsTools.JetMCAlgos.AK4PFJetsMCFlavourInfos_cfi
import ak4JetFlavourInfos
22 myak4JetFlavourInfos = ak4JetFlavourInfos.clone(jets = cms.InputTag(
"ak4PFJetsCHS"))
25 ak4GenJetsForPUid = cms.EDFilter(
"GenJetSelector",
26 src = cms.InputTag(
"ak4GenJets"),
27 cut = cms.string(
'pt > 8.'),
28 filter = cms.bool(
False)
32 newpatJetGenJetMatch = patJetGenJetMatch.clone(
33 src = cms.InputTag(
"ak4PFJetsCHS"),
34 matched = cms.InputTag(
"ak4GenJetsForPUid"),
35 maxDeltaR = cms.double(0.25),
36 resolveAmbiguities = cms.bool(
True)
41 bTagValidation.jetMCSrc =
'myak4JetFlavourInfos'
42 bTagValidation.ptRanges = cms.vdouble(0.0)
43 bTagValidation.etaRanges = cms.vdouble(0.0)
44 bTagValidation.doJetID =
True
45 bTagValidation.doJEC =
True
46 bTagValidation.JECsource = cms.string(
"ak4PFCHSL1FastL2L3")
47 bTagValidation.genJetsMatched = cms.InputTag(
"newpatJetGenJetMatch")
49 prebTagSequenceMC = cms.Sequence(ak4GenJetsForPUid*newpatJetGenJetMatch*selectedHadronsAndPartons*myak4JetFlavourInfos)
50 bTagPlotsMC = cms.Sequence(bTagValidation)
53 bTagValidationNoall = bTagValidation.clone(flavPlots=
"bcl")
54 bTagPlotsMCbcl = cms.Sequence(bTagValidationNoall)