File indexing completed on 2024-04-06 12:09:02
0001 from __future__ import print_function
0002 import FWCore.ParameterSet.Config as cms
0003
0004 import os
0005
0006 process = cms.Process( "CREATE" )
0007
0008 process.MessageLogger = cms.Service("MessageLogger",
0009 cerr = cms.untracked.PSet(
0010 enable = cms.untracked.bool(False)
0011 ),
0012 cout = cms.untracked.PSet(
0013 enable = cms.untracked.bool(True),
0014 threshold = cms.untracked.string('INFO')
0015 )
0016 )
0017
0018 process.source = cms.Source( "EmptyIOVSource"
0019 , timetype = cms.string( 'runnumber' )
0020 , firstValue = cms.uint64( 1 )
0021 , lastValue = cms.uint64( 1 )
0022 , interval = cms.uint64( 1 )
0023 )
0024
0025 process.dqmXmlFileTest = cms.EDAnalyzer( "DQMXMLFilePopConAnalyzer"
0026 , record = cms.string( 'FileBlob' )
0027 , loggingOn = cms.untracked.bool( True )
0028 , SinceAppendMode = cms.bool( False )
0029 , Source = cms.PSet(
0030 XMLFile = cms.untracked.string( os.getenv( 'CMSSW_RELEASE_BASE' ) + '/src/DQM/SiPixelMonitorClient/test/sipixel_tier0_qualitytest.xml' )
0031 , firstSince = cms.untracked.uint64( 1 )
0032 , debug = cms.untracked.bool( False )
0033 , zip = cms.untracked.bool( False )
0034 )
0035 )
0036 print("Used XML file: " + process.dqmXmlFileTest.Source.XMLFile.pythonValue())
0037
0038 process.load( "CondCore.DBCommon.CondDBCommon_cfi" )
0039 process.CondDBCommon.connect = cms.string( 'sqlite_file:DQMXMLFile_SiPixelDQM.db' )
0040 process.CondDBCommon.BlobStreamerName = cms.untracked.string( 'TBufferBlobStreamingService' )
0041 process.CondDBCommon.DBParameters.authenticationPath = cms.untracked.string( '' )
0042
0043
0044 process.PoolDBOutputService = cms.Service( "PoolDBOutputService"
0045 , process.CondDBCommon
0046 , logconnect = cms.untracked.string( 'sqlite_file:DQMXMLFile_SiPixelDQM_create_log.db' )
0047 , timetype = cms.untracked.string( 'runnumber' )
0048 , toPut = cms.VPSet(
0049 cms.PSet(
0050 record = cms.string( 'FileBlob' )
0051 , tag = cms.string( 'DQMXMLFile_SiPixelDQM_v1_test' )
0052 )
0053 )
0054 )
0055
0056 process.p = cms.Path(
0057 process.dqmXmlFileTest
0058 )