00001 import FWCore.ParameterSet.Config as cms
00002
00003 process = cms.Process("SKIM")
00004
00005 process.configurationMetadata = cms.untracked.PSet(
00006 version = cms.untracked.string('$Revision: 1.7 $'),
00007 name = cms.untracked.string('$Source: /local/reps/CMSSW/CMSSW/DPGAnalysis/Skims/python/CosmicsPDSkim_cfg.py,v $'),
00008 annotation = cms.untracked.string('Combined Cosmics skim')
00009 )
00010
00011
00012
00013
00014
00015
00016
00017
00018 process.source = cms.Source("PoolSource",
00019 fileNames = cms.untracked.vstring(
00020 '/store/data/BeamCommissioning09/Cosmics/RECO/v2/000/123/596/FC5C3B0F-8AE2-DE11-A905-003048D37456.root'),
00021 secondaryFileNames = cms.untracked.vstring(
00022 '/store/data/BeamCommissioning09/Cosmics/RAW/v1/000/123/596/8E21B4C8-74E2-DE11-ABAA-000423D999CA.root')
00023 )
00024
00025 process.source.inputCommands = cms.untracked.vstring("keep *", "drop *_MEtoEDMConverter_*_*")
00026
00027 process.maxEvents = cms.untracked.PSet(
00028 input = cms.untracked.int32(1000)
00029 )
00030
00031
00032
00033
00034
00035
00036 process.load('Configuration/StandardSequences/MagneticField_AutoFromDBCurrent_cff')
00037 process.load('Configuration/StandardSequences/GeometryIdeal_cff')
00038
00039
00040 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
00041 process.GlobalTag.globaltag = 'GR10_P_V8::All'
00042
00043 process.load("Configuration/StandardSequences/RawToDigi_Data_cff")
00044 process.load("Configuration/StandardSequences/ReconstructionCosmics_cff")
00045 process.load('Configuration/EventContent/EventContentCosmics_cff')
00046
00047
00048
00049
00050 process.cosmicMuonsBarrelOnlyFilter = cms.EDFilter("HLTMuonPointingFilter",
00051 SALabel = cms.string("cosmicMuonsBarrelOnly"),
00052 PropagatorName = cms.string("SteppingHelixPropagatorAny"),
00053 radius = cms.double(10.0),
00054 maxZ = cms.double(50.0),
00055 saveTags = cms.bool(False)
00056 )
00057
00058 process.cosmicMuonsFilter = cms.EDFilter("HLTMuonPointingFilter",
00059 SALabel = cms.string("cosmicMuons"),
00060 PropagatorName = cms.string("SteppingHelixPropagatorAny"),
00061 radius = cms.double(10.0),
00062 maxZ = cms.double(50.0),
00063 saveTags = cms.bool(False)
00064 )
00065
00066 process.cosmicMuons1LegFilter = cms.EDFilter("HLTMuonPointingFilter",
00067 SALabel = cms.string("cosmicMuons1Leg"),
00068 PropagatorName = cms.string("SteppingHelixPropagatorAny"),
00069 radius = cms.double(10.0),
00070 maxZ = cms.double(50.0),
00071 saveTags = cms.bool(False)
00072 )
00073
00074 process.globalCosmicMuonsBarrelOnlyFilter = cms.EDFilter("HLTMuonPointingFilter",
00075 SALabel = cms.string("globalCosmicMuonsBarrelOnly"),
00076 PropagatorName = cms.string("SteppingHelixPropagatorAny"),
00077 radius = cms.double(10.0),
00078 maxZ = cms.double(50.0),
00079 saveTags = cms.bool(False)
00080 )
00081
00082 process.cosmictrackfinderP5Filter = cms.EDFilter("HLTMuonPointingFilter",
00083 SALabel = cms.string("cosmictrackfinderP5"),
00084 PropagatorName = cms.string("SteppingHelixPropagatorAny"),
00085 radius = cms.double(10.0),
00086 maxZ = cms.double(50.0),
00087 saveTags = cms.bool(False)
00088 )
00089
00090 process.globalCosmicMuonsFilter = cms.EDFilter("HLTMuonPointingFilter",
00091 SALabel = cms.string("globalCosmicMuons"),
00092 PropagatorName = cms.string("SteppingHelixPropagatorAny"),
00093 radius = cms.double(10.0),
00094 maxZ = cms.double(50.0),
00095 saveTags = cms.bool(False)
00096 )
00097
00098 process.rsWithMaterialTracksP5Filter = cms.EDFilter("HLTMuonPointingFilter",
00099 SALabel = cms.string("rsWithMaterialTracksP5"),
00100 PropagatorName = cms.string("SteppingHelixPropagatorAny"),
00101 radius = cms.double(10.0),
00102 maxZ = cms.double(50.0),
00103 saveTags = cms.bool(False)
00104 )
00105
00106 process.globalCosmicMuons1LegFilter = cms.EDFilter("HLTMuonPointingFilter",
00107 SALabel = cms.string("globalCosmicMuons1Leg"),
00108 PropagatorName = cms.string("SteppingHelixPropagatorAny"),
00109 radius = cms.double(10.0),
00110 maxZ = cms.double(50.0),
00111 saveTags = cms.bool(False)
00112 )
00113
00114 process.ctfWithMaterialTracksP5Filter = cms.EDFilter("HLTMuonPointingFilter",
00115 SALabel = cms.string("ctfWithMaterialTracksP5"),
00116 PropagatorName = cms.string("SteppingHelixPropagatorAny"),
00117 radius = cms.double(10.0),
00118 maxZ = cms.double(50.0),
00119 saveTags = cms.bool(False)
00120 )
00121
00122
00123 process.cosmicMuonsBarrelOnlyPath = cms.Path(process.cosmicMuonsBarrelOnlyFilter)
00124 process.cosmicMuonsPath = cms.Path(process.cosmicMuonsFilter)
00125 process.cosmicMuons1LegPath = cms.Path(process.cosmicMuons1LegFilter)
00126 process.globalCosmicMuonsBarrelOnlyPath = cms.Path(process.globalCosmicMuonsBarrelOnlyFilter)
00127 process.cosmictrackfinderP5Path = cms.Path(process.cosmictrackfinderP5Filter)
00128 process.globalCosmicMuonsPath = cms.Path(process.globalCosmicMuonsFilter)
00129 process.rsWithMaterialTracksP5Path = cms.Path(process.rsWithMaterialTracksP5Filter)
00130 process.globalCosmicMuons1LegPath = cms.Path(process.globalCosmicMuons1LegFilter)
00131 process.ctfWithMaterialTracksP5Path = cms.Path(process.ctfWithMaterialTracksP5Filter)
00132
00133
00134
00135 process.outSP = cms.OutputModule("PoolOutputModule",
00136 outputCommands = cms.untracked.vstring('keep *','drop *_MEtoEDMConverter_*_*'),
00137 SelectEvents = cms.untracked.PSet(SelectEvents = cms.vstring('cosmicMuonsBarrelOnlyPath',
00138 'cosmicMuonsPath',
00139 'cosmicMuons1LegPath',
00140 'globalCosmicMuonsBarrelOnlyPath',
00141 'cosmictrackfinderP5Path',
00142 'globalCosmicMuonsPath',
00143 'rsWithMaterialTracksP5Path',
00144 'globalCosmicMuons1LegPath',
00145 'ctfWithMaterialTracksP5Path')),
00146 dataset = cms.untracked.PSet(
00147 dataTier = cms.untracked.string('RAW-RECO'),
00148 filterName = cms.untracked.string('SuperPointing')),
00149 fileName = cms.untracked.string('SuperPointing.root')
00150 )
00151
00152
00153
00154
00155
00156 process.load("DPGAnalysis/Skims/CSCSkim_cfi")
00157
00158
00159
00160 process.cscSkim.minimumSegments = 1
00161 process.cscSkim.minimumHitChambers = 1
00162
00163
00164 process.hltBeamHalo = cms.EDFilter("HLTHighLevel",
00165 TriggerResultsTag = cms.InputTag("TriggerResults","","HLT"),
00166 HLTPaths = cms.vstring('HLT_CSCBeamHalo','HLT_CSCBeamHaloOverlapRing1','HLT_CSCBeamHaloOverlapRing','HLT_CSCBeamHaloRing2or3'),
00167 eventSetupPathsKey = cms.string(''),
00168 andOr = cms.bool(True),
00169 throw = cms.bool(False),
00170 saveTags = cms.bool(False)
00171 )
00172
00173
00174 process.cscHaloSkim = cms.Path(process.hltBeamHalo+process.cscSkim)
00175
00176
00177
00178 process.outputBeamHaloSkim = cms.OutputModule("PoolOutputModule",
00179 outputCommands = cms.untracked.vstring('keep *','drop *_MEtoEDMConverter_*_*'),
00180 fileName = cms.untracked.string("cscskimEvents.root"),
00181 dataset = cms.untracked.PSet(
00182 dataTier = cms.untracked.string('RAW-RECO'),
00183 filterName = cms.untracked.string('CSCSkim_BeamHalo_Cosmics')
00184 ),
00185 SelectEvents = cms.untracked.PSet(SelectEvents = cms.vstring('cscHaloSkim'))
00186 )
00187
00188
00189
00190 process.load("FWCore.Modules.logErrorFilter_cfi")
00191 from Configuration.StandardSequences.RawToDigi_Data_cff import gtEvmDigis
00192
00193 process.gtEvmDigis = gtEvmDigis.clone()
00194 process.stableBeam = cms.EDFilter("HLTBeamModeFilter",
00195 L1GtEvmReadoutRecordTag = cms.InputTag("gtEvmDigis"),
00196 AllowedBeamMode = cms.vuint32(11),
00197 saveTags = cms.bool(False)
00198 )
00199
00200 process.logerrorpath=cms.Path(process.gtEvmDigis+process.stableBeam+process.logErrorFilter)
00201
00202 process.outlogerr = cms.OutputModule("PoolOutputModule",
00203 outputCommands = process.FEVTEventContent.outputCommands,
00204 fileName = cms.untracked.string('/tmp/azzi/logerror_filter.root'),
00205 dataset = cms.untracked.PSet(
00206 dataTier = cms.untracked.string('RAW-RECO'),
00207 filterName = cms.untracked.string('Skim_logerror')),
00208
00209 SelectEvents = cms.untracked.PSet(
00210 SelectEvents = cms.vstring("logerrorpath")
00211 ))
00212
00213
00214
00215 process.options = cms.untracked.PSet(
00216 wantSummary = cms.untracked.bool(True)
00217 )
00218
00219 process.outpath = cms.EndPath(process.outSP+process.outputBeamHaloSkim+process.outlogerr)
00220
00221
00222
00223
00224