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