1 import FWCore.ParameterSet.Config
as cms
7 singleElectronCut = 900
8 doubleElectronCut = 300
9 tripleElectronCut = 100
10 singlePhotonCut = 1200
19 dielectronMassCut = 800
27 caloOverPFRatioCut = 2
28 PFOverCaloRatioCut = 2
41 singleMuonSelector = cms.EDFilter(
43 src = cms.InputTag(
"muons"),
44 cut = cms.string(
"isGlobalMuon() & pt() > "+str(singleMuonCut) )
46 singleMuonFilter = cms.EDFilter(
47 "CandViewCountFilter",
48 src = cms.InputTag(
"singleMuonSelector"),
49 minNumber = cms.uint32(1)
51 seqHotlineSkimSingleMuon = cms.Sequence(primaryVertexFilter * CSCTightHalo2015Filter * HBHENoiseFilterResultProducer * HBHENoiseFilter * singleMuonSelector * singleMuonFilter)
54 doubleMuonSelector = cms.EDFilter(
56 src = cms.InputTag(
"muons"),
57 cut = cms.string(
"pt() > "+str(doubleMuonCut) )
59 doubleMuonFilter = cms.EDFilter(
60 "CandViewCountFilter",
61 src = cms.InputTag(
"doubleMuonSelector"),
62 minNumber = cms.uint32(2)
64 seqHotlineSkimDoubleMuon = cms.Sequence(primaryVertexFilter * CSCTightHalo2015Filter * HBHENoiseFilterResultProducer * HBHENoiseFilter * doubleMuonSelector * doubleMuonFilter)
67 tripleMuonSelector = cms.EDFilter(
69 src = cms.InputTag(
"muons"),
70 cut = cms.string(
"pt() > "+str(tripleMuonCut) )
72 tripleMuonFilter = cms.EDFilter(
73 "CandViewCountFilter",
74 src = cms.InputTag(
"tripleMuonSelector"),
75 minNumber = cms.uint32(3)
77 seqHotlineSkimTripleMuon = cms.Sequence(primaryVertexFilter * CSCTightHalo2015Filter * HBHENoiseFilterResultProducer * HBHENoiseFilter * tripleMuonSelector * tripleMuonFilter)
80 singleElectronSelector = cms.EDFilter(
82 src = cms.InputTag(
"gedGsfElectrons"),
83 cut = cms.string(
"pt() > "+str(singleElectronCut) )
85 singleElectronFilter = cms.EDFilter(
86 "CandViewCountFilter",
87 src = cms.InputTag(
"singleElectronSelector"),
88 minNumber = cms.uint32(1)
90 seqHotlineSkimSingleElectron = cms.Sequence(primaryVertexFilter * CSCTightHalo2015Filter * HBHENoiseFilterResultProducer * HBHENoiseFilter * singleElectronSelector * singleElectronFilter)
93 doubleElectronSelector = cms.EDFilter(
95 src = cms.InputTag(
"gedGsfElectrons"),
96 cut = cms.string(
"pt() > "+str(doubleElectronCut) )
98 doubleElectronFilter = cms.EDFilter(
99 "CandViewCountFilter",
100 src = cms.InputTag(
"doubleElectronSelector"),
101 minNumber = cms.uint32(2)
103 seqHotlineSkimDoubleElectron = cms.Sequence(primaryVertexFilter * CSCTightHalo2015Filter * HBHENoiseFilterResultProducer * HBHENoiseFilter * doubleElectronSelector * doubleElectronFilter)
106 tripleElectronSelector = cms.EDFilter(
108 src = cms.InputTag(
"gedGsfElectrons"),
109 cut = cms.string(
"pt() > "+str(tripleElectronCut) )
111 tripleElectronFilter = cms.EDFilter(
112 "CandViewCountFilter",
113 src = cms.InputTag(
"tripleElectronSelector"),
114 minNumber = cms.uint32(3)
116 seqHotlineSkimTripleElectron = cms.Sequence(primaryVertexFilter * CSCTightHalo2015Filter * HBHENoiseFilterResultProducer * HBHENoiseFilter * tripleElectronSelector * tripleElectronFilter)
119 singlePhotonSelector = cms.EDFilter(
121 src = cms.InputTag(
"gedPhotons"),
122 cut = cms.string(
"pt() > "+str(singlePhotonCut) )
124 singlePhotonFilter = cms.EDFilter(
125 "CandViewCountFilter",
126 src = cms.InputTag(
"singlePhotonSelector"),
127 minNumber = cms.uint32(1)
129 seqHotlineSkimSinglePhoton = cms.Sequence(primaryVertexFilter * CSCTightHalo2015Filter * HBHENoiseFilterResultProducer * HBHENoiseFilter * singlePhotonSelector * singlePhotonFilter)
132 doublePhotonSelector = cms.EDFilter(
134 src = cms.InputTag(
"gedPhotons"),
135 cut = cms.string(
"pt() > "+str(doublePhotonCut) )
137 doublePhotonFilter = cms.EDFilter(
138 "CandViewCountFilter",
139 src = cms.InputTag(
"doublePhotonSelector"),
140 minNumber = cms.uint32(2)
142 seqHotlineSkimDoublePhoton = cms.Sequence(primaryVertexFilter * CSCTightHalo2015Filter * HBHENoiseFilterResultProducer * HBHENoiseFilter * doublePhotonSelector * doublePhotonFilter)
145 triplePhotonSelector = cms.EDFilter(
147 src = cms.InputTag(
"gedPhotons"),
148 cut = cms.string(
"pt() > "+str(triplePhotonCut) )
150 triplePhotonFilter = cms.EDFilter(
151 "CandViewCountFilter",
152 src = cms.InputTag(
"triplePhotonSelector"),
153 minNumber = cms.uint32(3)
155 seqHotlineSkimTriplePhoton = cms.Sequence(primaryVertexFilter * CSCTightHalo2015Filter * HBHENoiseFilterResultProducer * HBHENoiseFilter * triplePhotonSelector * triplePhotonFilter)
158 singleJetSelector = cms.EDFilter(
160 src = cms.InputTag(
"ak4PFJets"),
161 cut = cms.string(
"pt() > "+str(singleJetCut) )
163 singleJetFilter = cms.EDFilter(
164 "CandViewCountFilter",
165 src = cms.InputTag(
"singleJetSelector"),
166 minNumber = cms.uint32(1)
168 seqHotlineSkimSingleJet = cms.Sequence(primaryVertexFilter * CSCTightHalo2015Filter * HBHENoiseFilterResultProducer * HBHENoiseFilter * singleJetSelector * singleJetFilter)
171 doubleJetSelector = cms.EDFilter(
173 src = cms.InputTag(
"ak4PFJets"),
174 cut = cms.string(
"pt() > "+str(doubleJetCut) )
176 doubleJetFilter = cms.EDFilter(
177 "CandViewCountFilter",
178 src = cms.InputTag(
"doubleJetSelector"),
179 minNumber = cms.uint32(2)
181 seqHotlineSkimDoubleJet = cms.Sequence(primaryVertexFilter * CSCTightHalo2015Filter * HBHENoiseFilterResultProducer * HBHENoiseFilter * doubleJetSelector * doubleJetFilter)
184 multiJetSelector = cms.EDFilter(
186 src = cms.InputTag(
"ak4PFJets"),
187 cut = cms.string(
"pt() > "+str(multiJetCut) )
189 multiJetFilter = cms.EDFilter(
190 "CandViewCountFilter",
191 src = cms.InputTag(
"multiJetSelector"),
192 minNumber = cms.uint32(multiJetNJets)
194 seqHotlineSkimMultiJet = cms.Sequence(primaryVertexFilter * CSCTightHalo2015Filter * HBHENoiseFilterResultProducer * HBHENoiseFilter * multiJetSelector * multiJetFilter)
197 htMht = cms.EDProducer(
"HLTHtMhtProducer",
198 usePt = cms.bool(
False ),
199 minPtJetHt = cms.double( 40.0 ),
200 maxEtaJetMht = cms.double( 5.0 ),
201 minNJetMht = cms.int32( 0 ),
202 jetsLabel = cms.InputTag(
"ak4CaloJets" ),
203 maxEtaJetHt = cms.double( 3.0 ),
204 minPtJetMht = cms.double( 30.0 ),
205 minNJetHt = cms.int32( 0 ),
206 pfCandidatesLabel = cms.InputTag(
"" ),
207 excludePFMuons = cms.bool(
False )
209 htSelector = cms.EDFilter(
211 src = cms.InputTag(
"htMht"),
212 cut = cms.string(
"sumEt() > "+str(htCut) )
214 htFilter = cms.EDFilter(
215 "CandViewCountFilter",
216 src = cms.InputTag(
"htSelector"),
217 minNumber = cms.uint32(1)
219 seqHotlineSkimHT = cms.Sequence(primaryVertexFilter * CSCTightHalo2015Filter * HBHENoiseFilterResultProducer * HBHENoiseFilter * htMht * htSelector * htFilter)
222 dimuons = cms.EDProducer(
223 "CandViewShallowCloneCombiner",
224 decay = cms.string(
"muons muons"),
225 checkCharge = cms.bool(
False),
226 cut = cms.string(
"daughter(0).pt>150 & daughter(1).pt>150 & mass > "+str(dimuonMassCut)),
228 dielectrons = cms.EDProducer(
229 "CandViewShallowCloneCombiner",
230 decay = cms.string(
"gedGsfElectrons gedGsfElectrons"),
231 checkCharge = cms.bool(
False),
232 cut = cms.string(
"daughter(0).pt>150 & daughter(1).pt>150 & mass > "+str(dielectronMassCut)),
234 diEMu = cms.EDProducer(
235 "CandViewShallowCloneCombiner",
236 decay = cms.string(
"muons gedGsfElectrons"),
237 checkCharge = cms.bool(
False),
238 cut = cms.string(
"daughter(0).pt>150 & daughter(1).pt>150 & mass > "+str(diEMuMassCut)),
240 dimuonMassFilter = cms.EDFilter(
241 "CandViewCountFilter",
242 src = cms.InputTag(
"dimuons"),
243 minNumber = cms.uint32(1)
245 dielectronMassFilter = cms.EDFilter(
246 "CandViewCountFilter",
247 src = cms.InputTag(
"dielectrons"),
248 minNumber = cms.uint32(1)
250 diEMuMassFilter = cms.EDFilter(
251 "CandViewCountFilter",
252 src = cms.InputTag(
"diEMu"),
253 minNumber = cms.uint32(1)
256 seqHotlineSkimMassiveDimuon = cms.Sequence(primaryVertexFilter * CSCTightHalo2015Filter * HBHENoiseFilterResultProducer * HBHENoiseFilter * dimuons * dimuonMassFilter)
257 seqHotlineSkimMassiveDielectron = cms.Sequence(primaryVertexFilter * CSCTightHalo2015Filter * HBHENoiseFilterResultProducer * HBHENoiseFilter * dielectrons * dielectronMassFilter)
258 seqHotlineSkimMassiveEMu = cms.Sequence(primaryVertexFilter * CSCTightHalo2015Filter * HBHENoiseFilterResultProducer * HBHENoiseFilter * diEMu * diEMuMassFilter)
261 pfMETSelector = cms.EDFilter(
263 src = cms.InputTag(
"pfMet"),
264 cut = cms.string(
"pt()>"+str(pfMetCut) )
267 pfMETCounter = cms.EDFilter(
268 "CandViewCountFilter",
269 src = cms.InputTag(
"pfMETSelector"),
270 minNumber = cms.uint32(1),
273 seqHotlineSkimPFMET = cms.Sequence(
275 CSCTightHalo2015Filter*
276 HBHENoiseFilterResultProducer*
283 caloMETSelector = cms.EDFilter(
285 src = cms.InputTag(
"caloMetM"),
286 cut = cms.string(
"pt()>"+str(caloMetCut) )
289 caloMETCounter = cms.EDFilter(
290 "CandViewCountFilter",
291 src = cms.InputTag(
"caloMETSelector"),
292 minNumber = cms.uint32(1),
295 seqHotlineSkimCaloMET = cms.Sequence(
297 CSCTightHalo2015Filter*
298 HBHENoiseFilterResultProducer*
305 CondMETSelector = cms.EDProducer(
306 "CandViewShallowCloneCombiner",
307 decay = cms.string(
"pfMet caloMetM"),
308 cut = cms.string(
"(daughter(0).pt/daughter(1).pt > "+str(PFOverCaloRatioCut)+
" && daughter(1).pt > "+str(condCaloMetCut)+
") || (daughter(1).pt/daughter(0).pt > "+str(caloOverPFRatioCut)+
" && daughter(0).pt > "+str(condPFMetCut)+
" ) " )
311 CondMETCounter = cms.EDFilter(
312 "CandViewCountFilter",
313 src = cms.InputTag(
"CondMETSelector"),
314 minNumber = cms.uint32(1),
317 seqHotlineSkimCondMET = cms.Sequence(
319 CSCTightHalo2015Filter*
320 HBHENoiseFilterResultProducer*
select events with at least one good PV