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('USER')
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 
366 EXOSoftDisplacedVerticesPath = cms.Path(EXOSoftDisplacedVerticesSkimSequence)
367 SKIMStreamEXOSoftDisplacedVertices = cms.FilteredStream(
368  responsible = 'PDWG',
369  name = 'EXOSoftDisplacedVertices',
370  paths = (EXOSoftDisplacedVerticesPath ),
371  content = EXOSoftDisplacedVerticesSkimContent.outputCommands,
372  selectEvents = cms.untracked.PSet(),
373  dataTier = cms.untracked.string('AOD')
374 )
375 
376 
378 from HLTrigger.Configuration.HLT_Fake1_cff import fragment as _fragment
379 if "hltGtDigis" in _fragment.__dict__:
380  hltGtDigis = _fragment.hltGtDigis.clone()
381  hltGtDigisPath = cms.Path(hltGtDigis)
382 else:
383  hltBoolEnd = _fragmet.hltBoolEnd.clone()
384  hltGtDigisPath = cms.Path(hltBoolEnd)
385 
386 # The events to be used as PileUp
388 HLTZEROBIASPUSDPath = cms.Path(HLTZEROBIASPUSD)
389 SKIMStreamHLTZEROBIASPUSD = cms.FilteredStream(
390  responsible = 'PDWG',
391  name = 'HLTZEROBIASPUSD',
392  paths = (HLTZEROBIASPUSDPath),
393  content = skimRecoContent.outputCommands,
394  selectEvents = cms.untracked.PSet(),
395  dataTier = cms.untracked.string('RAW') # for the moment, it could be DIGI in the future
396  )
397 
398 #The events to be used as signal
400 HLTZEROBIASSIGSDPath = cms.Path(HLTZEROBIASSIGSD)
401 SKIMStreamHLTZEROBIASSIGSD = cms.FilteredStream(
402  responsible = 'PDWG',
403  name = 'HLTZEROBIASSIGSD',
404  paths = (HLTZEROBIASSIGSDPath),
405  content = skimRecoContent.outputCommands,
406  selectEvents = cms.untracked.PSet(),
407  dataTier = cms.untracked.string('RAW') # for the moment, it could be DIGI in the future
408  )
409 
411 EGMJMEPath = cms.Path(EGMJME)
412 SKIMStreamEGMJME = cms.FilteredStream(
413  responsible = 'PDWG',
414  name = 'EGMJME',
415  paths = (EGMJMEPath),
416  content = skimRawContent.outputCommands,
417  selectEvents = cms.untracked.PSet(),
418  dataTier = cms.untracked.string('RAW-RECO')
419  )
420 
422 MUOJMEPath = cms.Path(MUOJME)
423 SKIMStreamMUOJME = cms.FilteredStream(
424  responsible = 'PDWG',
425  name = 'MUOJME',
426  paths = (MUOJMEPath),
427  content = skimRawContent.outputCommands,
428  selectEvents = cms.untracked.PSet(),
429  dataTier = cms.untracked.string('RAW-RECO')
430  )
431 
432 
433 
434 
435 
436 
437 """
438 from SUSYBSMAnalysis.Skimming.EXOLLResSkim_cff import *
439 exoLLResmmPath = cms.Path(exoLLResdiMuonSequence)
440 exoLLReseePath = cms.Path(exoLLResdiElectronSequence)
441 exoLLResemPath = cms.Path(exoLLResEleMuSequence)
442 SKIMStreamEXOLLRes = cms.FilteredStream(
443  responsible = 'EXO',
444  name = 'EXOLLRes',
445  paths = (exoLLResmmPath,exoLLReseePath,exoLLResemPath),
446  content = skimAodContent.outputCommands,
447  selectEvents = cms.untracked.PSet(),
448  dataTier = cms.untracked.string('AOD')
449  )
450 
451 from SUSYBSMAnalysis.Skimming.EXOEle_cff import *
452 exoElePath = cms.Path(exoEleLowetSeqReco)
453 SKIMStreamEXOEle = cms.FilteredStream(
454  responsible = 'EXO',
455  name = 'EXOEle',
456  paths = (exoElePath),
457  content = skimAodContent.outputCommands,
458  selectEvents = cms.untracked.PSet(),
459  dataTier = cms.untracked.string('AOD')
460  )
461 
462 from SUSYBSMAnalysis.Skimming.EXOMu_cff import *
463 exoMuPath = cms.Path(exoMuSequence)
464 SKIMStreamEXOMu = cms.FilteredStream(
465  responsible = 'EXO',
466  name = "EXOMu",
467  paths = (exoMuPath),
468  content = skimAodContent.outputCommands,
469  selectEvents = cms.untracked.PSet(),
470  dataTier = cms.untracked.string('AOD')
471  )
472 
473 from SUSYBSMAnalysis.Skimming.EXOTriLepton_cff import *
474 exoTriMuPath = cms.Path(exoTriMuonSequence)
475 SKIMStreamEXOTriMu = cms.FilteredStream(
476  responsible = 'EXO',
477  name = 'EXOTriMu',
478  paths = (exoTriMuPath),
479  content = skimAodContent.outputCommands,
480  selectEvents = cms.untracked.PSet(),
481  dataTier = cms.untracked.string('AOD')
482  )
483 exoTriElePath = cms.Path(exoTriElectronSequence)
484 SKIMStreamEXOTriEle = cms.FilteredStream(
485  responsible = 'EXO',
486  name = 'EXOTriEle',
487  paths = (exoTriElePath),
488  content = skimAodContent.outputCommands,
489  selectEvents = cms.untracked.PSet(),
490  dataTier = cms.untracked.string('AOD')
491  )
492 exo1E2MuPath = cms.Path(exo1E2MuSequence)
493 SKIMStreamEXO1E2Mu = cms.FilteredStream(
494  responsible = 'EXO',
495  name = 'EXO1E2Mu',
496  paths = (exo1E2MuPath),
497  content = skimAodContent.outputCommands,
498  selectEvents = cms.untracked.PSet(),
499  dataTier = cms.untracked.string('AOD')
500  )
501 
502 from SUSYBSMAnalysis.Skimming.EXODiLepton_cff import *
503 exoDiMuPath = cms.Path(exoDiMuSequence)
504 exoDiElePath = cms.Path(exoDiMuSequence)
505 exoEMuPath = cms.Path(exoEMuSequence)
506 SKIMStreamEXODiMu = cms.FilteredStream(
507  responsible = 'EXO',
508  name = 'EXODiMu',
509  paths = (exoDiMuPath),
510  content = skimAodContent.outputCommands,
511  selectEvents = cms.untracked.PSet(),
512  dataTier = cms.untracked.string('AOD')
513  )
514 SKIMStreamEXODiEle = cms.FilteredStream(
515  responsible = 'EXO',
516  name = 'EXODiEle',
517  paths = (exoDiElePath),
518  content = skimAodContent.outputCommands,
519  selectEvents = cms.untracked.PSet(),
520  dataTier = cms.untracked.string('AOD')
521  )
522 SKIMStreamEXOEMu = cms.FilteredStream(
523  responsible = 'EXO',
524  name = 'EXOEMu',
525  paths = (exoEMuPath),
526  content = skimAodContent.outputCommands,
527  selectEvents = cms.untracked.PSet(),
528  dataTier = cms.untracked.string('AOD')
529  )
530 """
531 
532 
533 
535 MuonPOGSkimTrackPath = cms.Path(MuonPOGSkimTrackSequence)
536 MuonPOGSkimSTAPath = cms.Path(MuonPOGSkimSTASequence)
537 SKIMStreamMuonPOGSkim = cms.FilteredStream(
538  responsible = 'PDWG',
539  name = 'MuonPOGSkim',
540  paths = (MuonPOGSkimTrackPath,MuonPOGSkimSTAPath),
541  content = MuonPOG_EventContent.outputCommands,
542  selectEvents = cms.untracked.PSet(),
543  dataTier = cms.untracked.string('USER')
544  )
545 
546 
547 MuonPOGJPsiSkimTrackPath = cms.Path(MuonPOGJPsiSkimTrackSequence)
548 MuonPOGJPsiSkimSTAPath = cms.Path(MuonPOGJPsiSkimSTASequence)
549 
550 SKIMStreamMuonPOGJPsiSkim = cms.FilteredStream(
551  responsible = 'PDWG',
552  name = 'MuonPOGJPsiSkim',
553  paths = (MuonPOGJPsiSkimTrackPath,MuonPOGJPsiSkimSTAPath),
554  content = MuonPOG_EventContent.outputCommands,
555  selectEvents = cms.untracked.PSet(),
556  dataTier = cms.untracked.string('USER')
557  )
558 
559 
560 
B-Parking #########.
DPG skims ###.