Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:02:49

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("TEST")
0004 process.load("CondCore.DBCommon.CondDBCommon_cfi")
0005 
0006 process.CondDBCommon.connect = 'sqlite_file:testhv.db'
0007 process.CondDBCommon.DBParameters.authenticationPath = '.'
0008 
0009 #process.DTHVCheckByAbsoluteValues = cms.Service("DTHVCheckByAbsoluteValues")
0010 process.DTHVCheckWithHysteresis = cms.Service("DTHVCheckWithHysteresis")
0011 
0012 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0013     process.CondDBCommon,
0014     logconnect = cms.untracked.string('sqlite_file:log.db'),
0015     timetype = cms.untracked.string('timestamp'),
0016     toPut = cms.VPSet(cms.PSet(
0017         record = cms.string('DTHVStatusRcd'),
0018         tag = cms.string('hv_test')
0019     ))
0020 )
0021 
0022 process.source = cms.Source("EmptyIOVSource",
0023 #    timetype = cms.string('runnumber'),
0024     timetype = cms.string('timestamp'),
0025     firstValue = cms.uint64(1),
0026     lastValue  = cms.uint64(5),
0027     interval   = cms.uint64(1)
0028 )
0029 
0030 process.hv_o2o = cms.EDAnalyzer("DTHVStatusPopConAnalyzer",
0031     name = cms.untracked.string('DTHVStatus'),
0032     Source = cms.PSet(
0033         DBParameters = cms.PSet(
0034             messageLevel = cms.untracked.int32(0),
0035             authenticationPath = cms.untracked.string('.')
0036         ),
0037         onlineDB = cms.string('sqlite_file:dummy_online.db'),
0038         utilDB   = cms.string('sqlite_file:dummy_online.db'),
0039         bufferDB = cms.string('sqlite_file:bufferHV.db'),
0040         tag = cms.string('hv_test'),
0041         onlineAuthentication = cms.string('.'),
0042         sinceYear   = cms.int32(2009),
0043         sinceMonth  = cms.int32(  12),
0044         sinceDay    = cms.int32(   6),
0045         sinceHour   = cms.int32(   7),
0046         sinceMinute = cms.int32(   0),
0047         sinceSecond = cms.int32(   1),
0048         untilYear   = cms.int32(2009),
0049         untilMonth  = cms.int32(  12),
0050         untilDay    = cms.int32(   6),
0051         untilHour   = cms.int32(  17),
0052         untilMinute = cms.int32(   1),
0053         untilSecond = cms.int32(   0),
0054         dumpAtStart = cms.bool(True),
0055         dumpAtEnd   = cms.bool(False),
0056         bwdTime      = cms.int64(3600),
0057         fwdTime      = cms.int64(3600),
0058         minTime      = cms.int64(   1),
0059         mapVersion = cms.string('hvChannels_090326'),
0060         splitVersion = cms.string('hvChanSplit_090818')
0061     ),
0062     SinceAppendMode = cms.bool(True),
0063     record = cms.string('DTHVStatusRcd'),
0064     loggingOn = cms.untracked.bool(True),
0065     debug = cms.bool(False)
0066 )
0067 
0068 process.p = cms.Path(process.hv_o2o)
0069