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('siStripBaseDelayDummyDBWriter'),
0017     files = cms.untracked.PSet(
0018         BaseDelayBuilder = 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.SiStripBaseDelayFakeESSource_cfi")
0034 process.load("CalibTracker.SiStripESProducers.DBWriter.SiStripBaseDelayDummyDBWriter_cfi")
0035 
0036 from CalibTracker.SiStripESProducers.fake.SiStripBaseDelayFakeESSource_cfi import siStripBaseDelayFakeESSource
0037 
0038 siStripBaseDelayFakeESSource.CoarseDelay = 0
0039 siStripBaseDelayFakeESSource.FineDelay = 0
0040 
0041 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0042     BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService'),
0043     DBParameters = cms.PSet(
0044         messageLevel = cms.untracked.int32(2),
0045         authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
0046     ),
0047     timetype = cms.untracked.string('runnumber'),
0048     connect = cms.string('sqlite_file:dbfile.db'),
0049     toPut = cms.VPSet(cms.PSet(
0050         record = cms.string('SiStripBaseDelayRcd'),
0051         tag = cms.string('SiStripBaseDelay_Ideal_31X')
0052     ))
0053 )
0054 
0055 process.siStripBaseDelayDummyDBWriter.record=process.PoolDBOutputService.toPut[0].record 
0056 
0057 # This specifies the IOV, not the EmptySource (to see why look at the DummyDBWriter code)
0058 # process.siStripBaseDelayDummyDBWriter.OpenIovAt = ""
0059 # process.siStripBaseDelayDummyDBWriter.OpenIovAtTime = 1
0060 # process.siStripBaseDelayDummyDBWriter.OpenIovAtTime = 108449
0061 # process.siStripBaseDelayDummyDBWriter.OpenIovAtTime = 110177
0062 # process.siStripBaseDelayDummyDBWriter.OpenIovAtTime = 110213
0063 
0064 process.p1 = cms.Path(process.siStripBaseDelayDummyDBWriter)