Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:09:15

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("SKIM")
0004 
0005 process.configurationMetadata = cms.untracked.PSet(
0006     version = cms.untracked.string('$Revision: 1.1 $'),
0007     name = cms.untracked.string('$Source: /cvs/CMSSW/CMSSW/DPGAnalysis/Skims/python/logErrorSkim_cfg.py,v $'),
0008     annotation = cms.untracked.string('LogError skim')
0009 )
0010 
0011 #
0012 #
0013 # This is for testing purposes.
0014 #
0015 #
0016 process.source = cms.Source("PoolSource",
0017                             fileNames = cms.untracked.vstring(
0018 # run 136066 lumi~500
0019 '/store/data/Run2010A/MinimumBias/RECO/v1/000/136/066/18F6DB82-5566-DF11-B289-0030487CAF0E.root'),
0020                            secondaryFileNames = cms.untracked.vstring(
0021 '/store/data/Run2010A/MinimumBias/RAW/v1/000/136/066/38D48BED-3C66-DF11-88A5-001D09F27003.root')
0022 )
0023 
0024 process.source.inputCommands = cms.untracked.vstring("keep *", "drop *_MEtoEDMConverter_*_*")
0025 
0026 process.maxEvents = cms.untracked.PSet(
0027     input = cms.untracked.int32(1000)
0028 )
0029 
0030 
0031 #------------------------------------------
0032 # Load standard sequences.
0033 #------------------------------------------
0034 process.load('Configuration/StandardSequences/MagneticField_AutoFromDBCurrent_cff')
0035 process.load('Configuration/StandardSequences/GeometryIdeal_cff')
0036 
0037 
0038 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0039 process.GlobalTag.globaltag = 'GR10_P_V8::All'
0040 
0041 process.load("Configuration/StandardSequences/RawToDigi_Data_cff")
0042 process.load("Configuration/StandardSequences/Reconstruction_cff")
0043 process.load('Configuration/EventContent/EventContent_cff')
0044 
0045 #drop collections created on the fly
0046 process.FEVTEventContent.outputCommands.append("drop *_MEtoEDMConverter_*_*")
0047 process.FEVTEventContent.outputCommands.append("drop *_*_*_SKIM")
0048 #
0049 #  Load common sequences
0050 #
0051 process.load('L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskAlgoTrigConfig_cff')
0052 process.load('L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskTechTrigConfig_cff')
0053 process.load('HLTrigger/HLTfilters/hltLevel1GTSeed_cfi')
0054 
0055 #################################logerrorharvester############################################
0056 process.load("FWCore.Modules.logErrorFilter_cfi")
0057 from Configuration.StandardSequences.RawToDigi_Data_cff import gtEvmDigis
0058 
0059 process.gtEvmDigis = gtEvmDigis.clone()
0060 process.stableBeam = cms.EDFilter("HLTBeamModeFilter",
0061                                   L1GtEvmReadoutRecordTag = cms.InputTag("gtEvmDigis"),
0062                                   AllowedBeamMode = cms.vuint32(11),
0063                                   saveTags = cms.bool(False)
0064                                   )
0065 
0066 process.logerrorpath=cms.Path(process.gtEvmDigis+process.stableBeam+process.logErrorFilter)
0067 
0068 process.outlogerr = cms.OutputModule("PoolOutputModule",
0069                                outputCommands =  process.FEVTEventContent.outputCommands,
0070                                fileName = cms.untracked.string('/tmp/azzi/logerror_filter.root'),
0071                                dataset = cms.untracked.PSet(
0072                                   dataTier = cms.untracked.string('RAW-RECO'),
0073                                   filterName = cms.untracked.string('Skim_logerror')),
0074                                
0075                                SelectEvents = cms.untracked.PSet(
0076     SelectEvents = cms.vstring("logerrorpath")
0077     ))
0078 
0079 process.options = cms.untracked.PSet(
0080  wantSummary = cms.untracked.bool(True)
0081 )
0082 
0083 process.outpath = cms.EndPath(process.outlogerr)