Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 23:29:39

0001 # -*- coding: utf-8 -*-
0002 # The following comments couldn't be translated into the new config version:
0003 
0004 # upload to database 
0005 
0006 #string timetype = "timestamp"    
0007 
0008 import FWCore.ParameterSet.Config as cms
0009 
0010 process = cms.Process("Builder")
0011 
0012 process.MessageLogger = cms.Service("MessageLogger",
0013     cerr = cms.untracked.PSet(
0014         enable = cms.untracked.bool(False)
0015     ),
0016     debugModules = cms.untracked.vstring('siStripLatencyDummyDBWriter'),
0017     files = cms.untracked.PSet(
0018         LatencyBuilder = cms.untracked.PSet(
0019 
0020         )
0021     ),
0022     threshold = cms.untracked.string('INFO')
0023 )
0024 
0025 process.maxEvents = cms.untracked.PSet(
0026     input = cms.untracked.int32(1)
0027 )
0028 process.source = cms.Source("EmptySource",
0029     numberEventsInRun = cms.untracked.uint32(1),
0030     firstRun = cms.untracked.uint32(1),
0031 )
0032 
0033 process.load("CalibTracker.SiStripESProducers.fake.SiStripLatencyFakeESSource_cfi")
0034 process.load("CalibTracker.SiStripESProducers.DBWriter.SiStripLatencyDummyDBWriter_cfi")
0035 
0036 from CalibTracker.SiStripESProducers.fake.SiStripLatencyFakeESSource_cfi import siStripLatencyFakeESSource
0037 
0038 siStripLatencyFakeESSource.latency = 255
0039 siStripLatencyFakeESSource.mode = 0
0040 # siStripLatencyFakeESSource.latency = 143
0041 # siStripLatencyFakeESSource.mode = 47
0042 # siStripLatencyFakeESSource.latency = 146
0043 # siStripLatencyFakeESSource.mode = 37
0044 
0045 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0046     BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService'),
0047     DBParameters = cms.PSet(
0048         messageLevel = cms.untracked.int32(2),
0049         authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
0050     ),
0051     timetype = cms.untracked.string('runnumber'),
0052     connect = cms.string('sqlite_file:dbfile.db'),
0053     toPut = cms.VPSet(cms.PSet(
0054         record = cms.string('SiStripLatencyRcd'),
0055         tag = cms.string('SiStripLatency_Ideal_31X')
0056     ))
0057 )
0058 
0059 process.siStripLatencyDummyDBWriter.record=process.PoolDBOutputService.toPut[0].record 
0060 
0061 # This specifies the IOV, not the EmptySource (to see why look at the DummyDBWriter code)
0062 # process.siStripLatencyDummyDBWriter.OpenIovAt = ""
0063 # process.siStripLatencyDummyDBWriter.OpenIovAtTime = 1
0064 # process.siStripLatencyDummyDBWriter.OpenIovAtTime = 108449
0065 # process.siStripLatencyDummyDBWriter.OpenIovAtTime = 110177
0066 # process.siStripLatencyDummyDBWriter.OpenIovAtTime = 110213
0067 
0068 process.p1 = cms.Path(process.siStripLatencyDummyDBWriter)