4 calobTagAnalysis = bTagAnalysis.clone()
5 bTagPlots = cms.Sequence(calobTagAnalysis)
6 calobTagAnalysis.finalizePlots =
False
7 calobTagAnalysis.finalizeOnly =
False
11 JetCut=cms.string(
"neutralHadronEnergyFraction < 0.99 && neutralEmEnergyFraction < 0.99 && nConstituents > 1 && chargedHadronEnergyFraction > 0.0 && chargedMultiplicity > 0.0 && chargedEmEnergyFraction < 0.99")
14 newAk5PFL2L3 = ak5PFL2L3.clone()
17 ak5PFJetsJEC = ak5PFJetsL2L3.clone(
18 correctors = [
'newAk5PFL2L3']
21 PFJetsFilter = cms.EDFilter(
"PFJetSelector",
22 src = cms.InputTag(
"ak5PFJetsJEC"),
24 filter = cms.bool(
False)
27 jetID = cms.InputTag(
"PFJetsFilter")
31 pfAk5JetTracksAssociatorAtVertex = ak5JetTracksAssociatorAtVertex.clone(jets = jetID)
36 pfImpactParameterTagInfos = impactParameterTagInfos.clone(jetTracks = cms.InputTag(
"pfAk5JetTracksAssociatorAtVertex"))
37 pfSecondaryVertexTagInfos = secondaryVertexTagInfos.clone(trackIPTagInfos =
"pfImpactParameterTagInfos")
39 pfTrackCountingHighEffBJetTags = trackCountingHighEffBJetTags.clone(tagInfos = cms.VInputTag(cms.InputTag(
"pfImpactParameterTagInfos")))
40 pfTrackCountingHighPurBJetTags = trackCountingHighPurBJetTags.clone(tagInfos = cms.VInputTag(cms.InputTag(
"pfImpactParameterTagInfos")))
42 pfJetProbabilityBJetTags = jetProbabilityBJetTags.clone(tagInfos = cms.VInputTag(cms.InputTag(
"pfImpactParameterTagInfos")))
43 pfJetBProbabilityBJetTags = jetBProbabilityBJetTags.clone(tagInfos = cms.VInputTag(cms.InputTag(
"pfImpactParameterTagInfos")))
45 pfSimpleSecondaryVertexHighEffBJetTags = simpleSecondaryVertexHighEffBJetTags.clone(tagInfos = cms.VInputTag(cms.InputTag(
"pfSecondaryVertexTagInfos")))
46 pfSimpleSecondaryVertexHighPurBJetTags = simpleSecondaryVertexHighPurBJetTags.clone(tagInfos = cms.VInputTag(cms.InputTag(
"pfSecondaryVertexTagInfos")))
48 pfGhostTrackVertexTagInfos = pfSecondaryVertexTagInfos.clone()
49 pfGhostTrackVertexTagInfos.vertexReco = ghostTrackVertexRecoBlock.vertexReco
50 pfGhostTrackVertexTagInfos.vertexCuts.multiplicityMin = 1
51 pfGhostTrackBJetTags = ghostTrackBJetTags.clone(
52 tagInfos = cms.VInputTag(cms.InputTag(
"pfImpactParameterTagInfos"),
53 cms.InputTag(
"pfGhostTrackVertexTagInfos"))
56 pfCombinedSecondaryVertexBJetTags = combinedSecondaryVertexBJetTags.clone(
57 tagInfos = cms.VInputTag(cms.InputTag(
"pfImpactParameterTagInfos"),
58 cms.InputTag(
"pfSecondaryVertexTagInfos"))
60 pfCombinedSecondaryVertexMVABJetTags = combinedSecondaryVertexMVABJetTags.clone(
61 tagInfos = cms.VInputTag(cms.InputTag(
"pfImpactParameterTagInfos"),
62 cms.InputTag(
"pfSecondaryVertexTagInfos"))
65 pfSoftPFMuonsTagInfos = softPFMuonsTagInfos.clone(jets = jetID)
66 pfSoftPFElectronsTagInfos = softPFElectronsTagInfos.clone(jets = jetID)
67 pfSoftPFMuonBJetTags = softPFMuonBJetTags.clone(tagInfos = cms.VInputTag(cms.InputTag(
"pfSoftPFMuonsTagInfos")))
68 pfSoftPFElectronBJetTags = softPFElectronBJetTags.clone(tagInfos = cms.VInputTag(cms.InputTag(
"pfSoftPFElectronsTagInfos")))
70 pfbtagging = cms.Sequence(
71 pfImpactParameterTagInfos *
72 ( pfTrackCountingHighEffBJetTags +
73 pfTrackCountingHighPurBJetTags +
74 pfJetProbabilityBJetTags +
75 pfJetBProbabilityBJetTags +
77 pfSecondaryVertexTagInfos *
78 ( pfSimpleSecondaryVertexHighEffBJetTags +
79 pfSimpleSecondaryVertexHighPurBJetTags +
80 pfCombinedSecondaryVertexBJetTags +
81 pfCombinedSecondaryVertexMVABJetTags
83 pfGhostTrackVertexTagInfos *
88 pfSoftPFMuonsTagInfos*
89 pfSoftPFElectronsTagInfos*
90 pfSoftPFElectronBJetTags*
96 prebTagSequence = cms.Sequence(ak5PFJetsJEC*PFJetsFilter*pfAk5JetTracksAssociatorAtVertex*pfbtagging)
100 pfbTagAnalysis = bTagAnalysis.clone(
101 tagConfig = cms.VPSet(
103 bTagTrackIPAnalysisBlock,
104 type = cms.string(
'TrackIP'),
105 label = cms.InputTag(
"pfImpactParameterTagInfos"),
106 folder = cms.string(
"IPTag")
109 bTagCombinedSVAnalysisBlock,
110 ipTagInfos = cms.InputTag(
"pfImpactParameterTagInfos"),
111 type = cms.string(
'GenericMVA'),
112 svTagInfos = cms.InputTag(
"pfSecondaryVertexTagInfos"),
113 label = cms.InputTag(
"combinedSecondaryVertex"),
114 folder = cms.string(
"CSVTag")
117 bTagTrackCountingAnalysisBlock,
118 label = cms.InputTag(
"pfTrackCountingHighEffBJetTags"),
119 folder = cms.string(
"TCHE")
122 bTagTrackCountingAnalysisBlock,
123 label = cms.InputTag(
"pfTrackCountingHighPurBJetTags"),
124 folder = cms.string(
"TCHP")
127 bTagProbabilityAnalysisBlock,
128 label = cms.InputTag(
"pfJetProbabilityBJetTags"),
129 folder = cms.string(
"JP")
132 bTagBProbabilityAnalysisBlock,
133 label = cms.InputTag(
"pfJetBProbabilityBJetTags"),
134 folder = cms.string(
"JBP")
137 bTagSimpleSVAnalysisBlock,
138 label = cms.InputTag(
"pfSimpleSecondaryVertexHighEffBJetTags"),
139 folder = cms.string(
"SSVHE")
142 bTagSimpleSVAnalysisBlock,
143 label = cms.InputTag(
"pfSimpleSecondaryVertexHighPurBJetTags"),
144 folder = cms.string(
"SSVHP")
147 bTagGenericAnalysisBlock,
148 label = cms.InputTag(
"pfCombinedSecondaryVertexBJetTags"),
149 folder = cms.string(
"CSV")
152 bTagGenericAnalysisBlock,
153 label = cms.InputTag(
"pfCombinedSecondaryVertexMVABJetTags"),
154 folder = cms.string(
"CSVMVA")
157 bTagGenericAnalysisBlock,
158 label = cms.InputTag(
"pfGhostTrackBJetTags"),
159 folder = cms.string(
"GhTrk")
162 bTagSoftLeptonAnalysisBlock,
163 label = cms.InputTag(
"pfSoftPFMuonBJetTags"),
164 folder = cms.string(
"SMT")
167 bTagSoftLeptonAnalysisBlock,
168 label = cms.InputTag(
"pfSoftPFElectronBJetTags"),
169 folder = cms.string(
"SET")
173 pfbTagAnalysis.finalizePlots =
False
174 pfbTagAnalysis.finalizeOnly =
False
175 pfbTagAnalysis.ptRanges = cms.vdouble(0.0)
176 bTagPlotsDATA = cms.Sequence(pfbTagAnalysis)
182 AK5byRef.jets = jetID
186 pfbTagValidation = bTagValidation.clone(
187 tagConfig = cms.VPSet(
189 bTagTrackIPAnalysisBlock,
190 type = cms.string(
'TrackIP'),
191 label = cms.InputTag(
"pfImpactParameterTagInfos"),
192 folder = cms.string(
"IPTag")
195 bTagCombinedSVAnalysisBlock,
196 ipTagInfos = cms.InputTag(
"pfImpactParameterTagInfos"),
197 type = cms.string(
'GenericMVA'),
198 svTagInfos = cms.InputTag(
"pfSecondaryVertexTagInfos"),
199 label = cms.InputTag(
"combinedSecondaryVertex"),
200 folder = cms.string(
"CSVTag")
203 bTagTrackCountingAnalysisBlock,
204 label = cms.InputTag(
"pfTrackCountingHighEffBJetTags"),
205 folder = cms.string(
"TCHE")
208 bTagTrackCountingAnalysisBlock,
209 label = cms.InputTag(
"pfTrackCountingHighPurBJetTags"),
210 folder = cms.string(
"TCHP")
213 bTagProbabilityAnalysisBlock,
214 label = cms.InputTag(
"pfJetProbabilityBJetTags"),
215 folder = cms.string(
"JP")
218 bTagBProbabilityAnalysisBlock,
219 label = cms.InputTag(
"pfJetBProbabilityBJetTags"),
220 folder = cms.string(
"JBP")
223 bTagSimpleSVAnalysisBlock,
224 label = cms.InputTag(
"pfSimpleSecondaryVertexHighEffBJetTags"),
225 folder = cms.string(
"SSVHE")
228 bTagSimpleSVAnalysisBlock,
229 label = cms.InputTag(
"pfSimpleSecondaryVertexHighPurBJetTags"),
230 folder = cms.string(
"SSVHP")
233 bTagGenericAnalysisBlock,
234 label = cms.InputTag(
"pfCombinedSecondaryVertexBJetTags"),
235 folder = cms.string(
"CSV")
238 bTagGenericAnalysisBlock,
239 label = cms.InputTag(
"pfCombinedSecondaryVertexMVABJetTags"),
240 folder = cms.string(
"CSVMVA")
243 bTagGenericAnalysisBlock,
244 label = cms.InputTag(
"pfGhostTrackBJetTags"),
245 folder = cms.string(
"GhTrk")
248 bTagSoftLeptonAnalysisBlock,
249 label = cms.InputTag(
"pfSoftPFMuonBJetTags"),
250 folder = cms.string(
"SMT")
253 bTagSoftLeptonAnalysisBlock,
254 label = cms.InputTag(
"pfSoftPFElectronBJetTags"),
255 folder = cms.string(
"SET")
259 pfbTagValidation.finalizePlots =
False
260 pfbTagValidation.finalizeOnly =
False
261 pfbTagValidation.jetMCSrc =
'AK5byValAlgo'
262 pfbTagValidation.ptRanges = cms.vdouble(0.0)
263 pfbTagValidation.etaRanges = cms.vdouble(0.0)
265 bTagPlotsMC = cms.Sequence(myPartons*AK5Flavour*pfbTagValidation)
268 pfbTagValidationNoall = pfbTagValidation.clone(flavPlots=
"noall")
269 bTagPlotsMCbcl = cms.Sequence(myPartons*AK5Flavour*pfbTagValidationNoall)