Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:59:52

0001 # The following comments couldn't be translated into the new config version:
0002 
0003 # upload to database 
0004 
0005 #string timetype = "timestamp"    
0006 
0007 import FWCore.ParameterSet.Config as cms
0008 
0009 process = cms.Process("Builder")
0010 
0011 process.MessageLogger = cms.Service("MessageLogger",
0012     cerr = cms.untracked.PSet(
0013         enable = cms.untracked.bool(False)
0014     ),
0015     debugModules = cms.untracked.vstring('siStripApvGainDummyDBWriter'),
0016     files = cms.untracked.PSet(
0017         ApvGainBuilder = cms.untracked.PSet(
0018 
0019         )
0020     ),
0021     threshold = cms.untracked.string('DEBUG')
0022 )
0023 
0024 process.maxEvents = cms.untracked.PSet(
0025     input = cms.untracked.int32(1)
0026 )
0027 process.source = cms.Source("EmptySource",
0028     numberEventsInRun = cms.untracked.uint32(1),
0029     firstRun = cms.untracked.uint32(1)
0030 )
0031 
0032 process.load("CalibTracker.SiStripESProducers.fake.SiStripApvGainFakeESSource_cfi")
0033 process.load("CalibTracker.SiStripESProducers.DBWriter.SiStripApvGainDummyDBWriter_cfi")
0034 from CalibTracker.SiStripESProducers.fake.SiStripApvGainFakeESSource_cfi import siStripApvGainFakeESSource
0035 siStripApvGainFakeESSource.MeanGain=1.0
0036 siStripApvGainFakeESSource.SigmaGain=0.0
0037 # default = ApvGain fixed to 1
0038 # gaussian = gaussian smearing with mean = MeanGain and sigma = SigmaGain
0039 siStripApvGainFakeESSource.genMode = cms.string("default")
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('SiStripApvGainRcd'),
0051         tag = cms.string('SiStripApvGain_Ideal_31X')
0052     ))
0053 )
0054 
0055 
0056 process.siStripApvGainDummyDBWriter.record=process.PoolDBOutputService.toPut[0].record
0057 
0058 process.p1 = cms.Path(process.siStripApvGainDummyDBWriter)
0059 
0060