CMS 3D CMS Logo

Skims_PDWG_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from DPGAnalysis.Skims.Skims_DPG_cff import skimContent
4 
5 from Configuration.EventContent.EventContent_cff import RECOEventContent
6 skimRecoContent = RECOEventContent.clone()
7 skimRecoContent.outputCommands.append("drop *_MEtoEDMConverter_*_*")
8 skimRecoContent.outputCommands.append("drop *_*_*_SKIM")
9 
10 from Configuration.EventContent.EventContent_cff import RAWEventContent
11 skimRawContent = RAWEventContent.clone()
12 skimRawContent.outputCommands.append("drop *_MEtoEDMConverter_*_*")
13 skimRawContent.outputCommands.append("drop *_*_*_SKIM")
14 
15 from Configuration.EventContent.EventContent_cff import RAWAODEventContent
16 skimRawAODContent = RAWAODEventContent.clone()
17 skimRawAODContent.outputCommands.append("drop *_MEtoEDMConverter_*_*")
18 skimRawAODContent.outputCommands.append("drop *_*_*_SKIM")
19 
20 
22 
23 # select events 1, 5, 9, ...
24 evtSplit_Prescaler_P1 = cms.EDFilter("Prescaler",
25  prescaleFactor = cms.int32(4),
26  prescaleOffset = cms.int32(1)
27 )
28 # select events 2, 6, 10, ...
29 evtSplit_Prescaler_P2 = cms.EDFilter("Prescaler",
30  prescaleFactor = cms.int32(4),
31  prescaleOffset = cms.int32(2)
32 )
33 # select events 3, 7, 11, ...
34 evtSplit_Prescaler_P3 = cms.EDFilter("Prescaler",
35  prescaleFactor = cms.int32(4),
36  prescaleOffset = cms.int32(3)
37 )
38 # select events 4, 8, 12, ...
39 evtSplit_Prescaler_P4 = cms.EDFilter("Prescaler",
40  prescaleFactor = cms.int32(4),
41  prescaleOffset = cms.int32(0)
42 )
43 
44 evtSplit_SkimPath_P1 = cms.Path(evtSplit_Prescaler_P1)
45 evtSplit_SkimPath_P2 = cms.Path(evtSplit_Prescaler_P2)
46 evtSplit_SkimPath_P3 = cms.Path(evtSplit_Prescaler_P3)
47 evtSplit_SkimPath_P4 = cms.Path(evtSplit_Prescaler_P4)
48 
49 SKIMStreamevtSplitSkimP1 = cms.FilteredStream(
50  responsible = 'PDWG',
51  name = 'evtSplitSkimP1',
52  paths = (evtSplit_SkimPath_P1),
53  content = skimRawContent.outputCommands,
54  selectEvents = cms.untracked.PSet(),
55  dataTier = cms.untracked.string('RAW')
56  )
57 SKIMStreamevtSplitSkimP2 = cms.FilteredStream(
58  responsible = 'PDWG',
59  name = 'evtSplitSkimP2',
60  paths = (evtSplit_SkimPath_P2),
61  content = skimRawContent.outputCommands,
62  selectEvents = cms.untracked.PSet(),
63  dataTier = cms.untracked.string('RAW')
64  )
65 SKIMStreamevtSplitSkimP3 = cms.FilteredStream(
66  responsible = 'PDWG',
67  name = 'evtSplitSkimP3',
68  paths = (evtSplit_SkimPath_P3),
69  content = skimRawContent.outputCommands,
70  selectEvents = cms.untracked.PSet(),
71  dataTier = cms.untracked.string('RAW')
72  )
73 SKIMStreamevtSplitSkimP4 = cms.FilteredStream(
74  responsible = 'PDWG',
75  name = 'evtSplitSkimP4',
76  paths = (evtSplit_SkimPath_P4),
77  content = skimRawContent.outputCommands,
78  selectEvents = cms.untracked.PSet(),
79  dataTier = cms.untracked.string('RAW')
80  )
81 
82 
83 
85 BPHSkimPath = cms.Path(BPHSkimSequence)
86 SKIMStreamBPHSkim = cms.FilteredStream(
87  responsible = 'PDWG',
88  name = 'BPHSkim',
89  paths = (BPHSkimPath),
90  content = BPHSkim_EventContent.outputCommands,
91  selectEvents = cms.untracked.PSet(),
92  dataTier = cms.untracked.string('USER')
93  )
94 
95 
96 
98 EXONoBPTXSkimPath = cms.Path()
99 SKIMStreamEXONoBPTXSkim = cms.FilteredStream(
100  responsible = 'PDWG',
101  name = 'EXONoBPTXSkim',
102  paths = (EXONoBPTXSkimPath),
103  content = EXONoBPTXSkim_EventContent.outputCommands,
104  selectEvents = cms.untracked.PSet(),
105  dataTier = cms.untracked.string('USER')
106  )
107 
108 
109 
111 diJetAveSkimPath = cms.Path(DiJetAveSkim_Trigger)
112 SKIMStreamDiJet = cms.FilteredStream(
113  responsible = 'PDWG',
114  name = 'DiJet',
115  paths = (diJetAveSkimPath),
116  content = DiJetAveSkim_EventContent.outputCommands,
117  selectEvents = cms.untracked.PSet(),
118  dataTier = cms.untracked.string('USER')
119  )
120 
121 
122 
124 tauSkimBy1Path = cms.Path( tauSkim1Sequence )
125 tauSkimBy2Path = cms.Path( tauSkim2Sequence )
126 SKIMStreamTau = cms.FilteredStream(
127  responsible = 'PDWG',
128  name = 'Tau',
129  paths = (tauSkimBy1Path),
130  content = skimContent.outputCommands,
131  selectEvents = cms.untracked.PSet(),
132  dataTier = cms.untracked.string('RAW-RECO')
133  )
134 SKIMStreamDiTau = cms.FilteredStream(
135  responsible = 'PDWG',
136  name = 'Tau',
137  paths = (tauSkimBy2Path),
138  content = skimContent.outputCommands,
139  selectEvents = cms.untracked.PSet(),
140  dataTier = cms.untracked.string('RAW-RECO')
141  )
142 
143 
144 
145 
147 HSCPSDPath = cms.Path(HSCPSD)
148 SKIMStreamHSCPSD = cms.FilteredStream(
149  responsible = 'PDWG',
150  name = 'HSCPSD',
151  paths = (HSCPSDPath),
152  content = skimRecoContent.outputCommands,
153  selectEvents = cms.untracked.PSet(),
154  dataTier = cms.untracked.string('RECO')
155  )
156 
157 
158 
160 CaloIdIsoPhotonPairsPath = cms.Path(CaloIdIsoPhotonPairsFilter)
161 R9IdPhotonPairsPath = cms.Path(R9IdPhotonPairsFilter)
162 MixedCaloR9IdPhotonPairsPath = cms.Path(MixedCaloR9IdPhotonPairsFilter)
163 MixedR9CaloIdPhotonPairsPath = cms.Path(MixedR9CaloIdPhotonPairsFilter)
164 
165 SKIMStreamDiPhoton = cms.FilteredStream(
166  responsible = 'PDWG',
167  name = 'DiPhoton',
168  paths = (CaloIdIsoPhotonPairsPath,R9IdPhotonPairsPath,MixedCaloR9IdPhotonPairsPath,MixedR9CaloIdPhotonPairsPath),
169  content = skimContent.outputCommands,
170  selectEvents = cms.untracked.PSet(),
171  dataTier = cms.untracked.string('RAW-RECO')
172  )
173 
174 
176 SkimBParkPath = cms.Path(SkimBPark)
177 SKIMStreamSkimBPark = cms.FilteredStream(
178  responsible = 'BPH PAG',
179  name = 'SkimBPark',
180  paths = ( SkimBParkPath ),
181  content = skimContent.outputCommands,
182  selectEvents = cms.untracked.PSet(),
183  dataTier = cms.untracked.string('RAW-RECO')
184 )
185 
186 from Configuration.EventContent.EventContent_cff import AODEventContent
187 skimAodContent = AODEventContent.clone()
188 skimAodContent.outputCommands.append("drop *_MEtoEDMConverter_*_*")
189 skimAodContent.outputCommands.append("drop *_*_*_SKIM")
190 
191 #from Configuration.Skimming.PDWG_DoublePhotonSkim_cff import *
192 #diphotonSkimPath = cms.Path(diphotonSkimSequence)
193 #SKIMStreamDoublePhoton = cms.FilteredStream(
194 # responsible = 'PDWG',
195 # name = 'DoublePhoton',
196 # paths = (diphotonSkimPath),
197 # content = skimAodContent.outputCommands,
198 # selectEvents = cms.untracked.PSet(),
199 # dataTier = cms.untracked.string('AOD')
200 # )
201 
203 HWWmmPath = cms.Path(diMuonSequence)
204 HWWeePath = cms.Path(diElectronSequence)
205 HWWemPath = cms.Path(EleMuSequence)
206 SKIMStreamHWW = cms.FilteredStream(
207  responsible = 'PDWG',
208  name = 'HWW',
209  paths = (HWWmmPath,HWWeePath,HWWemPath),
210  content = skimAodContent.outputCommands,
211  selectEvents = cms.untracked.PSet(),
212  dataTier = cms.untracked.string('AOD')
213  )
214 
215 
217 HZZmmPath = cms.Path(zzdiMuonSequence)
218 HZZeePath = cms.Path(zzdiElectronSequence)
219 HZZemPath = cms.Path(zzeleMuSequence)
220 SKIMStreamHZZ = cms.FilteredStream(
221  responsible = 'PDWG',
222  name = 'HZZ',
223  paths = (HZZmmPath,HZZeePath,HZZemPath),
224  content = skimAodContent.outputCommands,
225  selectEvents = cms.untracked.PSet(),
226  dataTier = cms.untracked.string('AOD')
227  )
228 
229 
231 exoHPTEPath = cms.Path(exoDiHPTESequence)
232 SKIMStreamEXOHPTE = cms.FilteredStream(
233  responsible = 'PDWG',
234  name = 'EXOHPTE',
235  paths = (exoHPTEPath),
236  content = skimAodContent.outputCommands,
237  selectEvents = cms.untracked.PSet(),
238  dataTier = cms.untracked.string('AOD')
239  )
240 
242 EXOMONOPOLEPath = cms.Path(EXOMonopoleSkimSequence)
243 SKIMStreamEXOMONOPOLE = cms.FilteredStream(
244  responsible = 'PDWG',
245  name = 'EXOMONOPOLE',
246  paths = (EXOMONOPOLEPath),
247  content = EXOMonopoleSkimContent.outputCommands,
248  selectEvents = cms.untracked.PSet(),
249  dataTier = cms.untracked.string('USER')
250  )
251 
253 EXOHighMETPath = cms.Path(EXOHighMETSequence)
254 SKIMStreamEXOHighMET = cms.FilteredStream(
255  responsible = 'PDWG',
256  name = 'EXOHighMET',
257  paths = (EXOHighMETPath),
258  content = skimContent.outputCommands,
259  selectEvents = cms.untracked.PSet(),
260  dataTier = cms.untracked.string('RAW-RECO')
261  )
262 
264 EXODisplacedJetPath = cms.Path(EXODisplacedJetSkimSequence)
265 SKIMStreamEXODisplacedJet = cms.FilteredStream(
266  responsible = 'PDWG',
267  name = 'EXODisplacedJet',
268  paths = (EXODisplacedJetPath),
269  content = skimRawAODContent.outputCommands,
270  selectEvents = cms.untracked.PSet(),
271  dataTier = cms.untracked.string('USER')
272  )
273 
275 EXODelayedJetPath = cms.Path(EXODelayedJetSkimSequence)
276 SKIMStreamEXODelayedJet = cms.FilteredStream(
277  responsible = 'PDWG',
278  name = 'EXODelayedJet',
279  paths = (EXODelayedJetPath),
280  content = skimRawAODContent.outputCommands,
281  selectEvents = cms.untracked.PSet(),
282  dataTier = cms.untracked.string('AOD')
283  )
284 
286 EXODelayedJetMETPath = cms.Path(EXODelayedJetMETSkimSequence)
287 SKIMStreamEXODelayedJetMET = cms.FilteredStream(
288  responsible = 'PDWG',
289  name = 'EXODelayedJetMET',
290  paths = (EXODelayedJetMETPath),
291  content = skimRawAODContent.outputCommands,
292  selectEvents = cms.untracked.PSet(),
293  dataTier = cms.untracked.string('AOD')
294  )
295 
297 EXODTClusterPath = cms.Path(EXODTClusterSkimSequence)
298 SKIMStreamEXODTCluster = cms.FilteredStream(
299  responsible = 'PDWG',
300  name = 'EXODTCluster',
301  paths = (EXODTClusterPath),
302  content = skimRawAODContent.outputCommands,
303  selectEvents = cms.untracked.PSet(),
304  dataTier = cms.untracked.string('AOD')
305  )
306 
308 EXOCSCClusterPath = cms.Path(EXOCSCClusterSkimSequence)
309 SKIMStreamEXOCSCCluster = cms.FilteredStream(
310  responsible = 'PDWG',
311  name = 'EXOCSCCluster',
312  paths = (EXOCSCClusterPath),
313  content = skimRawAODContent.outputCommands+['keep *_csc2DRecHits_*_*','keep *_dt1DRecHits_*_*'],
314  selectEvents = cms.untracked.PSet(),
315  dataTier = cms.untracked.string('USER')
316  )
317 
318 
320 EXODisappTrkPath = cms.Path(EXODisappTrkSkimSequence)
321 SKIMStreamEXODisappTrk = cms.FilteredStream(
322  responsible = 'PDWG',
323  name = 'EXODisappTrk',
324  paths = (EXODisappTrkPath),
325  content = EXODisappTrkSkimContent.outputCommands,
326  selectEvents = cms.untracked.PSet(),
327  dataTier = cms.untracked.string('AOD')
328  )
329 
330 
332 from HLTrigger.Configuration.HLT_Fake1_cff import fragment as _fragment
333 if "hltGtDigis" in _fragment.__dict__:
334  hltGtDigis = _fragment.hltGtDigis.clone()
335  hltGtDigisPath = cms.Path(hltGtDigis)
336 else:
337  hltBoolEnd = _fragmet.hltBoolEnd.clone()
338  hltGtDigisPath = cms.Path(hltBoolEnd)
339 
340 # The events to be used as PileUp
342 HLTZEROBIASPUSDPath = cms.Path(HLTZEROBIASPUSD)
343 SKIMStreamHLTZEROBIASPUSD = cms.FilteredStream(
344  responsible = 'PDWG',
345  name = 'HLTZEROBIASPUSD',
346  paths = (HLTZEROBIASPUSDPath),
347  content = skimRecoContent.outputCommands,
348  selectEvents = cms.untracked.PSet(),
349  dataTier = cms.untracked.string('RAW') # for the moment, it could be DIGI in the future
350  )
351 
352 #The events to be used as signal
354 HLTZEROBIASSIGSDPath = cms.Path(HLTZEROBIASSIGSD)
355 SKIMStreamHLTZEROBIASSIGSD = cms.FilteredStream(
356  responsible = 'PDWG',
357  name = 'HLTZEROBIASSIGSD',
358  paths = (HLTZEROBIASSIGSDPath),
359  content = skimRecoContent.outputCommands,
360  selectEvents = cms.untracked.PSet(),
361  dataTier = cms.untracked.string('RAW') # for the moment, it could be DIGI in the future
362  )
363 
364 
365 
366 
367 
368 
369 """
370 from SUSYBSMAnalysis.Skimming.EXOLLResSkim_cff import *
371 exoLLResmmPath = cms.Path(exoLLResdiMuonSequence)
372 exoLLReseePath = cms.Path(exoLLResdiElectronSequence)
373 exoLLResemPath = cms.Path(exoLLResEleMuSequence)
374 SKIMStreamEXOLLRes = cms.FilteredStream(
375  responsible = 'EXO',
376  name = 'EXOLLRes',
377  paths = (exoLLResmmPath,exoLLReseePath,exoLLResemPath),
378  content = skimAodContent.outputCommands,
379  selectEvents = cms.untracked.PSet(),
380  dataTier = cms.untracked.string('AOD')
381  )
382 
383 from SUSYBSMAnalysis.Skimming.EXOEle_cff import *
384 exoElePath = cms.Path(exoEleLowetSeqReco)
385 SKIMStreamEXOEle = cms.FilteredStream(
386  responsible = 'EXO',
387  name = 'EXOEle',
388  paths = (exoElePath),
389  content = skimAodContent.outputCommands,
390  selectEvents = cms.untracked.PSet(),
391  dataTier = cms.untracked.string('AOD')
392  )
393 
394 from SUSYBSMAnalysis.Skimming.EXOMu_cff import *
395 exoMuPath = cms.Path(exoMuSequence)
396 SKIMStreamEXOMu = cms.FilteredStream(
397  responsible = 'EXO',
398  name = "EXOMu",
399  paths = (exoMuPath),
400  content = skimAodContent.outputCommands,
401  selectEvents = cms.untracked.PSet(),
402  dataTier = cms.untracked.string('AOD')
403  )
404 
405 from SUSYBSMAnalysis.Skimming.EXOTriLepton_cff import *
406 exoTriMuPath = cms.Path(exoTriMuonSequence)
407 SKIMStreamEXOTriMu = cms.FilteredStream(
408  responsible = 'EXO',
409  name = 'EXOTriMu',
410  paths = (exoTriMuPath),
411  content = skimAodContent.outputCommands,
412  selectEvents = cms.untracked.PSet(),
413  dataTier = cms.untracked.string('AOD')
414  )
415 exoTriElePath = cms.Path(exoTriElectronSequence)
416 SKIMStreamEXOTriEle = cms.FilteredStream(
417  responsible = 'EXO',
418  name = 'EXOTriEle',
419  paths = (exoTriElePath),
420  content = skimAodContent.outputCommands,
421  selectEvents = cms.untracked.PSet(),
422  dataTier = cms.untracked.string('AOD')
423  )
424 exo1E2MuPath = cms.Path(exo1E2MuSequence)
425 SKIMStreamEXO1E2Mu = cms.FilteredStream(
426  responsible = 'EXO',
427  name = 'EXO1E2Mu',
428  paths = (exo1E2MuPath),
429  content = skimAodContent.outputCommands,
430  selectEvents = cms.untracked.PSet(),
431  dataTier = cms.untracked.string('AOD')
432  )
433 
434 from SUSYBSMAnalysis.Skimming.EXODiLepton_cff import *
435 exoDiMuPath = cms.Path(exoDiMuSequence)
436 exoDiElePath = cms.Path(exoDiMuSequence)
437 exoEMuPath = cms.Path(exoEMuSequence)
438 SKIMStreamEXODiMu = cms.FilteredStream(
439  responsible = 'EXO',
440  name = 'EXODiMu',
441  paths = (exoDiMuPath),
442  content = skimAodContent.outputCommands,
443  selectEvents = cms.untracked.PSet(),
444  dataTier = cms.untracked.string('AOD')
445  )
446 SKIMStreamEXODiEle = cms.FilteredStream(
447  responsible = 'EXO',
448  name = 'EXODiEle',
449  paths = (exoDiElePath),
450  content = skimAodContent.outputCommands,
451  selectEvents = cms.untracked.PSet(),
452  dataTier = cms.untracked.string('AOD')
453  )
454 SKIMStreamEXOEMu = cms.FilteredStream(
455  responsible = 'EXO',
456  name = 'EXOEMu',
457  paths = (exoEMuPath),
458  content = skimAodContent.outputCommands,
459  selectEvents = cms.untracked.PSet(),
460  dataTier = cms.untracked.string('AOD')
461  )
462 """
463 
464 
465 
467 MuonPOGSkimTrackPath = cms.Path(MuonPOGSkimTrackSequence)
468 MuonPOGSkimSTAPath = cms.Path(MuonPOGSkimSTASequence)
469 SKIMStreamMuonPOGSkim = cms.FilteredStream(
470  responsible = 'PDWG',
471  name = 'MuonPOGSkim',
472  paths = (MuonPOGSkimTrackPath,MuonPOGSkimSTAPath),
473  content = MuonPOG_EventContent.outputCommands,
474  selectEvents = cms.untracked.PSet(),
475  dataTier = cms.untracked.string('USER')
476  )
477 
478 
479 MuonPOGJPsiSkimTrackPath = cms.Path(MuonPOGJPsiSkimTrackSequence)
480 MuonPOGJPsiSkimSTAPath = cms.Path(MuonPOGJPsiSkimSTASequence)
481 
482 SKIMStreamMuonPOGJPsiSkim = cms.FilteredStream(
483  responsible = 'PDWG',
484  name = 'MuonPOGJPsiSkim',
485  paths = (MuonPOGJPsiSkimTrackPath,MuonPOGJPsiSkimSTAPath),
486  content = MuonPOG_EventContent.outputCommands,
487  selectEvents = cms.untracked.PSet(),
488  dataTier = cms.untracked.string('USER')
489  )
490 
491 
492 
B-Parking #########.
DPG skims ###.