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 #####################
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 
223 #####################
224 # For the Data on Data Mixing in TSG
225 from HLTrigger.Configuration.HLT_Fake1_cff import fragment as _fragment
226 if "hltGtDigis" in _fragment.__dict__:
227  hltGtDigis = _fragment.hltGtDigis.clone()
228  hltGtDigisPath = cms.Path(hltGtDigis)
229 else:
230  hltBoolEnd = _fragmet.hltBoolEnd.clone()
231  hltGtDigisPath = cms.Path(hltBoolEnd)
232 
233 # The events to be used as PileUp
235 HLTZEROBIASPUSDPath = cms.Path(HLTZEROBIASPUSD)
236 SKIMStreamHLTZEROBIASPUSD = cms.FilteredStream(
237  responsible = 'PDWG',
238  name = 'HLTZEROBIASPUSD',
239  paths = (HLTZEROBIASPUSDPath),
240  content = skimRecoContent.outputCommands,
241  selectEvents = cms.untracked.PSet(),
242  dataTier = cms.untracked.string('RAW') # for the moment, it could be DIGI in the future
243  )
244 
245 #The events to be used as signal
247 HLTZEROBIASSIGSDPath = cms.Path(HLTZEROBIASSIGSD)
248 SKIMStreamHLTZEROBIASSIGSD = cms.FilteredStream(
249  responsible = 'PDWG',
250  name = 'HLTZEROBIASSIGSD',
251  paths = (HLTZEROBIASSIGSDPath),
252  content = skimRecoContent.outputCommands,
253  selectEvents = cms.untracked.PSet(),
254  dataTier = cms.untracked.string('RAW') # for the moment, it could be DIGI in the future
255  )
256 
257 ####################
258 
259 
260 
261 ## exo skims
262 """
263 from SUSYBSMAnalysis.Skimming.EXOLLResSkim_cff import *
264 exoLLResmmPath = cms.Path(exoLLResdiMuonSequence)
265 exoLLReseePath = cms.Path(exoLLResdiElectronSequence)
266 exoLLResemPath = cms.Path(exoLLResEleMuSequence)
267 SKIMStreamEXOLLRes = cms.FilteredStream(
268  responsible = 'EXO',
269  name = 'EXOLLRes',
270  paths = (exoLLResmmPath,exoLLReseePath,exoLLResemPath),
271  content = skimAodContent.outputCommands,
272  selectEvents = cms.untracked.PSet(),
273  dataTier = cms.untracked.string('AOD')
274  )
275 
276 from SUSYBSMAnalysis.Skimming.EXOEle_cff import *
277 exoElePath = cms.Path(exoEleLowetSeqReco)
278 SKIMStreamEXOEle = cms.FilteredStream(
279  responsible = 'EXO',
280  name = 'EXOEle',
281  paths = (exoElePath),
282  content = skimAodContent.outputCommands,
283  selectEvents = cms.untracked.PSet(),
284  dataTier = cms.untracked.string('AOD')
285  )
286 
287 from SUSYBSMAnalysis.Skimming.EXOMu_cff import *
288 exoMuPath = cms.Path(exoMuSequence)
289 SKIMStreamEXOMu = cms.FilteredStream(
290  responsible = 'EXO',
291  name = "EXOMu",
292  paths = (exoMuPath),
293  content = skimAodContent.outputCommands,
294  selectEvents = cms.untracked.PSet(),
295  dataTier = cms.untracked.string('AOD')
296  )
297 
298 from SUSYBSMAnalysis.Skimming.EXOTriLepton_cff import *
299 exoTriMuPath = cms.Path(exoTriMuonSequence)
300 SKIMStreamEXOTriMu = cms.FilteredStream(
301  responsible = 'EXO',
302  name = 'EXOTriMu',
303  paths = (exoTriMuPath),
304  content = skimAodContent.outputCommands,
305  selectEvents = cms.untracked.PSet(),
306  dataTier = cms.untracked.string('AOD')
307  )
308 exoTriElePath = cms.Path(exoTriElectronSequence)
309 SKIMStreamEXOTriEle = cms.FilteredStream(
310  responsible = 'EXO',
311  name = 'EXOTriEle',
312  paths = (exoTriElePath),
313  content = skimAodContent.outputCommands,
314  selectEvents = cms.untracked.PSet(),
315  dataTier = cms.untracked.string('AOD')
316  )
317 exo1E2MuPath = cms.Path(exo1E2MuSequence)
318 SKIMStreamEXO1E2Mu = cms.FilteredStream(
319  responsible = 'EXO',
320  name = 'EXO1E2Mu',
321  paths = (exo1E2MuPath),
322  content = skimAodContent.outputCommands,
323  selectEvents = cms.untracked.PSet(),
324  dataTier = cms.untracked.string('AOD')
325  )
326 
327 from SUSYBSMAnalysis.Skimming.EXODiLepton_cff import *
328 exoDiMuPath = cms.Path(exoDiMuSequence)
329 exoDiElePath = cms.Path(exoDiMuSequence)
330 exoEMuPath = cms.Path(exoEMuSequence)
331 SKIMStreamEXODiMu = cms.FilteredStream(
332  responsible = 'EXO',
333  name = 'EXODiMu',
334  paths = (exoDiMuPath),
335  content = skimAodContent.outputCommands,
336  selectEvents = cms.untracked.PSet(),
337  dataTier = cms.untracked.string('AOD')
338  )
339 SKIMStreamEXODiEle = cms.FilteredStream(
340  responsible = 'EXO',
341  name = 'EXODiEle',
342  paths = (exoDiElePath),
343  content = skimAodContent.outputCommands,
344  selectEvents = cms.untracked.PSet(),
345  dataTier = cms.untracked.string('AOD')
346  )
347 SKIMStreamEXOEMu = cms.FilteredStream(
348  responsible = 'EXO',
349  name = 'EXOEMu',
350  paths = (exoEMuPath),
351  content = skimAodContent.outputCommands,
352  selectEvents = cms.untracked.PSet(),
353  dataTier = cms.untracked.string('AOD')
354  )
355 """
event splitting special skims
DPG skims ###.