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 
399 
400 
401 
402 
403 
404 """
405 from SUSYBSMAnalysis.Skimming.EXOLLResSkim_cff import *
406 exoLLResmmPath = cms.Path(exoLLResdiMuonSequence)
407 exoLLReseePath = cms.Path(exoLLResdiElectronSequence)
408 exoLLResemPath = cms.Path(exoLLResEleMuSequence)
409 SKIMStreamEXOLLRes = cms.FilteredStream(
410  responsible = 'EXO',
411  name = 'EXOLLRes',
412  paths = (exoLLResmmPath,exoLLReseePath,exoLLResemPath),
413  content = skimAodContent.outputCommands,
414  selectEvents = cms.untracked.PSet(),
415  dataTier = cms.untracked.string('AOD')
416  )
417 
418 from SUSYBSMAnalysis.Skimming.EXOEle_cff import *
419 exoElePath = cms.Path(exoEleLowetSeqReco)
420 SKIMStreamEXOEle = cms.FilteredStream(
421  responsible = 'EXO',
422  name = 'EXOEle',
423  paths = (exoElePath),
424  content = skimAodContent.outputCommands,
425  selectEvents = cms.untracked.PSet(),
426  dataTier = cms.untracked.string('AOD')
427  )
428 
429 from SUSYBSMAnalysis.Skimming.EXOMu_cff import *
430 exoMuPath = cms.Path(exoMuSequence)
431 SKIMStreamEXOMu = cms.FilteredStream(
432  responsible = 'EXO',
433  name = "EXOMu",
434  paths = (exoMuPath),
435  content = skimAodContent.outputCommands,
436  selectEvents = cms.untracked.PSet(),
437  dataTier = cms.untracked.string('AOD')
438  )
439 
440 from SUSYBSMAnalysis.Skimming.EXOTriLepton_cff import *
441 exoTriMuPath = cms.Path(exoTriMuonSequence)
442 SKIMStreamEXOTriMu = cms.FilteredStream(
443  responsible = 'EXO',
444  name = 'EXOTriMu',
445  paths = (exoTriMuPath),
446  content = skimAodContent.outputCommands,
447  selectEvents = cms.untracked.PSet(),
448  dataTier = cms.untracked.string('AOD')
449  )
450 exoTriElePath = cms.Path(exoTriElectronSequence)
451 SKIMStreamEXOTriEle = cms.FilteredStream(
452  responsible = 'EXO',
453  name = 'EXOTriEle',
454  paths = (exoTriElePath),
455  content = skimAodContent.outputCommands,
456  selectEvents = cms.untracked.PSet(),
457  dataTier = cms.untracked.string('AOD')
458  )
459 exo1E2MuPath = cms.Path(exo1E2MuSequence)
460 SKIMStreamEXO1E2Mu = cms.FilteredStream(
461  responsible = 'EXO',
462  name = 'EXO1E2Mu',
463  paths = (exo1E2MuPath),
464  content = skimAodContent.outputCommands,
465  selectEvents = cms.untracked.PSet(),
466  dataTier = cms.untracked.string('AOD')
467  )
468 
469 from SUSYBSMAnalysis.Skimming.EXODiLepton_cff import *
470 exoDiMuPath = cms.Path(exoDiMuSequence)
471 exoDiElePath = cms.Path(exoDiMuSequence)
472 exoEMuPath = cms.Path(exoEMuSequence)
473 SKIMStreamEXODiMu = cms.FilteredStream(
474  responsible = 'EXO',
475  name = 'EXODiMu',
476  paths = (exoDiMuPath),
477  content = skimAodContent.outputCommands,
478  selectEvents = cms.untracked.PSet(),
479  dataTier = cms.untracked.string('AOD')
480  )
481 SKIMStreamEXODiEle = cms.FilteredStream(
482  responsible = 'EXO',
483  name = 'EXODiEle',
484  paths = (exoDiElePath),
485  content = skimAodContent.outputCommands,
486  selectEvents = cms.untracked.PSet(),
487  dataTier = cms.untracked.string('AOD')
488  )
489 SKIMStreamEXOEMu = cms.FilteredStream(
490  responsible = 'EXO',
491  name = 'EXOEMu',
492  paths = (exoEMuPath),
493  content = skimAodContent.outputCommands,
494  selectEvents = cms.untracked.PSet(),
495  dataTier = cms.untracked.string('AOD')
496  )
497 """
498 
499 
500 
502 MuonPOGSkimTrackPath = cms.Path(MuonPOGSkimTrackSequence)
503 MuonPOGSkimSTAPath = cms.Path(MuonPOGSkimSTASequence)
504 SKIMStreamMuonPOGSkim = cms.FilteredStream(
505  responsible = 'PDWG',
506  name = 'MuonPOGSkim',
507  paths = (MuonPOGSkimTrackPath,MuonPOGSkimSTAPath),
508  content = MuonPOG_EventContent.outputCommands,
509  selectEvents = cms.untracked.PSet(),
510  dataTier = cms.untracked.string('USER')
511  )
512 
513 
514 MuonPOGJPsiSkimTrackPath = cms.Path(MuonPOGJPsiSkimTrackSequence)
515 MuonPOGJPsiSkimSTAPath = cms.Path(MuonPOGJPsiSkimSTASequence)
516 
517 SKIMStreamMuonPOGJPsiSkim = cms.FilteredStream(
518  responsible = 'PDWG',
519  name = 'MuonPOGJPsiSkim',
520  paths = (MuonPOGJPsiSkimTrackPath,MuonPOGJPsiSkimSTAPath),
521  content = MuonPOG_EventContent.outputCommands,
522  selectEvents = cms.untracked.PSet(),
523  dataTier = cms.untracked.string('USER')
524  )
525 
526 
527 
B-Parking #########.
DPG skims ###.