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 #####################
21 # event splitting special skims
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 
175 from Configuration.EventContent.EventContent_cff import AODEventContent
176 skimAodContent = AODEventContent.clone()
177 skimAodContent.outputCommands.append("drop *_MEtoEDMConverter_*_*")
178 skimAodContent.outputCommands.append("drop *_*_*_SKIM")
179 
180 #from Configuration.Skimming.PDWG_DoublePhotonSkim_cff import *
181 #diphotonSkimPath = cms.Path(diphotonSkimSequence)
182 #SKIMStreamDoublePhoton = cms.FilteredStream(
183 # responsible = 'PDWG',
184 # name = 'DoublePhoton',
185 # paths = (diphotonSkimPath),
186 # content = skimAodContent.outputCommands,
187 # selectEvents = cms.untracked.PSet(),
188 # dataTier = cms.untracked.string('AOD')
189 # )
190 
192 EXOHSCPPath = cms.Path(exoticaHSCPSeq)
193 SKIMStreamEXOHSCP = cms.FilteredStream(
194  responsible = 'PDWG',
195  name = 'EXOHSCP',
196  paths = (EXOHSCPPath),
197  content = EXOHSCPSkim_EventContent.outputCommands,
198  selectEvents = cms.untracked.PSet(),
199  dataTier = cms.untracked.string('USER')
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 EXODisplacedJetPath = cms.Path(EXODisplacedJetSkimSequence)
254 SKIMStreamEXODisplacedJet = cms.FilteredStream(
255  responsible = 'PDWG',
256  name = 'EXODisplacedJet',
257  paths = (EXODisplacedJetPath),
258  content = skimRawAODContent.outputCommands,
259  selectEvents = cms.untracked.PSet(),
260  dataTier = cms.untracked.string('USER')
261  )
262 
263 #####################
264 # For the Data on Data Mixing in TSG
265 from HLTrigger.Configuration.HLT_Fake1_cff import fragment as _fragment
266 if "hltGtDigis" in _fragment.__dict__:
267  hltGtDigis = _fragment.hltGtDigis.clone()
268  hltGtDigisPath = cms.Path(hltGtDigis)
269 else:
270  hltBoolEnd = _fragmet.hltBoolEnd.clone()
271  hltGtDigisPath = cms.Path(hltBoolEnd)
272 
273 # The events to be used as PileUp
275 HLTZEROBIASPUSDPath = cms.Path(HLTZEROBIASPUSD)
276 SKIMStreamHLTZEROBIASPUSD = cms.FilteredStream(
277  responsible = 'PDWG',
278  name = 'HLTZEROBIASPUSD',
279  paths = (HLTZEROBIASPUSDPath),
280  content = skimRecoContent.outputCommands,
281  selectEvents = cms.untracked.PSet(),
282  dataTier = cms.untracked.string('RAW') # for the moment, it could be DIGI in the future
283  )
284 
285 #The events to be used as signal
287 HLTZEROBIASSIGSDPath = cms.Path(HLTZEROBIASSIGSD)
288 SKIMStreamHLTZEROBIASSIGSD = cms.FilteredStream(
289  responsible = 'PDWG',
290  name = 'HLTZEROBIASSIGSD',
291  paths = (HLTZEROBIASSIGSDPath),
292  content = skimRecoContent.outputCommands,
293  selectEvents = cms.untracked.PSet(),
294  dataTier = cms.untracked.string('RAW') # for the moment, it could be DIGI in the future
295  )
296 
297 ####################
298 
299 
300 
301 ## exo skims
302 """
303 from SUSYBSMAnalysis.Skimming.EXOLLResSkim_cff import *
304 exoLLResmmPath = cms.Path(exoLLResdiMuonSequence)
305 exoLLReseePath = cms.Path(exoLLResdiElectronSequence)
306 exoLLResemPath = cms.Path(exoLLResEleMuSequence)
307 SKIMStreamEXOLLRes = cms.FilteredStream(
308  responsible = 'EXO',
309  name = 'EXOLLRes',
310  paths = (exoLLResmmPath,exoLLReseePath,exoLLResemPath),
311  content = skimAodContent.outputCommands,
312  selectEvents = cms.untracked.PSet(),
313  dataTier = cms.untracked.string('AOD')
314  )
315 
316 from SUSYBSMAnalysis.Skimming.EXOEle_cff import *
317 exoElePath = cms.Path(exoEleLowetSeqReco)
318 SKIMStreamEXOEle = cms.FilteredStream(
319  responsible = 'EXO',
320  name = 'EXOEle',
321  paths = (exoElePath),
322  content = skimAodContent.outputCommands,
323  selectEvents = cms.untracked.PSet(),
324  dataTier = cms.untracked.string('AOD')
325  )
326 
327 from SUSYBSMAnalysis.Skimming.EXOMu_cff import *
328 exoMuPath = cms.Path(exoMuSequence)
329 SKIMStreamEXOMu = cms.FilteredStream(
330  responsible = 'EXO',
331  name = "EXOMu",
332  paths = (exoMuPath),
333  content = skimAodContent.outputCommands,
334  selectEvents = cms.untracked.PSet(),
335  dataTier = cms.untracked.string('AOD')
336  )
337 
338 from SUSYBSMAnalysis.Skimming.EXOTriLepton_cff import *
339 exoTriMuPath = cms.Path(exoTriMuonSequence)
340 SKIMStreamEXOTriMu = cms.FilteredStream(
341  responsible = 'EXO',
342  name = 'EXOTriMu',
343  paths = (exoTriMuPath),
344  content = skimAodContent.outputCommands,
345  selectEvents = cms.untracked.PSet(),
346  dataTier = cms.untracked.string('AOD')
347  )
348 exoTriElePath = cms.Path(exoTriElectronSequence)
349 SKIMStreamEXOTriEle = cms.FilteredStream(
350  responsible = 'EXO',
351  name = 'EXOTriEle',
352  paths = (exoTriElePath),
353  content = skimAodContent.outputCommands,
354  selectEvents = cms.untracked.PSet(),
355  dataTier = cms.untracked.string('AOD')
356  )
357 exo1E2MuPath = cms.Path(exo1E2MuSequence)
358 SKIMStreamEXO1E2Mu = cms.FilteredStream(
359  responsible = 'EXO',
360  name = 'EXO1E2Mu',
361  paths = (exo1E2MuPath),
362  content = skimAodContent.outputCommands,
363  selectEvents = cms.untracked.PSet(),
364  dataTier = cms.untracked.string('AOD')
365  )
366 
367 from SUSYBSMAnalysis.Skimming.EXODiLepton_cff import *
368 exoDiMuPath = cms.Path(exoDiMuSequence)
369 exoDiElePath = cms.Path(exoDiMuSequence)
370 exoEMuPath = cms.Path(exoEMuSequence)
371 SKIMStreamEXODiMu = cms.FilteredStream(
372  responsible = 'EXO',
373  name = 'EXODiMu',
374  paths = (exoDiMuPath),
375  content = skimAodContent.outputCommands,
376  selectEvents = cms.untracked.PSet(),
377  dataTier = cms.untracked.string('AOD')
378  )
379 SKIMStreamEXODiEle = cms.FilteredStream(
380  responsible = 'EXO',
381  name = 'EXODiEle',
382  paths = (exoDiElePath),
383  content = skimAodContent.outputCommands,
384  selectEvents = cms.untracked.PSet(),
385  dataTier = cms.untracked.string('AOD')
386  )
387 SKIMStreamEXOEMu = cms.FilteredStream(
388  responsible = 'EXO',
389  name = 'EXOEMu',
390  paths = (exoEMuPath),
391  content = skimAodContent.outputCommands,
392  selectEvents = cms.untracked.PSet(),
393  dataTier = cms.untracked.string('AOD')
394  )
395 """
396 
397 #####################
398 
400 MuonPOGSkimTrackPath = cms.Path(MuonPOGSkimTrackSequence)
401 MuonPOGSkimSTAPath = cms.Path(MuonPOGSkimSTASequence)
402 SKIMStreamMuonPOGSkim = cms.FilteredStream(
403  responsible = 'PDWG',
404  name = 'MuonPOGSkim',
405  paths = (MuonPOGSkimTrackPath,MuonPOGSkimSTAPath),
406  content = MuonPOG_EventContent.outputCommands,
407  selectEvents = cms.untracked.PSet(),
408  dataTier = cms.untracked.string('USER')
409  )
410 
411 
412 MuonPOGJPsiSkimTrackPath = cms.Path(MuonPOGJPsiSkimTrackSequence)
413 MuonPOGJPsiSkimSTAPath = cms.Path(MuonPOGJPsiSkimSTASequence)
414 
415 SKIMStreamMuonPOGJPsiSkim = cms.FilteredStream(
416  responsible = 'PDWG',
417  name = 'MuonPOGJPsiSkim',
418  paths = (MuonPOGJPsiSkimTrackPath,MuonPOGJPsiSkimSTAPath),
419  content = MuonPOG_EventContent.outputCommands,
420  selectEvents = cms.untracked.PSet(),
421  dataTier = cms.untracked.string('USER')
422  )
423 
424 
425 #####################
event splitting special skims
DPG skims ###.