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 EXOLLPJetHCALPath = cms.Path(EXOLLPJetHCALSkimSequence)
298 SKIMStreamEXOLLPJetHCAL = cms.FilteredStream(
299  responsible = 'PDWG',
300  name = 'EXOLLPJetHCAL',
301  paths = (EXOLLPJetHCALPath),
302  content = skimRawAODContent.outputCommands+['keep *_hbhereco__*'],
303  selectEvents = cms.untracked.PSet(),
304  dataTier = cms.untracked.string('AOD')
305  )
306 
308 EXODTClusterPath = cms.Path(EXODTClusterSkimSequence)
309 SKIMStreamEXODTCluster = cms.FilteredStream(
310  responsible = 'PDWG',
311  name = 'EXODTCluster',
312  paths = (EXODTClusterPath),
313  content = skimRawAODContent.outputCommands,
314  selectEvents = cms.untracked.PSet(),
315  dataTier = cms.untracked.string('AOD')
316  )
317 
319 EXOCSCClusterPath = cms.Path(EXOCSCClusterSkimSequence)
320 SKIMStreamEXOCSCCluster = cms.FilteredStream(
321  responsible = 'PDWG',
322  name = 'EXOCSCCluster',
323  paths = (EXOCSCClusterPath),
324  content = skimRawAODContent.outputCommands+['keep *_csc2DRecHits_*_*','keep *_dt1DRecHits_*_*'],
325  selectEvents = cms.untracked.PSet(),
326  dataTier = cms.untracked.string('USER')
327  )
328 
329 
331 EXODisappTrkPath = cms.Path(EXODisappTrkSkimSequence)
332 SKIMStreamEXODisappTrk = cms.FilteredStream(
333  responsible = 'PDWG',
334  name = 'EXODisappTrk',
335  paths = (EXODisappTrkPath),
336  content = EXODisappTrkSkimContent.outputCommands,
337  selectEvents = cms.untracked.PSet(),
338  dataTier = cms.untracked.string('AOD')
339  )
340 
342 EXODisappMuonPath = cms.Path(EXODisappMuonSkimSequence)
343 SKIMStreamEXODisappMuon = cms.FilteredStream(
344  responsible = 'PDWG',
345  name = 'EXODisappMuon',
346  paths = (EXODisappMuonPath),
347  content = EXODisappMuonSkimContent.outputCommands,
348  selectEvents = cms.untracked.PSet(),
349  dataTier = cms.untracked.string('USER')
350  )
351 
352 
354 from HLTrigger.Configuration.HLT_Fake1_cff import fragment as _fragment
355 if "hltGtDigis" in _fragment.__dict__:
356  hltGtDigis = _fragment.hltGtDigis.clone()
357  hltGtDigisPath = cms.Path(hltGtDigis)
358 else:
359  hltBoolEnd = _fragmet.hltBoolEnd.clone()
360  hltGtDigisPath = cms.Path(hltBoolEnd)
361 
362 # The events to be used as PileUp
364 HLTZEROBIASPUSDPath = cms.Path(HLTZEROBIASPUSD)
365 SKIMStreamHLTZEROBIASPUSD = cms.FilteredStream(
366  responsible = 'PDWG',
367  name = 'HLTZEROBIASPUSD',
368  paths = (HLTZEROBIASPUSDPath),
369  content = skimRecoContent.outputCommands,
370  selectEvents = cms.untracked.PSet(),
371  dataTier = cms.untracked.string('RAW') # for the moment, it could be DIGI in the future
372  )
373 
374 #The events to be used as signal
376 HLTZEROBIASSIGSDPath = cms.Path(HLTZEROBIASSIGSD)
377 SKIMStreamHLTZEROBIASSIGSD = cms.FilteredStream(
378  responsible = 'PDWG',
379  name = 'HLTZEROBIASSIGSD',
380  paths = (HLTZEROBIASSIGSDPath),
381  content = skimRecoContent.outputCommands,
382  selectEvents = cms.untracked.PSet(),
383  dataTier = cms.untracked.string('RAW') # for the moment, it could be DIGI in the future
384  )
385 
386 
387 
388 
389 
390 
391 """
392 from SUSYBSMAnalysis.Skimming.EXOLLResSkim_cff import *
393 exoLLResmmPath = cms.Path(exoLLResdiMuonSequence)
394 exoLLReseePath = cms.Path(exoLLResdiElectronSequence)
395 exoLLResemPath = cms.Path(exoLLResEleMuSequence)
396 SKIMStreamEXOLLRes = cms.FilteredStream(
397  responsible = 'EXO',
398  name = 'EXOLLRes',
399  paths = (exoLLResmmPath,exoLLReseePath,exoLLResemPath),
400  content = skimAodContent.outputCommands,
401  selectEvents = cms.untracked.PSet(),
402  dataTier = cms.untracked.string('AOD')
403  )
404 
405 from SUSYBSMAnalysis.Skimming.EXOEle_cff import *
406 exoElePath = cms.Path(exoEleLowetSeqReco)
407 SKIMStreamEXOEle = cms.FilteredStream(
408  responsible = 'EXO',
409  name = 'EXOEle',
410  paths = (exoElePath),
411  content = skimAodContent.outputCommands,
412  selectEvents = cms.untracked.PSet(),
413  dataTier = cms.untracked.string('AOD')
414  )
415 
416 from SUSYBSMAnalysis.Skimming.EXOMu_cff import *
417 exoMuPath = cms.Path(exoMuSequence)
418 SKIMStreamEXOMu = cms.FilteredStream(
419  responsible = 'EXO',
420  name = "EXOMu",
421  paths = (exoMuPath),
422  content = skimAodContent.outputCommands,
423  selectEvents = cms.untracked.PSet(),
424  dataTier = cms.untracked.string('AOD')
425  )
426 
427 from SUSYBSMAnalysis.Skimming.EXOTriLepton_cff import *
428 exoTriMuPath = cms.Path(exoTriMuonSequence)
429 SKIMStreamEXOTriMu = cms.FilteredStream(
430  responsible = 'EXO',
431  name = 'EXOTriMu',
432  paths = (exoTriMuPath),
433  content = skimAodContent.outputCommands,
434  selectEvents = cms.untracked.PSet(),
435  dataTier = cms.untracked.string('AOD')
436  )
437 exoTriElePath = cms.Path(exoTriElectronSequence)
438 SKIMStreamEXOTriEle = cms.FilteredStream(
439  responsible = 'EXO',
440  name = 'EXOTriEle',
441  paths = (exoTriElePath),
442  content = skimAodContent.outputCommands,
443  selectEvents = cms.untracked.PSet(),
444  dataTier = cms.untracked.string('AOD')
445  )
446 exo1E2MuPath = cms.Path(exo1E2MuSequence)
447 SKIMStreamEXO1E2Mu = cms.FilteredStream(
448  responsible = 'EXO',
449  name = 'EXO1E2Mu',
450  paths = (exo1E2MuPath),
451  content = skimAodContent.outputCommands,
452  selectEvents = cms.untracked.PSet(),
453  dataTier = cms.untracked.string('AOD')
454  )
455 
456 from SUSYBSMAnalysis.Skimming.EXODiLepton_cff import *
457 exoDiMuPath = cms.Path(exoDiMuSequence)
458 exoDiElePath = cms.Path(exoDiMuSequence)
459 exoEMuPath = cms.Path(exoEMuSequence)
460 SKIMStreamEXODiMu = cms.FilteredStream(
461  responsible = 'EXO',
462  name = 'EXODiMu',
463  paths = (exoDiMuPath),
464  content = skimAodContent.outputCommands,
465  selectEvents = cms.untracked.PSet(),
466  dataTier = cms.untracked.string('AOD')
467  )
468 SKIMStreamEXODiEle = cms.FilteredStream(
469  responsible = 'EXO',
470  name = 'EXODiEle',
471  paths = (exoDiElePath),
472  content = skimAodContent.outputCommands,
473  selectEvents = cms.untracked.PSet(),
474  dataTier = cms.untracked.string('AOD')
475  )
476 SKIMStreamEXOEMu = cms.FilteredStream(
477  responsible = 'EXO',
478  name = 'EXOEMu',
479  paths = (exoEMuPath),
480  content = skimAodContent.outputCommands,
481  selectEvents = cms.untracked.PSet(),
482  dataTier = cms.untracked.string('AOD')
483  )
484 """
485 
486 
487 
489 MuonPOGSkimTrackPath = cms.Path(MuonPOGSkimTrackSequence)
490 MuonPOGSkimSTAPath = cms.Path(MuonPOGSkimSTASequence)
491 SKIMStreamMuonPOGSkim = cms.FilteredStream(
492  responsible = 'PDWG',
493  name = 'MuonPOGSkim',
494  paths = (MuonPOGSkimTrackPath,MuonPOGSkimSTAPath),
495  content = MuonPOG_EventContent.outputCommands,
496  selectEvents = cms.untracked.PSet(),
497  dataTier = cms.untracked.string('USER')
498  )
499 
500 
501 MuonPOGJPsiSkimTrackPath = cms.Path(MuonPOGJPsiSkimTrackSequence)
502 MuonPOGJPsiSkimSTAPath = cms.Path(MuonPOGJPsiSkimSTASequence)
503 
504 SKIMStreamMuonPOGJPsiSkim = cms.FilteredStream(
505  responsible = 'PDWG',
506  name = 'MuonPOGJPsiSkim',
507  paths = (MuonPOGJPsiSkimTrackPath,MuonPOGJPsiSkimSTAPath),
508  content = MuonPOG_EventContent.outputCommands,
509  selectEvents = cms.untracked.PSet(),
510  dataTier = cms.untracked.string('USER')
511  )
512 
513 
514 
B-Parking #########.
DPG skims ###.