Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:51:45

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("TEST")
0004 
0005 process.MessageLogger = cms.Service("MessageLogger",
0006     cerr = cms.untracked.PSet(
0007         enable = cms.untracked.bool(False)
0008     ),
0009     cout = cms.untracked.PSet(
0010         enable = cms.untracked.bool(True),
0011         threshold = cms.untracked.string('INFO')
0012     )
0013 )
0014 
0015 process.load("CondCore.CondDB.CondDB_cfi")
0016 process.CondDB.connect = cms.string('sqlite_file:testXML.db')
0017 process.CondDB.DBParameters.authenticationPath = cms.untracked.string('')
0018 process.CondDB.BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService')
0019 #process.CondDBCommon.DBParameters.messageLevel = cms.untracked.int32(3) #3 for high verbosity
0020 
0021 process.source = cms.Source("EmptyIOVSource", #needed to EvSetup in order to load data
0022                             timetype = cms.string('runnumber'),
0023                             firstValue = cms.uint64(1),
0024                             lastValue = cms.uint64(1),
0025                             interval = cms.uint64(1)
0026                             )
0027 
0028 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0029                                           process.CondDB,
0030                                           timetype = cms.untracked.string('runnumber'),
0031                                           toPut = cms.VPSet(cms.PSet(record = cms.string('FileBlob'),
0032                                                                      tag = cms.string('XML_test')
0033                                                                      )
0034                                                             ),
0035                                           logconnect = cms.untracked.string('sqlite_file:XMLFILE_TestLog.db')
0036                                           )
0037 
0038 process.dqmxmlFileTest = cms.EDAnalyzer("DQMXMLFilePopConAnalyzer",
0039                                         record = cms.string('FileBlob'),
0040                                         loggingOn = cms.untracked.bool(True), #always True, needs to create the log db
0041                                         SinceAppendMode = cms.bool(True),
0042                                         Source = cms.PSet(XMLFile = cms.untracked.string("/cvmfs/cms.cern.ch/slc7_amd64_gcc820/cms/cmssw/CMSSW_11_1_2/src/DQM/SiStripMonitorClient/data/sistrip_qualitytest_config_tier0.xml"),
0043                                                           firstSince = cms.untracked.uint64(1),
0044                                                           debug = cms.untracked.bool(True),
0045                                                           zip = cms.untracked.bool(False)
0046                                                           )
0047                                         )
0048 
0049 process.p = cms.Path(process.dqmxmlFileTest)