Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-10-04 02:55:16

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("Test")
0004 process.maxEvents = cms.untracked.PSet(
0005     input = cms.untracked.int32(1)
0006 )
0007 process.source = cms.Source("EmptySource",
0008                             firstRun = cms.untracked.uint32(1))
0009 
0010 process.TFileService = cms.Service("TFileService",
0011                                    fileName = cms.string("histo.root")
0012                                    )
0013 
0014 
0015 process.MessageLogger = cms.Service("MessageLogger",
0016     cout = cms.untracked.PSet(
0017         threshold = cms.untracked.string('WARNING')
0018     ),
0019     destinations = cms.untracked.vstring('cout')
0020 )
0021 
0022 process.Timing = cms.Service("Timing")
0023 
0024 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0025 process.load("Configuration.StandardSequences.GeometryDB_cff")
0026 from Configuration.AlCa.autoCond import autoCond
0027 process.GlobalTag.globaltag = autoCond['run2_design']
0028 
0029 process.QualityReader = cms.ESSource("PoolDBESSource",
0030     BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService'),
0031     DBParameters = cms.PSet(
0032         messageLevel = cms.untracked.int32(0),
0033         authenticationPath = cms.untracked.string('')
0034     ),
0035     timetype = cms.string('runnumber'),
0036     toGet = cms.VPSet(cms.PSet(
0037         record = cms.string('SiPixelQualityFromDbRcd'),
0038         tag = cms.string('SiPixelQuality_v07_mc')
0039     )),
0040     connect = cms.string('sqlite_file:prova.db')
0041 )
0042 
0043 process.es_prefer_QualityReader = cms.ESPrefer("PoolDBESSource","QualityReader")
0044 
0045 process.BadModuleReader = cms.EDAnalyzer("SiPixelBadModuleReader",
0046     printDebug = cms.untracked.uint32(1),
0047     RcdName = cms.untracked.string("SiPixelQualityFromDbRcd") 
0048 )
0049 
0050 process.p = cms.Path(process.BadModuleReader)
0051 
0052 
0053