Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
import FWCore.ParameterSet.Config as cms

process = cms.Process("TEST")

process.MessageLogger = cms.Service("MessageLogger",
    cerr = cms.untracked.PSet(
        enable = cms.untracked.bool(False)
    ),
    cout = cms.untracked.PSet(
        enable = cms.untracked.bool(True),
        threshold = cms.untracked.string('INFO')
    )
)

process.load("CondCore.CondDB.CondDB_cfi")
process.CondDB.connect = cms.string('sqlite_file:testXML.db')
process.CondDB.DBParameters.authenticationPath = cms.untracked.string('')
process.CondDB.BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService')
#process.CondDBCommon.DBParameters.messageLevel = cms.untracked.int32(3) #3 for high verbosity

process.source = cms.Source("EmptyIOVSource", #needed to EvSetup in order to load data
                            timetype = cms.string('runnumber'),
                            firstValue = cms.uint64(1),
                            lastValue = cms.uint64(1),
                            interval = cms.uint64(1)
                            )

process.PoolDBOutputService = cms.Service("PoolDBOutputService",
                                          process.CondDB,
                                          timetype = cms.untracked.string('runnumber'),
                                          toPut = cms.VPSet(cms.PSet(record = cms.string('FileBlob'),
                                                                     tag = cms.string('XML_test')
                                                                     )
                                                            ),
                                          logconnect = cms.untracked.string('sqlite_file:XMLFILE_TestLog.db')
                                          )

process.dqmxmlFileTest = cms.EDAnalyzer("DQMXMLFilePopConAnalyzer",
                                        record = cms.string('FileBlob'),
                                        loggingOn = cms.untracked.bool(True), #always True, needs to create the log db
                                        SinceAppendMode = cms.bool(True),
                                        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"),
                                                          firstSince = cms.untracked.uint64(1),
                                                          debug = cms.untracked.bool(True),
                                                          zip = cms.untracked.bool(False)
                                                          )
                                        )

process.p = cms.Path(process.dqmxmlFileTest)