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.DBCommon.CondDBCommon_cfi")
0016 #process.CondDBCommon.connect = cms.string('oracle://cms_orcoff_prep/CMS_COND_30X_DQM_SUMMARY')
0017 process.CondDBCommon.connect = cms.string('sqlite_file:DQMSummaryTest.db')
0018 #process.CondDBCommon.DBParameters.authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb') #authentication when using ORACLE
0019 process.CondDBCommon.DBParameters.messageLevel = cms.untracked.int32(1) #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.CondDBCommon,
0030     timetype = cms.untracked.string('runnumber'), #IOV: 'runnumber'-> number of the run, 'timestamp'-> microseconds starting from 1/1/1970
0031     toPut = cms.VPSet(cms.PSet(
0032         record = cms.string('DQMSummary'),
0033         tag = cms.string('DQMSummaryTest') 
0034          )),
0035     logconnect= cms.untracked.string('sqlite_file:DQMSummaryLogTest.db')                                     
0036 )
0037 
0038 process.dqmSummaryTest = cms.EDAnalyzer("DQMSummaryPopConAnalyzer",
0039     record = cms.string('DQMSummary'),
0040     loggingOn = cms.untracked.bool(True), #always True, needs to create the log db
0041     SinceAppendMode = cms.bool(True),
0042     Source = cms.PSet(
0043     firstSince = cms.untracked.uint64(43434) #1, 43434, 46335, 51493, 51500
0044     )                            
0045 )
0046 
0047 process.p = cms.Path(process.dqmSummaryTest)