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 ReserveDMuPath = cms.Path(ReserveDMu)
161 SKIMStreamReserveDMu = cms.FilteredStream(
162  responsible = 'PDWG',
163  name = 'ReserveDMu',
164  paths = (ReserveDMuPath),
165  content = skimRawContent.outputCommands,
166  selectEvents = cms.untracked.PSet(),
167  dataTier = cms.untracked.string('RAW')
168  )
169 
170 
171 
173 CaloIdIsoPhotonPairsPath = cms.Path(CaloIdIsoPhotonPairsFilter)
174 R9IdPhotonPairsPath = cms.Path(R9IdPhotonPairsFilter)
175 MixedCaloR9IdPhotonPairsPath = cms.Path(MixedCaloR9IdPhotonPairsFilter)
176 MixedR9CaloIdPhotonPairsPath = cms.Path(MixedR9CaloIdPhotonPairsFilter)
177 
178 SKIMStreamDiPhoton = cms.FilteredStream(
179  responsible = 'PDWG',
180  name = 'DiPhoton',
181  paths = (CaloIdIsoPhotonPairsPath,R9IdPhotonPairsPath,MixedCaloR9IdPhotonPairsPath,MixedR9CaloIdPhotonPairsPath),
182  content = skimContent.outputCommands,
183  selectEvents = cms.untracked.PSet(),
184  dataTier = cms.untracked.string('RAW-RECO')
185  )
186 
187 
189 SkimBParkPath = cms.Path(SkimBPark)
190 SKIMStreamSkimBPark = cms.FilteredStream(
191  responsible = 'BPH PAG',
192  name = 'SkimBPark',
193  paths = ( SkimBParkPath ),
194  content = skimContent.outputCommands,
195  selectEvents = cms.untracked.PSet(),
196  dataTier = cms.untracked.string('RAW-RECO')
197 )
198 
199 from Configuration.EventContent.EventContent_cff import AODEventContent
200 skimAodContent = AODEventContent.clone()
201 skimAodContent.outputCommands.append("drop *_MEtoEDMConverter_*_*")
202 skimAodContent.outputCommands.append("drop *_*_*_SKIM")
203 
204 #from Configuration.Skimming.PDWG_DoublePhotonSkim_cff import *
205 #diphotonSkimPath = cms.Path(diphotonSkimSequence)
206 #SKIMStreamDoublePhoton = cms.FilteredStream(
207 # responsible = 'PDWG',
208 # name = 'DoublePhoton',
209 # paths = (diphotonSkimPath),
210 # content = skimAodContent.outputCommands,
211 # selectEvents = cms.untracked.PSet(),
212 # dataTier = cms.untracked.string('AOD')
213 # )
214 
216 HWWmmPath = cms.Path(diMuonSequence)
217 HWWeePath = cms.Path(diElectronSequence)
218 HWWemPath = cms.Path(EleMuSequence)
219 SKIMStreamHWW = cms.FilteredStream(
220  responsible = 'PDWG',
221  name = 'HWW',
222  paths = (HWWmmPath,HWWeePath,HWWemPath),
223  content = skimAodContent.outputCommands,
224  selectEvents = cms.untracked.PSet(),
225  dataTier = cms.untracked.string('AOD')
226  )
227 
228 
230 HZZmmPath = cms.Path(zzdiMuonSequence)
231 HZZeePath = cms.Path(zzdiElectronSequence)
232 HZZemPath = cms.Path(zzeleMuSequence)
233 SKIMStreamHZZ = cms.FilteredStream(
234  responsible = 'PDWG',
235  name = 'HZZ',
236  paths = (HZZmmPath,HZZeePath,HZZemPath),
237  content = skimAodContent.outputCommands,
238  selectEvents = cms.untracked.PSet(),
239  dataTier = cms.untracked.string('AOD')
240  )
241 
242 
244 exoHPTEPath = cms.Path(exoDiHPTESequence)
245 SKIMStreamEXOHPTE = cms.FilteredStream(
246  responsible = 'PDWG',
247  name = 'EXOHPTE',
248  paths = (exoHPTEPath),
249  content = skimAodContent.outputCommands,
250  selectEvents = cms.untracked.PSet(),
251  dataTier = cms.untracked.string('AOD')
252  )
253 
255 EXOMONOPOLEPath = cms.Path(EXOMonopoleSkimSequence)
256 SKIMStreamEXOMONOPOLE = cms.FilteredStream(
257  responsible = 'PDWG',
258  name = 'EXOMONOPOLE',
259  paths = (EXOMONOPOLEPath),
260  content = EXOMonopoleSkimContent.outputCommands,
261  selectEvents = cms.untracked.PSet(),
262  dataTier = cms.untracked.string('USER')
263  )
264 
266 EXOHighMETPath = cms.Path(EXOHighMETSequence)
267 SKIMStreamEXOHighMET = cms.FilteredStream(
268  responsible = 'PDWG',
269  name = 'EXOHighMET',
270  paths = (EXOHighMETPath),
271  content = skimContent.outputCommands,
272  selectEvents = cms.untracked.PSet(),
273  dataTier = cms.untracked.string('RAW-RECO')
274  )
275 
277 EXODisplacedJetPath = cms.Path(EXODisplacedJetSkimSequence)
278 SKIMStreamEXODisplacedJet = cms.FilteredStream(
279  responsible = 'PDWG',
280  name = 'EXODisplacedJet',
281  paths = (EXODisplacedJetPath),
282  content = skimRawAODContent.outputCommands,
283  selectEvents = cms.untracked.PSet(),
284  dataTier = cms.untracked.string('USER')
285  )
286 
288 EXODelayedJetPath = cms.Path(EXODelayedJetSkimSequence)
289 SKIMStreamEXODelayedJet = cms.FilteredStream(
290  responsible = 'PDWG',
291  name = 'EXODelayedJet',
292  paths = (EXODelayedJetPath),
293  content = skimRawAODContent.outputCommands,
294  selectEvents = cms.untracked.PSet(),
295  dataTier = cms.untracked.string('AOD')
296  )
297 
299 EXODelayedJetMETPath = cms.Path(EXODelayedJetMETSkimSequence)
300 SKIMStreamEXODelayedJetMET = cms.FilteredStream(
301  responsible = 'PDWG',
302  name = 'EXODelayedJetMET',
303  paths = (EXODelayedJetMETPath),
304  content = skimRawAODContent.outputCommands,
305  selectEvents = cms.untracked.PSet(),
306  dataTier = cms.untracked.string('AOD')
307  )
308 
310 EXOLLPJetHCALPath = cms.Path(EXOLLPJetHCALSkimSequence)
311 SKIMStreamEXOLLPJetHCAL = cms.FilteredStream(
312  responsible = 'PDWG',
313  name = 'EXOLLPJetHCAL',
314  paths = (EXOLLPJetHCALPath),
315  content = skimRawAODContent.outputCommands+['keep *_hbhereco__*'],
316  selectEvents = cms.untracked.PSet(),
317  dataTier = cms.untracked.string('AOD')
318  )
319 
321 EXODTClusterPath = cms.Path(EXODTClusterSkimSequence)
322 SKIMStreamEXODTCluster = cms.FilteredStream(
323  responsible = 'PDWG',
324  name = 'EXODTCluster',
325  paths = (EXODTClusterPath),
326  content = skimRawAODContent.outputCommands,
327  selectEvents = cms.untracked.PSet(),
328  dataTier = cms.untracked.string('AOD')
329  )
330 
332 EXOCSCClusterPath = cms.Path(EXOCSCClusterSkimSequence)
333 SKIMStreamEXOCSCCluster = cms.FilteredStream(
334  responsible = 'PDWG',
335  name = 'EXOCSCCluster',
336  paths = (EXOCSCClusterPath),
337  content = skimRawAODContent.outputCommands+['keep *_csc2DRecHits_*_*','keep *_dt1DRecHits_*_*'],
338  selectEvents = cms.untracked.PSet(),
339  dataTier = cms.untracked.string('USER')
340  )
341 
342 
344 EXODisappTrkPath = cms.Path(EXODisappTrkSkimSequence)
345 SKIMStreamEXODisappTrk = cms.FilteredStream(
346  responsible = 'PDWG',
347  name = 'EXODisappTrk',
348  paths = (EXODisappTrkPath),
349  content = EXODisappTrkSkimContent.outputCommands,
350  selectEvents = cms.untracked.PSet(),
351  dataTier = cms.untracked.string('AOD')
352  )
353 
355 EXODisappMuonPath = cms.Path(EXODisappMuonSkimSequence)
356 SKIMStreamEXODisappMuon = cms.FilteredStream(
357  responsible = 'PDWG',
358  name = 'EXODisappMuon',
359  paths = (EXODisappMuonPath),
360  content = EXODisappMuonSkimContent.outputCommands,
361  selectEvents = cms.untracked.PSet(),
362  dataTier = cms.untracked.string('USER')
363  )
364 
365 
367 from HLTrigger.Configuration.HLT_Fake1_cff import fragment as _fragment
368 if "hltGtDigis" in _fragment.__dict__:
369  hltGtDigis = _fragment.hltGtDigis.clone()
370  hltGtDigisPath = cms.Path(hltGtDigis)
371 else:
372  hltBoolEnd = _fragmet.hltBoolEnd.clone()
373  hltGtDigisPath = cms.Path(hltBoolEnd)
374 
375 # The events to be used as PileUp
377 HLTZEROBIASPUSDPath = cms.Path(HLTZEROBIASPUSD)
378 SKIMStreamHLTZEROBIASPUSD = cms.FilteredStream(
379  responsible = 'PDWG',
380  name = 'HLTZEROBIASPUSD',
381  paths = (HLTZEROBIASPUSDPath),
382  content = skimRecoContent.outputCommands,
383  selectEvents = cms.untracked.PSet(),
384  dataTier = cms.untracked.string('RAW') # for the moment, it could be DIGI in the future
385  )
386 
387 #The events to be used as signal
389 HLTZEROBIASSIGSDPath = cms.Path(HLTZEROBIASSIGSD)
390 SKIMStreamHLTZEROBIASSIGSD = cms.FilteredStream(
391  responsible = 'PDWG',
392  name = 'HLTZEROBIASSIGSD',
393  paths = (HLTZEROBIASSIGSDPath),
394  content = skimRecoContent.outputCommands,
395  selectEvents = cms.untracked.PSet(),
396  dataTier = cms.untracked.string('RAW') # for the moment, it could be DIGI in the future
397  )
398 
400 EGMJMEPath = cms.Path(EGMJME)
401 SKIMStreamEGMJME = cms.FilteredStream(
402  responsible = 'PDWG',
403  name = 'EGMJME',
404  paths = (EGMJMEPath),
405  content = skimRawContent.outputCommands,
406  selectEvents = cms.untracked.PSet(),
407  dataTier = cms.untracked.string('RAW-RECO')
408  )
409 
411 MUOJMEPath = cms.Path(MUOJME)
412 SKIMStreamMUOJME = cms.FilteredStream(
413  responsible = 'PDWG',
414  name = 'MUOJME',
415  paths = (MUOJMEPath),
416  content = skimRawContent.outputCommands,
417  selectEvents = cms.untracked.PSet(),
418  dataTier = cms.untracked.string('RAW-RECO')
419  )
420 
421 
422 
423 
424 
425 
426 """
427 from SUSYBSMAnalysis.Skimming.EXOLLResSkim_cff import *
428 exoLLResmmPath = cms.Path(exoLLResdiMuonSequence)
429 exoLLReseePath = cms.Path(exoLLResdiElectronSequence)
430 exoLLResemPath = cms.Path(exoLLResEleMuSequence)
431 SKIMStreamEXOLLRes = cms.FilteredStream(
432  responsible = 'EXO',
433  name = 'EXOLLRes',
434  paths = (exoLLResmmPath,exoLLReseePath,exoLLResemPath),
435  content = skimAodContent.outputCommands,
436  selectEvents = cms.untracked.PSet(),
437  dataTier = cms.untracked.string('AOD')
438  )
439 
440 from SUSYBSMAnalysis.Skimming.EXOEle_cff import *
441 exoElePath = cms.Path(exoEleLowetSeqReco)
442 SKIMStreamEXOEle = cms.FilteredStream(
443  responsible = 'EXO',
444  name = 'EXOEle',
445  paths = (exoElePath),
446  content = skimAodContent.outputCommands,
447  selectEvents = cms.untracked.PSet(),
448  dataTier = cms.untracked.string('AOD')
449  )
450 
451 from SUSYBSMAnalysis.Skimming.EXOMu_cff import *
452 exoMuPath = cms.Path(exoMuSequence)
453 SKIMStreamEXOMu = cms.FilteredStream(
454  responsible = 'EXO',
455  name = "EXOMu",
456  paths = (exoMuPath),
457  content = skimAodContent.outputCommands,
458  selectEvents = cms.untracked.PSet(),
459  dataTier = cms.untracked.string('AOD')
460  )
461 
462 from SUSYBSMAnalysis.Skimming.EXOTriLepton_cff import *
463 exoTriMuPath = cms.Path(exoTriMuonSequence)
464 SKIMStreamEXOTriMu = cms.FilteredStream(
465  responsible = 'EXO',
466  name = 'EXOTriMu',
467  paths = (exoTriMuPath),
468  content = skimAodContent.outputCommands,
469  selectEvents = cms.untracked.PSet(),
470  dataTier = cms.untracked.string('AOD')
471  )
472 exoTriElePath = cms.Path(exoTriElectronSequence)
473 SKIMStreamEXOTriEle = cms.FilteredStream(
474  responsible = 'EXO',
475  name = 'EXOTriEle',
476  paths = (exoTriElePath),
477  content = skimAodContent.outputCommands,
478  selectEvents = cms.untracked.PSet(),
479  dataTier = cms.untracked.string('AOD')
480  )
481 exo1E2MuPath = cms.Path(exo1E2MuSequence)
482 SKIMStreamEXO1E2Mu = cms.FilteredStream(
483  responsible = 'EXO',
484  name = 'EXO1E2Mu',
485  paths = (exo1E2MuPath),
486  content = skimAodContent.outputCommands,
487  selectEvents = cms.untracked.PSet(),
488  dataTier = cms.untracked.string('AOD')
489  )
490 
491 from SUSYBSMAnalysis.Skimming.EXODiLepton_cff import *
492 exoDiMuPath = cms.Path(exoDiMuSequence)
493 exoDiElePath = cms.Path(exoDiMuSequence)
494 exoEMuPath = cms.Path(exoEMuSequence)
495 SKIMStreamEXODiMu = cms.FilteredStream(
496  responsible = 'EXO',
497  name = 'EXODiMu',
498  paths = (exoDiMuPath),
499  content = skimAodContent.outputCommands,
500  selectEvents = cms.untracked.PSet(),
501  dataTier = cms.untracked.string('AOD')
502  )
503 SKIMStreamEXODiEle = cms.FilteredStream(
504  responsible = 'EXO',
505  name = 'EXODiEle',
506  paths = (exoDiElePath),
507  content = skimAodContent.outputCommands,
508  selectEvents = cms.untracked.PSet(),
509  dataTier = cms.untracked.string('AOD')
510  )
511 SKIMStreamEXOEMu = cms.FilteredStream(
512  responsible = 'EXO',
513  name = 'EXOEMu',
514  paths = (exoEMuPath),
515  content = skimAodContent.outputCommands,
516  selectEvents = cms.untracked.PSet(),
517  dataTier = cms.untracked.string('AOD')
518  )
519 """
520 
521 
522 
524 MuonPOGSkimTrackPath = cms.Path(MuonPOGSkimTrackSequence)
525 MuonPOGSkimSTAPath = cms.Path(MuonPOGSkimSTASequence)
526 SKIMStreamMuonPOGSkim = cms.FilteredStream(
527  responsible = 'PDWG',
528  name = 'MuonPOGSkim',
529  paths = (MuonPOGSkimTrackPath,MuonPOGSkimSTAPath),
530  content = MuonPOG_EventContent.outputCommands,
531  selectEvents = cms.untracked.PSet(),
532  dataTier = cms.untracked.string('USER')
533  )
534 
535 
536 MuonPOGJPsiSkimTrackPath = cms.Path(MuonPOGJPsiSkimTrackSequence)
537 MuonPOGJPsiSkimSTAPath = cms.Path(MuonPOGJPsiSkimSTASequence)
538 
539 SKIMStreamMuonPOGJPsiSkim = cms.FilteredStream(
540  responsible = 'PDWG',
541  name = 'MuonPOGJPsiSkim',
542  paths = (MuonPOGJPsiSkimTrackPath,MuonPOGJPsiSkimSTAPath),
543  content = MuonPOG_EventContent.outputCommands,
544  selectEvents = cms.untracked.PSet(),
545  dataTier = cms.untracked.string('USER')
546  )
547 
548 
549 
B-Parking #########.
DPG skims ###.