CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 #####################
16 # event splitting special skims
17 
18 # select events 1, 5, 9, ...
19 evtSplit_Prescaler_P1 = cms.EDFilter("Prescaler",
20  prescaleFactor = cms.int32(4),
21  prescaleOffset = cms.int32(1)
22 )
23 # select events 2, 6, 10, ...
24 evtSplit_Prescaler_P2 = cms.EDFilter("Prescaler",
25  prescaleFactor = cms.int32(4),
26  prescaleOffset = cms.int32(2)
27 )
28 # select events 3, 7, 11, ...
29 evtSplit_Prescaler_P3 = cms.EDFilter("Prescaler",
30  prescaleFactor = cms.int32(4),
31  prescaleOffset = cms.int32(3)
32 )
33 # select events 4, 8, 12, ...
34 evtSplit_Prescaler_P4 = cms.EDFilter("Prescaler",
35  prescaleFactor = cms.int32(4),
36  prescaleOffset = cms.int32(0)
37 )
38 
39 evtSplit_SkimPath_P1 = cms.Path(evtSplit_Prescaler_P1)
40 evtSplit_SkimPath_P2 = cms.Path(evtSplit_Prescaler_P2)
41 evtSplit_SkimPath_P3 = cms.Path(evtSplit_Prescaler_P3)
42 evtSplit_SkimPath_P4 = cms.Path(evtSplit_Prescaler_P4)
43 
44 SKIMStreamevtSplitSkimP1 = cms.FilteredStream(
45  responsible = 'PDWG',
46  name = 'evtSplitSkimP1',
47  paths = (evtSplit_SkimPath_P1),
48  content = skimRawContent.outputCommands,
49  selectEvents = cms.untracked.PSet(),
50  dataTier = cms.untracked.string('RAW')
51  )
52 SKIMStreamevtSplitSkimP2 = cms.FilteredStream(
53  responsible = 'PDWG',
54  name = 'evtSplitSkimP2',
55  paths = (evtSplit_SkimPath_P2),
56  content = skimRawContent.outputCommands,
57  selectEvents = cms.untracked.PSet(),
58  dataTier = cms.untracked.string('RAW')
59  )
60 SKIMStreamevtSplitSkimP3 = cms.FilteredStream(
61  responsible = 'PDWG',
62  name = 'evtSplitSkimP3',
63  paths = (evtSplit_SkimPath_P3),
64  content = skimRawContent.outputCommands,
65  selectEvents = cms.untracked.PSet(),
66  dataTier = cms.untracked.string('RAW')
67  )
68 SKIMStreamevtSplitSkimP4 = cms.FilteredStream(
69  responsible = 'PDWG',
70  name = 'evtSplitSkimP4',
71  paths = (evtSplit_SkimPath_P4),
72  content = skimRawContent.outputCommands,
73  selectEvents = cms.untracked.PSet(),
74  dataTier = cms.untracked.string('RAW')
75  )
76 
77 #####################
78 
80 BPHSkimPath = cms.Path(BPHSkimSequence)
81 SKIMStreamBPHSkim = cms.FilteredStream(
82  responsible = 'PDWG',
83  name = 'BPHSkim',
84  paths = (BPHSkimPath),
85  content = BPHSkim_EventContent.outputCommands,
86  selectEvents = cms.untracked.PSet(),
87  dataTier = cms.untracked.string('USER')
88  )
89 
90 #####################
91 
93 diJetAveSkimPath = cms.Path(DiJetAveSkim_Trigger)
94 SKIMStreamDiJet = cms.FilteredStream(
95  responsible = 'PDWG',
96  name = 'DiJet',
97  paths = (diJetAveSkimPath),
98  content = DiJetAveSkim_EventContent.outputCommands,
99  selectEvents = cms.untracked.PSet(),
100  dataTier = cms.untracked.string('USER')
101  )
102 
103 #####################
104 
106 tauSkimBy1Path = cms.Path( tauSkim1Sequence )
107 tauSkimBy2Path = cms.Path( tauSkim2Sequence )
108 SKIMStreamTau = cms.FilteredStream(
109  responsible = 'PDWG',
110  name = 'Tau',
111  paths = (tauSkimBy1Path),
112  content = skimContent.outputCommands,
113  selectEvents = cms.untracked.PSet(),
114  dataTier = cms.untracked.string('RAW-RECO')
115  )
116 SKIMStreamDiTau = cms.FilteredStream(
117  responsible = 'PDWG',
118  name = 'Tau',
119  paths = (tauSkimBy2Path),
120  content = skimContent.outputCommands,
121  selectEvents = cms.untracked.PSet(),
122  dataTier = cms.untracked.string('RAW-RECO')
123  )
124 
125 
126 #####################
127 
129 HSCPSDPath = cms.Path(HSCPSD)
130 SKIMStreamHSCPSD = cms.FilteredStream(
131  responsible = 'PDWG',
132  name = 'HSCPSD',
133  paths = (HSCPSDPath),
134  content = skimRecoContent.outputCommands,
135  selectEvents = cms.untracked.PSet(),
136  dataTier = cms.untracked.string('RECO')
137  )
138 
139 #####################
140 
142 CaloIdIsoPhotonPairsPath = cms.Path(CaloIdIsoPhotonPairsFilter)
143 R9IdPhotonPairsPath = cms.Path(R9IdPhotonPairsFilter)
144 MixedCaloR9IdPhotonPairsPath = cms.Path(MixedCaloR9IdPhotonPairsFilter)
145 MixedR9CaloIdPhotonPairsPath = cms.Path(MixedR9CaloIdPhotonPairsFilter)
146 
147 SKIMStreamDiPhoton = cms.FilteredStream(
148  responsible = 'PDWG',
149  name = 'DiPhoton',
150  paths = (CaloIdIsoPhotonPairsPath,R9IdPhotonPairsPath,MixedCaloR9IdPhotonPairsPath,MixedR9CaloIdPhotonPairsPath),
151  content = skimContent.outputCommands,
152  selectEvents = cms.untracked.PSet(),
153  dataTier = cms.untracked.string('RAW-RECO')
154  )
155 
156 
157 from Configuration.EventContent.EventContent_cff import AODEventContent
158 skimAodContent = AODEventContent.clone()
159 skimAodContent.outputCommands.append("drop *_MEtoEDMConverter_*_*")
160 skimAodContent.outputCommands.append("drop *_*_*_SKIM")
161 
162 #from Configuration.Skimming.PDWG_DoublePhotonSkim_cff import *
163 #diphotonSkimPath = cms.Path(diphotonSkimSequence)
164 #SKIMStreamDoublePhoton = cms.FilteredStream(
165 # responsible = 'PDWG',
166 # name = 'DoublePhoton',
167 # paths = (diphotonSkimPath),
168 # content = skimAodContent.outputCommands,
169 # selectEvents = cms.untracked.PSet(),
170 # dataTier = cms.untracked.string('AOD')
171 # )
172 
174 EXOHSCPPath = cms.Path(exoticaHSCPSeq)
175 SKIMStreamEXOHSCP = cms.FilteredStream(
176  responsible = 'PDWG',
177  name = 'EXOHSCP',
178  paths = (EXOHSCPPath),
179  content = EXOHSCPSkim_EventContent.outputCommands,
180  selectEvents = cms.untracked.PSet(),
181  dataTier = cms.untracked.string('USER')
182  )
183 
185 HWWmmPath = cms.Path(diMuonSequence)
186 HWWeePath = cms.Path(diElectronSequence)
187 HWWemPath = cms.Path(EleMuSequence)
188 SKIMStreamHWW = cms.FilteredStream(
189  responsible = 'PDWG',
190  name = 'HWW',
191  paths = (HWWmmPath,HWWeePath,HWWemPath),
192  content = skimAodContent.outputCommands,
193  selectEvents = cms.untracked.PSet(),
194  dataTier = cms.untracked.string('AOD')
195  )
196 
197 
199 HZZmmPath = cms.Path(zzdiMuonSequence)
200 HZZeePath = cms.Path(zzdiElectronSequence)
201 HZZemPath = cms.Path(zzeleMuSequence)
202 SKIMStreamHZZ = cms.FilteredStream(
203  responsible = 'PDWG',
204  name = 'HZZ',
205  paths = (HZZmmPath,HZZeePath,HZZemPath),
206  content = skimAodContent.outputCommands,
207  selectEvents = cms.untracked.PSet(),
208  dataTier = cms.untracked.string('AOD')
209  )
210 
211 
213 exoHPTEPath = cms.Path(exoDiHPTESequence)
214 SKIMStreamEXOHPTE = cms.FilteredStream(
215  responsible = 'PDWG',
216  name = 'EXOHPTE',
217  paths = (exoHPTEPath),
218  content = skimAodContent.outputCommands,
219  selectEvents = cms.untracked.PSet(),
220  dataTier = cms.untracked.string('AOD')
221  )
222 
224 EXOMONOPOLEPath = cms.Path(EXOMonopoleSkimSequence)
225 SKIMStreamEXOMONOPOLE = cms.FilteredStream(
226  responsible = 'PDWG',
227  name = 'EXOMONOPOLE',
228  paths = (EXOMONOPOLEPath),
229  content = EXOMonopoleSkimContent.outputCommands,
230  selectEvents = cms.untracked.PSet(),
231  dataTier = cms.untracked.string('USER')
232  )
233 
234 #####################
235 # For the Data on Data Mixing in TSG
236 from HLTrigger.Configuration.HLT_Fake1_cff import fragment as _fragment
237 if "hltGtDigis" in _fragment.__dict__:
238  hltGtDigis = _fragment.hltGtDigis.clone()
239  hltGtDigisPath = cms.Path(hltGtDigis)
240 else:
241  hltBoolEnd = _fragmet.hltBoolEnd.clone()
242  hltGtDigisPath = cms.Path(hltBoolEnd)
243 
244 # The events to be used as PileUp
246 HLTZEROBIASPUSDPath = cms.Path(HLTZEROBIASPUSD)
247 SKIMStreamHLTZEROBIASPUSD = cms.FilteredStream(
248  responsible = 'PDWG',
249  name = 'HLTZEROBIASPUSD',
250  paths = (HLTZEROBIASPUSDPath),
251  content = skimRecoContent.outputCommands,
252  selectEvents = cms.untracked.PSet(),
253  dataTier = cms.untracked.string('RAW') # for the moment, it could be DIGI in the future
254  )
255 
256 #The events to be used as signal
258 HLTZEROBIASSIGSDPath = cms.Path(HLTZEROBIASSIGSD)
259 SKIMStreamHLTZEROBIASSIGSD = cms.FilteredStream(
260  responsible = 'PDWG',
261  name = 'HLTZEROBIASSIGSD',
262  paths = (HLTZEROBIASSIGSDPath),
263  content = skimRecoContent.outputCommands,
264  selectEvents = cms.untracked.PSet(),
265  dataTier = cms.untracked.string('RAW') # for the moment, it could be DIGI in the future
266  )
267 
268 ####################
269 
270 
271 
272 ## exo skims
273 """
274 from SUSYBSMAnalysis.Skimming.EXOLLResSkim_cff import *
275 exoLLResmmPath = cms.Path(exoLLResdiMuonSequence)
276 exoLLReseePath = cms.Path(exoLLResdiElectronSequence)
277 exoLLResemPath = cms.Path(exoLLResEleMuSequence)
278 SKIMStreamEXOLLRes = cms.FilteredStream(
279  responsible = 'EXO',
280  name = 'EXOLLRes',
281  paths = (exoLLResmmPath,exoLLReseePath,exoLLResemPath),
282  content = skimAodContent.outputCommands,
283  selectEvents = cms.untracked.PSet(),
284  dataTier = cms.untracked.string('AOD')
285  )
286 
287 from SUSYBSMAnalysis.Skimming.EXOEle_cff import *
288 exoElePath = cms.Path(exoEleLowetSeqReco)
289 SKIMStreamEXOEle = cms.FilteredStream(
290  responsible = 'EXO',
291  name = 'EXOEle',
292  paths = (exoElePath),
293  content = skimAodContent.outputCommands,
294  selectEvents = cms.untracked.PSet(),
295  dataTier = cms.untracked.string('AOD')
296  )
297 
298 from SUSYBSMAnalysis.Skimming.EXOMu_cff import *
299 exoMuPath = cms.Path(exoMuSequence)
300 SKIMStreamEXOMu = cms.FilteredStream(
301  responsible = 'EXO',
302  name = "EXOMu",
303  paths = (exoMuPath),
304  content = skimAodContent.outputCommands,
305  selectEvents = cms.untracked.PSet(),
306  dataTier = cms.untracked.string('AOD')
307  )
308 
309 from SUSYBSMAnalysis.Skimming.EXOTriLepton_cff import *
310 exoTriMuPath = cms.Path(exoTriMuonSequence)
311 SKIMStreamEXOTriMu = cms.FilteredStream(
312  responsible = 'EXO',
313  name = 'EXOTriMu',
314  paths = (exoTriMuPath),
315  content = skimAodContent.outputCommands,
316  selectEvents = cms.untracked.PSet(),
317  dataTier = cms.untracked.string('AOD')
318  )
319 exoTriElePath = cms.Path(exoTriElectronSequence)
320 SKIMStreamEXOTriEle = cms.FilteredStream(
321  responsible = 'EXO',
322  name = 'EXOTriEle',
323  paths = (exoTriElePath),
324  content = skimAodContent.outputCommands,
325  selectEvents = cms.untracked.PSet(),
326  dataTier = cms.untracked.string('AOD')
327  )
328 exo1E2MuPath = cms.Path(exo1E2MuSequence)
329 SKIMStreamEXO1E2Mu = cms.FilteredStream(
330  responsible = 'EXO',
331  name = 'EXO1E2Mu',
332  paths = (exo1E2MuPath),
333  content = skimAodContent.outputCommands,
334  selectEvents = cms.untracked.PSet(),
335  dataTier = cms.untracked.string('AOD')
336  )
337 
338 from SUSYBSMAnalysis.Skimming.EXODiLepton_cff import *
339 exoDiMuPath = cms.Path(exoDiMuSequence)
340 exoDiElePath = cms.Path(exoDiMuSequence)
341 exoEMuPath = cms.Path(exoEMuSequence)
342 SKIMStreamEXODiMu = cms.FilteredStream(
343  responsible = 'EXO',
344  name = 'EXODiMu',
345  paths = (exoDiMuPath),
346  content = skimAodContent.outputCommands,
347  selectEvents = cms.untracked.PSet(),
348  dataTier = cms.untracked.string('AOD')
349  )
350 SKIMStreamEXODiEle = cms.FilteredStream(
351  responsible = 'EXO',
352  name = 'EXODiEle',
353  paths = (exoDiElePath),
354  content = skimAodContent.outputCommands,
355  selectEvents = cms.untracked.PSet(),
356  dataTier = cms.untracked.string('AOD')
357  )
358 SKIMStreamEXOEMu = cms.FilteredStream(
359  responsible = 'EXO',
360  name = 'EXOEMu',
361  paths = (exoEMuPath),
362  content = skimAodContent.outputCommands,
363  selectEvents = cms.untracked.PSet(),
364  dataTier = cms.untracked.string('AOD')
365  )
366 """
DPG skims ###.