1 import FWCore.ParameterSet.Config
as cms
3 process = cms.Process(
"SKIM")
5 process.configurationMetadata = cms.untracked.PSet(
6 version = cms.untracked.string(
'$Revision: 1.1 $'),
7 name = cms.untracked.string(
'$Source: /cvs/CMSSW/CMSSW/DPGAnalysis/Skims/python/CosmicsPD_Skims.py,v $'),
8 annotation = cms.untracked.string(
'CRAFT Cosmics PD skim')
16 process.source = cms.Source(
"PoolSource",
17 fileNames = cms.untracked.vstring(
18 '/store/data/Commissioning09/Cosmics/RECO/v5/000/105/755/D266D139-D871-DE11-A709-001D09F28F0C.root',
19 '/store/data/Commissioning09/Cosmics/RECO/v5/000/105/755/CA27788D-E871-DE11-8B46-001D09F276CF.root',
20 '/store/data/Commissioning09/Cosmics/RECO/v5/000/105/755/AC5633B2-D471-DE11-9B3A-001D09F252F3.root',
21 '/store/data/Commissioning09/Cosmics/RECO/v5/000/105/755/9CD957E7-D071-DE11-B6AE-001D09F252F3.root',
22 '/store/data/Commissioning09/Cosmics/RECO/v5/000/105/755/94BF68F7-D171-DE11-902B-000423D986A8.root',
23 '/store/data/Commissioning09/Cosmics/RECO/v5/000/105/755/7838FE1E-C771-DE11-9FD5-000423D98950.root',
24 '/store/data/Commissioning09/Cosmics/RECO/v5/000/105/755/56632803-DD71-DE11-BAF5-000423D9870C.root',
25 '/store/data/Commissioning09/Cosmics/RECO/v5/000/105/755/42A67CB9-E971-DE11-AA86-001D09F252F3.root',
26 '/store/data/Commissioning09/Cosmics/RECO/v5/000/105/755/407225D3-D071-DE11-809B-001D09F297EF.root',
27 '/store/data/Commissioning09/Cosmics/RECO/v5/000/105/755/3E5E1CF0-D271-DE11-AC2B-000423D94700.root',
28 '/store/data/Commissioning09/Cosmics/RECO/v5/000/105/755/2C57E916-D071-DE11-AF0E-001D09F24E39.root',
29 '/store/data/Commissioning09/Cosmics/RECO/v5/000/105/755/228896A5-E571-DE11-A60B-001D09F2AF96.root'),
32 secondaryFileNames = cms.untracked.vstring(
33 '/store/data/Commissioning09/Cosmics/RAW/v3/000/105/755/F6887FD0-9371-DE11-B69E-00304879FBB2.root',
34 '/store/data/Commissioning09/Cosmics/RAW/v3/000/105/755/EEAF292E-9571-DE11-9A17-000423D94C68.root',
35 '/store/data/Commissioning09/Cosmics/RAW/v3/000/105/755/ECC04DEB-9071-DE11-9F3A-001D09F23174.root',
36 '/store/data/Commissioning09/Cosmics/RAW/v3/000/105/755/E8CE8710-9171-DE11-9211-000423D94534.root',
37 '/store/data/Commissioning09/Cosmics/RAW/v3/000/105/755/DEB9057C-9471-DE11-BAF5-000423D94524.root',
38 '/store/data/Commissioning09/Cosmics/RAW/v3/000/105/755/DC2A7158-A171-DE11-ACD3-001D09F24047.root',
39 '/store/data/Commissioning09/Cosmics/RAW/v3/000/105/755/D6E68664-9271-DE11-AE97-000423D9970C.root',
40 '/store/data/Commissioning09/Cosmics/RAW/v3/000/105/755/D2D94C9C-9171-DE11-AA96-000423D94AA8.root',
41 '/store/data/Commissioning09/Cosmics/RAW/v3/000/105/755/B045C7CB-9371-DE11-AF39-001D09F24489.root',
42 '/store/data/Commissioning09/Cosmics/RAW/v3/000/105/755/A2C791EF-9071-DE11-871D-001D09F2423B.root',
43 '/store/data/Commissioning09/Cosmics/RAW/v3/000/105/755/9E1A4336-9071-DE11-81BD-001D09F251B8.root',
44 '/store/data/Commissioning09/Cosmics/RAW/v3/000/105/755/8C28F89C-9171-DE11-B944-000423D9A2AE.root',
45 '/store/data/Commissioning09/Cosmics/RAW/v3/000/105/755/82A37610-9371-DE11-A293-000423D98B6C.root',
46 '/store/data/Commissioning09/Cosmics/RAW/v3/000/105/755/822D1510-9371-DE11-A329-000423D99A8E.root',
47 '/store/data/Commissioning09/Cosmics/RAW/v3/000/105/755/76515611-9371-DE11-8BF2-001D09F24024.root',
48 '/store/data/Commissioning09/Cosmics/RAW/v3/000/105/755/76434EA1-9171-DE11-B39F-000423D98E54.root',
49 '/store/data/Commissioning09/Cosmics/RAW/v3/000/105/755/6E1DB87B-9471-DE11-B4E8-000423D98B28.root',
50 '/store/data/Commissioning09/Cosmics/RAW/v3/000/105/755/6A15A1C7-9371-DE11-9ACB-0030487A18F2.root',
51 '/store/data/Commissioning09/Cosmics/RAW/v3/000/105/755/4E95107B-9471-DE11-9E86-000423D944F0.root',
52 '/store/data/Commissioning09/Cosmics/RAW/v3/000/105/755/42C723CA-9871-DE11-8614-000423D6B48C.root',
53 '/store/data/Commissioning09/Cosmics/RAW/v3/000/105/755/3E934456-9271-DE11-BA19-000423D99AA2.root',
54 '/store/data/Commissioning09/Cosmics/RAW/v3/000/105/755/3AF89B38-9371-DE11-AEE9-000423D33970.root',
55 '/store/data/Commissioning09/Cosmics/RAW/v3/000/105/755/2C696C5B-9271-DE11-BD57-000423D94990.root')
60 process.maxEvents = cms.untracked.PSet(
61 input = cms.untracked.int32(500)
64 process.options = cms.untracked.PSet(
65 wantSummary = cms.untracked.bool(
True)
71 process.load(
'Configuration/StandardSequences/MagneticField_AutoFromDBCurrent_cff')
72 process.load(
'Configuration/StandardSequences/GeometryIdeal_cff')
75 process.load(
"Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
76 process.GlobalTag.globaltag =
'CRAFT09_R_V4::All' 78 process.load(
"Configuration/StandardSequences/RawToDigi_Data_cff")
79 process.load(
"Configuration/StandardSequences/ReconstructionCosmics_cff")
81 process.load(
'Configuration/EventContent/EventContentCosmics_cff')
91 process.mySkim = cms.Path(process.cscSkim)
95 process.outputSkim = cms.OutputModule(
97 outputCommands = cms.untracked.vstring(
'keep *',
'drop *_MEtoEDMConverter_*_*'),
98 fileName = cms.untracked.string(
"cscskimEvents.root"),
99 dataset = cms.untracked.PSet(
100 dataTier = cms.untracked.string(
'RAW-RECO'),
101 filterName = cms.untracked.string(
'CSCSkim_trial')
103 SelectEvents = cms.untracked.PSet(SelectEvents = cms.vstring(
'mySkim'))
108 process.cscbfield=DPGAnalysis.Skims.CSCSkim_cfi.cscSkim.clone()
109 process.cscbfield.typeOfSkim = cms.untracked.int32(9)
113 process.BfieldStudySkim = cms.Path(process.cscbfield)
117 process.outputSkimBField = cms.OutputModule(
119 outputCommands = cms.untracked.vstring(
'keep *',
'drop *_MEtoEDMConverter_*_*'),
120 fileName = cms.untracked.string(
"CSCEvents_BFieldStudy.root"),
121 dataset = cms.untracked.PSet(
122 dataTier = cms.untracked.string(
'RAW-RECO'),
123 filterName = cms.untracked.string(
'CSCSkim_BFieldStudies')
125 SelectEvents = cms.untracked.PSet(SelectEvents = cms.vstring(
'BfieldStudySkim'))
132 process.cosmicMuonsBarrelOnlyFilter = cms.EDFilter(
"HLTMuonPointingFilter",
133 SALabel = cms.InputTag(
"cosmicMuonsBarrelOnly"),
134 PropagatorName = cms.string(
"SteppingHelixPropagatorAny"),
135 radius = cms.double(10.0),
136 maxZ = cms.double(50.0),
139 process.cosmicMuonsFilter = cms.EDFilter(
"HLTMuonPointingFilter",
140 SALabel = cms.InputTag(
"cosmicMuons"),
141 PropagatorName = cms.string(
"SteppingHelixPropagatorAny"),
142 radius = cms.double(10.0),
143 maxZ = cms.double(50.0),
146 process.cosmicMuons1LegFilter = cms.EDFilter(
"HLTMuonPointingFilter",
147 SALabel = cms.InputTag(
"cosmicMuons1Leg"),
148 PropagatorName = cms.string(
"SteppingHelixPropagatorAny"),
149 radius = cms.double(10.0),
150 maxZ = cms.double(50.0),
153 process.globalCosmicMuonsBarrelOnlyFilter = cms.EDFilter(
"HLTMuonPointingFilter",
154 SALabel = cms.InputTag(
"globalCosmicMuonsBarrelOnly"),
155 PropagatorName = cms.string(
"SteppingHelixPropagatorAny"),
156 radius = cms.double(10.0),
157 maxZ = cms.double(50.0),
160 process.cosmictrackfinderP5Filter = cms.EDFilter(
"HLTMuonPointingFilter",
161 SALabel = cms.InputTag(
"cosmictrackfinderP5"),
162 PropagatorName = cms.string(
"SteppingHelixPropagatorAny"),
163 radius = cms.double(10.0),
164 maxZ = cms.double(50.0),
167 process.globalCosmicMuonsFilter = cms.EDFilter(
"HLTMuonPointingFilter",
168 SALabel = cms.InputTag(
"globalCosmicMuons"),
169 PropagatorName = cms.string(
"SteppingHelixPropagatorAny"),
170 radius = cms.double(10.0),
171 maxZ = cms.double(50.0),
174 process.rsWithMaterialTracksP5Filter = cms.EDFilter(
"HLTMuonPointingFilter",
175 SALabel = cms.InputTag(
"rsWithMaterialTracksP5"),
176 PropagatorName = cms.string(
"SteppingHelixPropagatorAny"),
177 radius = cms.double(10.0),
178 maxZ = cms.double(50.0),
181 process.globalCosmicMuons1LegFilter = cms.EDFilter(
"HLTMuonPointingFilter",
182 SALabel = cms.InputTag(
"globalCosmicMuons1Leg"),
183 PropagatorName = cms.string(
"SteppingHelixPropagatorAny"),
184 radius = cms.double(10.0),
185 maxZ = cms.double(50.0),
188 process.ctfWithMaterialTracksP5Filter = cms.EDFilter(
"HLTMuonPointingFilter",
189 SALabel = cms.InputTag(
"ctfWithMaterialTracksP5"),
190 PropagatorName = cms.string(
"SteppingHelixPropagatorAny"),
191 radius = cms.double(10.0),
192 maxZ = cms.double(50.0),
196 process.cosmicMuonsBarrelOnlyPath = cms.Path(process.cosmicMuonsBarrelOnlyFilter)
197 process.cosmicMuonsPath = cms.Path(process.cosmicMuonsFilter)
198 process.cosmicMuons1LegPath = cms.Path(process.cosmicMuons1LegFilter)
199 process.globalCosmicMuonsBarrelOnlyPath = cms.Path(process.globalCosmicMuonsBarrelOnlyFilter)
200 process.cosmictrackfinderP5Path = cms.Path(process.cosmictrackfinderP5Filter)
201 process.globalCosmicMuonsPath = cms.Path(process.globalCosmicMuonsFilter)
202 process.rsWithMaterialTracksP5Path = cms.Path(process.rsWithMaterialTracksP5Filter)
203 process.globalCosmicMuons1LegPath = cms.Path(process.globalCosmicMuons1LegFilter)
204 process.ctfWithMaterialTracksP5Path = cms.Path(process.ctfWithMaterialTracksP5Filter)
208 process.outSP = cms.OutputModule(
"PoolOutputModule",
209 outputCommands = cms.untracked.vstring(
'keep *',
'drop *_MEtoEDMConverter_*_*'),
210 SelectEvents = cms.untracked.PSet(SelectEvents = cms.vstring(
'cosmicMuonsBarrelOnlyPath',
212 'cosmicMuons1LegPath',
213 'globalCosmicMuonsBarrelOnlyPath',
214 'cosmictrackfinderP5Path',
215 'globalCosmicMuonsPath',
216 'rsWithMaterialTracksP5Path',
217 'globalCosmicMuons1LegPath',
218 'ctfWithMaterialTracksP5Path')),
219 dataset = cms.untracked.PSet(
220 dataTier = cms.untracked.string(
'RAW-RECO'),
221 filterName = cms.untracked.string(
'SuperPointing')),
222 fileName = cms.untracked.string(
'/tmp/arizzi/superPointing.root')
226 process.cosmictrackfinderP5TkCntFilter = cms.EDFilter(
"TrackCountFilter",
227 src = cms.InputTag(
'cosmictrackfinderP5'),
228 minNumber = cms.uint32(1)
231 process.ctfWithMaterialTracksP5TkCntFilter = cms.EDFilter(
"TrackCountFilter",
232 src = cms.InputTag(
'ctfWithMaterialTracksP5'),
233 minNumber = cms.uint32(1)
236 process.rsWithMaterialTracksP5TkCntFilter = cms.EDFilter(
"TrackCountFilter",
237 src = cms.InputTag(
'rsWithMaterialTracksP5'),
238 minNumber = cms.uint32(1)
241 process.cosmicMuonsBarrelOnlyTkFilter = cms.EDFilter(
"HLTMuonPointingFilter",
242 SALabel = cms.InputTag(
"cosmicMuonsBarrelOnly"),
243 PropagatorName = cms.string(
"SteppingHelixPropagatorAny"),
244 radius = cms.double(90.0),
245 maxZ = cms.double(130.0)
248 process.cosmicMuonsBarrelOnlyTkPath = cms.Path(process.cosmicMuonsBarrelOnlyTkFilter)
249 process.cosmictrackfinderP5TkCntPath = cms.Path(process.cosmictrackfinderP5TkCntFilter)
250 process.ctfWithMaterialTracksP5TkCntPath = cms.Path(process.ctfWithMaterialTracksP5TkCntFilter)
251 process.rsWithMaterialTracksP5TkCntPath = cms.Path(process.rsWithMaterialTracksP5TkCntFilter)
254 process.outTP = cms.OutputModule(
"PoolOutputModule",
255 outputCommands = cms.untracked.vstring(
'keep *',
'drop *_MEtoEDMConverter_*_*'),
256 SelectEvents = cms.untracked.PSet(SelectEvents = cms.vstring(
'cosmicMuonsBarrelOnlyTkPath',
257 'cosmictrackfinderP5TkCntPath',
258 'ctfWithMaterialTracksP5TkCntPath',
259 'rsWithMaterialTracksP5TkCntPath')),
260 dataset = cms.untracked.PSet(
261 dataTier = cms.untracked.string(
'RAW-RECO'),
262 filterName = cms.untracked.string(
'TrackingPointing')),
263 fileName = cms.untracked.string(
'/tmp/arizzi/trackerPointing.root')
269 process.multiCosmicMuonFilter = cms.EDFilter(
"TrackCountFilter",
270 src = cms.InputTag(
'cosmicMuonsBarrelOnly'),
271 minNumber = cms.uint32(5)
274 process.multiLHCMuonFilter = cms.EDFilter(
"TrackCountFilter",
275 src = cms.InputTag(
'lhcStandAloneMuonsBarrelOnly'),
276 minNumber = cms.uint32(5)
279 process.multiCosmicMuonPath = cms.Path(process.multiCosmicMuonFilter)
280 process.multiLHCMuonPath = cms.Path(process.multiLHCMuonFilter)
282 process.outMM = cms.OutputModule(
"PoolOutputModule",
283 process.RECOEventContent,
284 SelectEvents = cms.untracked.PSet(SelectEvents = cms.vstring(
'multiCosmicMuonPath',
285 'multiLHCMuonPath')),
286 dataset = cms.untracked.PSet(
287 dataTier = cms.untracked.string(
'RECO'),
288 filterName = cms.untracked.string(
'multiCosmicMuon')),
289 fileName = cms.untracked.string(
'/tmp/arizzi/multiMuon.root')
292 process.outMM.outputCommands.append(
'drop *_MEtoEDMConverter_*_*')
298 import FWCore.ParameterSet.Config
as cms
299 import DPGAnalysis.Skims.HCALHighEnergyCombinedPath_cff
303 process.extend(DPGAnalysis.Skims.HCALHighEnergyCombinedPath_cff)
305 process.outHCAL = cms.OutputModule(
"PoolOutputModule",
306 outputCommands = cms.untracked.vstring(
'keep *',
'drop *_MEtoEDMConverter_*_*'),
307 SelectEvents = cms.untracked.PSet(
308 SelectEvents = cms.vstring(
"HCALHighEnergyPath")
310 dataset = cms.untracked.PSet(
311 dataTier = cms.untracked.string(
'RAW-RECO'),
312 filterName = cms.untracked.string(
'HCALHighEnergy')),
313 fileName = cms.untracked.string(
'/tmp/arizzi/HCALHighEnergy_filter.root')
317 process.skimming = cms.EDFilter(
"EcalSkim",
319 energyCutEB = cms.untracked.double(2.0),
320 energyCutEE = cms.untracked.double(2.0),
321 endcapClusterCollection = cms.InputTag(
"cosmicSuperClusters",
"CosmicEndcapSuperClusters"),
322 barrelClusterCollection = cms.InputTag(
"cosmicSuperClusters",
"CosmicBarrelSuperClusters")
324 process.ecalPath = cms.Path(process.skimming)
326 process.outECAL = cms.OutputModule(
"PoolOutputModule",
327 process.RECOEventContent,
328 fileName = cms.untracked.string(
'/tmp/arizzi/ecalSkim.root'),
329 dataset = cms.untracked.PSet(
330 dataTier = cms.untracked.string(
'RECO'),
331 filterName = cms.untracked.string(
'ecalSkim_fromRECO')),
332 SelectEvents = cms.untracked.PSet(
333 SelectEvents = cms.vstring(
'ecalPath')
337 process.outECAL.outputCommands.append(
'drop *_MEtoEDMConverter_*_*')
341 process.outHSCP = cms.OutputModule(
"PoolOutputModule",
342 outputCommands = cms.untracked.vstring(
'keep *',
'drop *_MEtoEDMConverter_*_*'),
343 SelectEvents = cms.untracked.PSet(
344 SelectEvents = cms.vstring(
"HLT_StoppedHSCP_*:HLT")
346 dataset = cms.untracked.PSet(
347 dataTier = cms.untracked.string(
'RAW-RECO'),
348 filterName = cms.untracked.string(
'StoppedHSCP')),
349 fileName = cms.untracked.string(
'/tmp/arizzi/StoppedHSCP_filter.root')
353 process.outpath = cms.EndPath(process.outSP+process.outTP+process.outMM+process.outputSkim+process.outputSkimBField+process.outHCAL+process.outECAL+process.outHSCP)