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.36 $'),
7 name = cms.untracked.string(
'$Source: /cvs/CMSSW/CMSSW/DPGAnalysis/Skims/python/MinBiasPDSkim_cfg.py,v $'),
8 annotation = cms.untracked.string(
'Combined MinBias skim')
33 process.source = cms.Source(
"PoolSource",
34 fileNames = cms.untracked.vstring(
36 '/store/data/Run2010A/MinimumBias/RECO/v1/000/136/066/18F6DB82-5566-DF11-B289-0030487CAF0E.root'),
37 secondaryFileNames = cms.untracked.vstring(
38 '/store/data/Run2010A/MinimumBias/RAW/v1/000/136/066/38D48BED-3C66-DF11-88A5-001D09F27003.root')
41 process.source.inputCommands = cms.untracked.vstring(
"keep *",
"drop *_MEtoEDMConverter_*_*")
43 process.maxEvents = cms.untracked.PSet(
44 input = cms.untracked.int32(-1)
51 process.load(
'Configuration/StandardSequences/MagneticField_AutoFromDBCurrent_cff')
52 process.load(
'Configuration/StandardSequences/GeometryIdeal_cff')
55 process.load(
"Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
56 process.GlobalTag.globaltag =
'GR_R_38X_V13::All' 58 process.load(
"Configuration/StandardSequences/RawToDigi_Data_cff")
59 process.load(
"Configuration/StandardSequences/Reconstruction_cff")
60 process.load(
'Configuration/EventContent/EventContent_cff')
63 process.FEVTEventContent.outputCommands.append(
"drop *_MEtoEDMConverter_*_*")
64 process.FEVTEventContent.outputCommands.append(
"drop *_*_*_SKIM")
69 process.load(
'L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskAlgoTrigConfig_cff')
70 process.load(
'L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskTechTrigConfig_cff')
71 process.load(
'HLTrigger/HLTfilters/hltLevel1GTSeed_cfi')
77 process.load(
"DPGAnalysis/Skims/CSCSkim_cfi")
81 process.cscSkim.minimumSegments = 1
82 process.cscSkim.minimumHitChambers = 1
85 process.hltBeamHalo = cms.EDFilter(
"HLTHighLevel",
86 TriggerResultsTag = cms.InputTag(
"TriggerResults",
"",
"HLT"),
87 HLTPaths = cms.vstring(
'HLT_CSCBeamHalo',
'HLT_CSCBeamHaloOverlapRing1',
'HLT_CSCBeamHaloOverlapRing',
'HLT_CSCBeamHaloRing2or3'),
88 eventSetupPathsKey = cms.string(
''),
89 andOr = cms.bool(
True),
90 throw = cms.bool(
False),
91 saveTags = cms.bool(
False)
95 process.cscHaloSkim = cms.Path(process.hltBeamHalo+process.cscSkim)
100 process.outputBeamHaloSkim = cms.OutputModule(
"PoolOutputModule",
101 outputCommands = process.FEVTEventContent.outputCommands,
102 fileName = cms.untracked.string(
"/tmp/azzi/MinBiascscskimEvents.root"),
103 dataset = cms.untracked.PSet(
104 dataTier = cms.untracked.string(
'RAW-RECO'),
105 filterName = cms.untracked.string(
'CSCSkim_BeamHalo_MinBias')
107 SelectEvents = cms.untracked.PSet(SelectEvents = cms.vstring(
'cscHaloSkim'))
112 process.muonSkim=cms.EDFilter(
"CandViewCountFilter",
113 src =cms.InputTag(
"muons"), minNumber = cms.uint32(1))
114 process.muonTracksSkim = cms.Path(process.muonSkim)
119 process.outputMuonSkim = cms.OutputModule(
"PoolOutputModule",
120 fileName = cms.untracked.string(
'/tmp/azzi/MuonSkim.root'),
121 outputCommands = cms.untracked.vstring(
'keep *',
'drop *_MEtoEDMConverter_*_*'),
122 dataset = cms.untracked.PSet(
123 dataTier = cms.untracked.string(
'RECO'),
124 filterName = cms.untracked.string(
'Muon_skim')),
125 SelectEvents = cms.untracked.PSet(
126 SelectEvents = cms.vstring(
"muonTracksSkim")
135 process.hltstoppedhscp = cms.EDFilter(
"HLTHighLevel",
136 TriggerResultsTag = cms.InputTag(
"TriggerResults",
"",
"HLT"),
137 HLTPaths = cms.vstring(
"HLT_StoppedHSCP*"),
138 eventSetupPathsKey = cms.string(
''),
139 andOr = cms.bool(
True),
140 throw = cms.bool(
False)
143 process.HSCP=cms.Path(process.hltstoppedhscp)
145 process.outHSCP = cms.OutputModule(
"PoolOutputModule",
146 outputCommands = process.FEVTEventContent.outputCommands,
147 fileName = cms.untracked.string(
'/tmp/azzi/StoppedHSCP_filter.root'),
148 dataset = cms.untracked.PSet(
149 dataTier = cms.untracked.string(
'RAW-RECO'),
150 filterName = cms.untracked.string(
'Skim_StoppedHSCP')),
152 SelectEvents = cms.untracked.PSet(
153 SelectEvents = cms.vstring(
"HSCP")
160 process.load(
'HLTrigger.special.hltPhysicsDeclared_cfi')
161 process.hltPhysicsDeclared.L1GtReadoutRecordTag =
'gtDigis' 163 process.hltbeamgas = cms.EDFilter(
"HLTHighLevel",
164 TriggerResultsTag = cms.InputTag(
"TriggerResults",
"",
"HLT"),
165 HLTPaths = cms.vstring(
'HLT_L1_BptxXOR_BscMinBiasOR'),
166 eventSetupPathsKey = cms.string(
''),
167 andOr = cms.bool(
True),
168 throw = cms.bool(
False),
169 saveTags = cms.bool(
False)
174 process.pfgskim3noncross = cms.Path(process.hltPhysicsDeclared*process.hltbeamgas)
177 process.outputpfgskim3 = cms.OutputModule(
"PoolOutputModule",
178 outputCommands = process.FEVTEventContent.outputCommands,
179 fileName = cms.untracked.string(
"/tmp/azzi/Background.root"),
180 dataset = cms.untracked.PSet(
181 dataTier = cms.untracked.string(
'RAW-RECO'),
182 filterName = cms.untracked.string(
'BEAMBKGV3')
184 SelectEvents = cms.untracked.PSet(SelectEvents = cms.vstring(
'pfgskim3noncross'))
193 process.load(
"FWCore.Modules.logErrorFilter_cfi")
196 process.gtEvmDigis = gtEvmDigis.clone()
197 process.stableBeam = cms.EDFilter(
"HLTBeamModeFilter",
198 L1GtEvmReadoutRecordTag = cms.InputTag(
"gtEvmDigis"),
199 AllowedBeamMode = cms.vuint32(11),
200 saveTags = cms.bool(
False)
203 process.logerrorpath=cms.Path(process.gtEvmDigis+process.stableBeam+process.logErrorFilter)
205 process.outlogerr = cms.OutputModule(
"PoolOutputModule",
206 outputCommands = process.FEVTEventContent.outputCommands,
207 fileName = cms.untracked.string(
'/tmp/azzi/logerror_filter.root'),
208 dataset = cms.untracked.PSet(
209 dataTier = cms.untracked.string(
'RAW-RECO'),
210 filterName = cms.untracked.string(
'Skim_logerror')),
212 SelectEvents = cms.untracked.PSet(
213 SelectEvents = cms.vstring(
"logerrorpath")
218 process.primaryVertexFilter = cms.EDFilter(
"VertexSelector",
219 src = cms.InputTag(
"offlinePrimaryVertices"),
220 cut = cms.string(
"!isFake && ndof > 4 && abs(z) <= 15 && position.Rho <= 2"),
221 filter = cms.bool(
True),
225 process.noscraping = cms.EDFilter(
"FilterOutScraping",
226 applyfilter = cms.untracked.bool(
True),
227 debugOn = cms.untracked.bool(
False),
228 numtrack = cms.untracked.uint32(10),
229 thresh = cms.untracked.double(0.25)
233 process.trackSelector =cms.EDFilter(
"TrackSelector",
234 src = cms.InputTag(
"generalTracks"),
235 cut = cms.string(
'quality("highPurity")')
243 process.trackFilter = cms.EDFilter(
"TrackCountFilter",
244 src = cms.InputTag(
"trackSelector"),
245 minNumber = cms.uint32(10)
248 process.nottoomanytracks = cms.EDFilter(
"NMaxPerLumi",
249 nMaxPerLumi = cms.uint32(8)
251 process.relvaltrackskim = cms.Path(process.primaryVertexFilter+process.noscraping+
252 process.trackSelector + process.trackFilter + process.nottoomanytracks )
255 process.muonSelector = cms.EDFilter(
"MuonSelector",
256 src = cms.InputTag(
"muons"),
257 cut = cms.string(
" isGlobalMuon && isTrackerMuon && pt > 3")
259 process.muonFilter = cms.EDFilter(
"MuonCountFilter",
260 src = cms.InputTag(
"muonSelector"),
261 minNumber = cms.uint32(1)
263 process.nottoomanymuons = cms.EDFilter(
"NMaxPerLumi",
264 nMaxPerLumi = cms.uint32(2)
266 process.relvalmuonskim = cms.Path(process.primaryVertexFilter+process.noscraping+
267 process.muonSelector + process.muonFilter + process.nottoomanymuons )
270 process.outputvalskim = cms.OutputModule(
"PoolOutputModule",
271 outputCommands = process.FEVTEventContent.outputCommands,
272 fileName = cms.untracked.string(
"/tmp/azzi/ValSkim.root"),
273 dataset = cms.untracked.PSet(
274 dataTier = cms.untracked.string(
'RAW-RECO'),
275 filterName = cms.untracked.string(
'valskim')
277 SelectEvents = cms.untracked.PSet(SelectEvents = cms.vstring(
'relvaltrackskim',
'relvalmuonskim')
284 process.load(
'DPGAnalysis/Skims/singleMuonSkim_cff')
285 process.load(
'DPGAnalysis/Skims/singleElectronSkim_cff')
286 process.load(
'DPGAnalysis/Skims/muonTagProbeFilters_cff')
287 process.load(
'DPGAnalysis/Skims/electronTagProbeFilters_cff')
288 process.load(
'DPGAnalysis/Skims/singlePhotonSkim_cff')
289 process.load(
'DPGAnalysis/Skims/jetSkim_cff')
290 process.load(
'DPGAnalysis/Skims/METSkim_cff')
291 process.load(
'DPGAnalysis/Skims/singlePfTauSkim_cff')
296 process.singleMuPt5SkimPath=cms.Path(process.singleMuPt5RecoQualitySeq)
300 process.singleElectronPt5SkimPath=cms.Path(process.singleElectronPt5RecoQualitySeq)
304 process.singlePhotonPt5SkimPath=cms.Path(process.singlePhotonPt5QualitySeq)
306 process.muonJPsiMMSkimPath=cms.Path(process.muonJPsiMMRecoQualitySeq)
308 process.jetSkimPath=cms.Path(process.jetRecoQualitySeq)
310 process.singlePfTauPt15SkimPath=cms.Path(process.singlePfTauPt15QualitySeq)
312 process.outTPGSkim = cms.OutputModule(
"PoolOutputModule",
313 outputCommands = process.FEVTHLTALLEventContent.outputCommands,
314 fileName = cms.untracked.string(
"/tmp/azzi/TPGSkim.root"),
315 dataset = cms.untracked.PSet(
316 dataTier = cms.untracked.string(
'USER'),
317 filterName = cms.untracked.string(
'TPGSkim')
319 SelectEvents = cms.untracked.PSet(SelectEvents = cms.vstring(
323 'singleMuPt5SkimPath',
327 'singleElectronPt5SkimPath',
331 'singlePhotonPt5SkimPath',
333 'muonJPsiMMSkimPath',
337 'singlePfTauPt15SkimPath'))
344 process.options = cms.untracked.PSet(
345 wantSummary = cms.untracked.bool(
True)
350 process.outpath = cms.EndPath(process.outputMuonSkim+process.outHSCP+process.outputpfgskim3+process.outlogerr+process.outputvalskim+process.outTPGSkim)