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.5 $'),
00007 name = cms.untracked.string('$Source: /cvs_server/repositories/CMSSW/CMSSW/DPGAnalysis/Skims/python/CommPDSkim_cfg.py,v $'),
00008 annotation = cms.untracked.string('Combined Commissioning skim')
00009 )
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 process.source = cms.Source("PoolSource",
00021 fileNames = cms.untracked.vstring('/store/data/Run2010A/Commissioning/RECO/v1/000/136/066/244E5A07-9466-DF11-9091-000423D95220.root'),
00022 secondaryFileNames = cms.untracked.vstring('/store/data/Run2010A/Commissioning/RAW/v1/000/136/066/28D89EF5-3C66-DF11-9AAA-0019B9F705A3.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(500)
00029 )
00030
00031
00032
00033
00034
00035 process.load('Configuration/StandardSequences/MagneticField_AutoFromDBCurrent_cff')
00036 process.load('Configuration/StandardSequences/GeometryIdeal_cff')
00037
00038
00039 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
00040 process.GlobalTag.globaltag = 'GR10_P_V8::All'
00041
00042 process.load("Configuration/StandardSequences/RawToDigi_Data_cff")
00043 process.load("Configuration/StandardSequences/Reconstruction_cff")
00044 process.load('Configuration/EventContent/EventContent_cff')
00045
00046
00047 process.FEVTEventContent.outputCommands.append("drop *_MEtoEDMConverter_*_*")
00048 process.FEVTEventContent.outputCommands.append("drop *_*_*_SKIM")
00049
00050
00051
00052
00053 process.load('L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskAlgoTrigConfig_cff')
00054 process.load('L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskTechTrigConfig_cff')
00055 process.load('HLTrigger/HLTfilters/hltLevel1GTSeed_cfi')
00056
00057
00058
00059
00060 from EventFilter.DTRawToDigi.dtunpackerDDUGlobal_cfi import dtunpacker
00061
00062 process.muonDTDigis = dtunpacker.clone()
00063
00064 process.HLTDTActivityFilter = cms.EDFilter( "HLTDTActivityFilter",
00065 inputDCC = cms.InputTag( "dttfDigis" ),
00066 inputDDU = cms.InputTag( "muonDTDigis" ),
00067 inputRPC = cms.InputTag( "hltGtDigis" ),
00068 inputDigis = cms.InputTag( "muonDTDigis" ),
00069 processDCC = cms.bool( False ),
00070 processDDU = cms.bool( False ),
00071 processRPC = cms.bool( False ),
00072 processDigis = cms.bool( True ),
00073
00074 maxDeltaPhi = cms.double( 1.0 ),
00075 maxDeltaEta = cms.double( 0.3 ),
00076
00077 orTPG = cms.bool( True ),
00078 orRPC = cms.bool( True ),
00079 orDigi = cms.bool( True ),
00080
00081 minChamberLayers = cms.int32( 5 ),
00082 maxStation = cms.int32( 3 ),
00083 minTPGQual = cms.int32( 2 ),
00084 minDDUBX = cms.int32( 8 ),
00085 maxDDUBX = cms.int32( 13 ),
00086 minDCCBX = cms.int32( -1 ),
00087 maxDCCBX = cms.int32( 1 ),
00088 minRPCBX = cms.int32( -1 ),
00089 maxRPCBX = cms.int32( 1 ),
00090 minActiveChambs = cms.int32( 1 ),
00091 activeSectors = cms.vint32(1,2,3,4,5,6,7,8,9,10,11,12),
00092 saveTags = cms.bool(False)
00093 )
00094
00095
00096 process.HLTDT =cms.EDFilter("HLTHighLevel",
00097 TriggerResultsTag = cms.InputTag("TriggerResults","","HLT"),
00098 HLTPaths = cms.vstring('HLT_L1MuOpen','HLT_Activity_DT', 'HLT_Activity_DT_Tuned'),
00099 eventSetupPathsKey = cms.string(''),
00100 andOr = cms.bool(True),
00101 throw = cms.bool(False),
00102 saveTags = cms.bool(False)
00103 )
00104
00105 process.dtHLTSkim = cms.Path(process.HLTDT)
00106
00107 process.dtSkim=cms.Path(process.muonDTDigis+process.HLTDTActivityFilter)
00108
00109
00110
00111
00112 process.l1RequestPhAlgos = process.hltLevel1GTSeed.clone()
00113
00114 process.l1RequestPhAlgos.L1UseL1TriggerObjectMaps = cms.bool(False)
00115
00116
00117
00118
00119 process.l1RequestPhAlgos.L1NrBxInEvent = cms.int32(5)
00120
00121
00122
00123 process.l1RequestPhAlgos.L1SeedsLogicalExpression = cms.string(
00124 'L1_SingleMuBeamHalo OR L1_SingleMuOpen OR L1_SingleMu0 OR L1_SingleMu3 OR L1_SingleMu5 OR L1_SingleMu7 OR L1_SingleMu10 OR L1_SingleMu14 OR L1_SingleMu20 OR L1_DoubleMuOpen OR L1_DoubleMu3')
00125
00126 process.l1MuBitsSkim = cms.Path(process.l1RequestPhAlgos)
00127
00128
00129
00130
00131
00132
00133 process.l1RequestTecAlgos = process.hltLevel1GTSeed.clone()
00134
00135 process.l1RequestTecAlgos.L1TechTriggerSeeding = cms.bool(True)
00136 process.l1RequestTecAlgos.L1SeedsLogicalExpression = cms.string('31')
00137
00138 process.rpcTecSkim = cms.Path(process.l1RequestTecAlgos)
00139
00140
00141
00142
00143 process.load("DPGAnalysis/Skims/CSCSkim_cfi")
00144
00145 process.cscSkim.minimumSegments = 1
00146 process.cscSkim.minimumHitChambers = 1
00147
00148
00149 process.hltBeamHalo = cms.EDFilter("HLTHighLevel",
00150 TriggerResultsTag = cms.InputTag("TriggerResults","","HLT"),
00151 HLTPaths = cms.vstring('HLT_CSCBeamHalo','HLT_CSCBeamHaloOverlapRing1','HLT_CSCBeamHaloOverlapRing','HLT_CSCBeamHaloRing2or3'),
00152 eventSetupPathsKey = cms.string(''),
00153 andOr = cms.bool(True),
00154 throw = cms.bool(False)
00155 )
00156
00157
00158
00159 process.cscHLTSkim = cms.Path(process.hltBeamHalo)
00160 process.cscSkimAlone = cms.Path(process.cscSkim)
00161
00162
00163
00164 process.muonSkim=cms.EDFilter("CandViewCountFilter",
00165 src =cms.InputTag("muons"), minNumber = cms.uint32(1))
00166 process.muonTracksSkim = cms.Path(process.muonSkim)
00167
00168
00169
00170
00171
00172
00173 process.outputMuonDPGSkim = cms.OutputModule("PoolOutputModule",
00174 fileName = cms.untracked.string('/tmp/azzi/COMM_MuonDPGSkim.root'),
00175 outputCommands = cms.untracked.vstring('keep *','drop *_MEtoEDMConverter_*_*'),
00176 dataset = cms.untracked.PSet(
00177 dataTier = cms.untracked.string('RAW-RECO'),
00178 filterName = cms.untracked.string('MuonDPG_skim')),
00179 SelectEvents = cms.untracked.PSet(
00180 SelectEvents = cms.vstring("l1MuBitsSkim","dtHLTSkim","dtSkim","cscHLTSkim","cscSkimAlone","rpcTecSkim","muonTracksSkim")
00181 )
00182 )
00183
00184
00185
00186 process.load("FWCore.Modules.logErrorFilter_cfi")
00187 from Configuration.StandardSequences.RawToDigi_Data_cff import gtEvmDigis
00188
00189 process.gtEvmDigis = gtEvmDigis.clone()
00190 process.stableBeam = cms.EDFilter("HLTBeamModeFilter",
00191 L1GtEvmReadoutRecordTag = cms.InputTag("gtEvmDigis"),
00192 AllowedBeamMode = cms.vuint32(11),
00193 saveTags = cms.bool(False)
00194 )
00195
00196 process.logerrorpath=cms.Path(process.gtEvmDigis+process.stableBeam+process.logErrorFilter)
00197
00198 process.outlogerr = cms.OutputModule("PoolOutputModule",
00199 outputCommands = process.FEVTEventContent.outputCommands,
00200 fileName = cms.untracked.string('/tmp/azzi/logerror_filter.root'),
00201 dataset = cms.untracked.PSet(
00202 dataTier = cms.untracked.string('RAW-RECO'),
00203 filterName = cms.untracked.string('Skim_logerror')),
00204
00205 SelectEvents = cms.untracked.PSet(
00206 SelectEvents = cms.vstring("logerrorpath")
00207 ))
00208
00209
00210
00211
00212 process.options = cms.untracked.PSet(
00213 wantSummary = cms.untracked.bool(True)
00214 )
00215
00216 process.outpath = cms.EndPath(process.outputMuonDPGSkim+process.outlogerr)
00217
00218
00219
00220