Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-06-30 04:13:38

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("Reader")
0010 
0011 process.MessageLogger = cms.Service("MessageLogger",
0012     debugModules = cms.untracked.vstring(''),
0013     cout = cms.untracked.PSet(
0014         threshold = cms.untracked.string('INFO')
0015     ),
0016     destinations = cms.untracked.vstring('cout')
0017 )
0018 
0019 process.maxEvents = cms.untracked.PSet(
0020     input = cms.untracked.int32(10)
0021 )
0022 process.source = cms.Source("EmptySource",
0023     numberEventsInRun = cms.untracked.uint32(1),
0024     firstRun = cms.untracked.uint32(insertRun)
0025 )
0026 
0027 process.poolDBESSource = cms.ESSource("PoolDBESSource",
0028    BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService'),
0029    DBParameters = cms.PSet(
0030         messageLevel = cms.untracked.int32(2),
0031         authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
0032     ),
0033     timetype = cms.untracked.string('runnumber'),
0034     connect = cms.string('sqlite_file:dbfile.db'),
0035     toGet = cms.VPSet(
0036     cms.PSet(record = cms.string('SiStripBadFiberRcd'),tag = cms.string('SiStripHotAPVs')),
0037     cms.PSet(record = cms.string('SiStripBadChannelRcd'),tag = cms.string('SiStripHotStrips'))
0038     )
0039 )
0040 
0041 process.load("CalibTracker.SiStripESProducers.SiStripQualityESProducer_cfi")
0042 process.siStripQualityESProducer.ReduceGranularity = cms.bool(False)
0043 process.siStripQualityESProducer.ListOfRecordToMerge = cms.VPSet(
0044      cms.PSet( record = cms.string("SiStripBadChannelRcd"), tag    = cms.string("") ),
0045      cms.PSet( record = cms.string("SiStripBadFiberRcd"),   tag    = cms.string("") )
0046      )
0047 
0048 
0049 #Write on DB
0050 process.load("CalibTracker.SiStripESProducers.DBWriter.SiStripBadStripFromQualityDummyDBWriter_cfi")
0051 process.siStripBadStripFromQualityDummyDBWriter.OpenIovAt = cms.untracked.string("currentTime")
0052 
0053 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0054     BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService'),
0055     DBParameters = cms.PSet(
0056         messageLevel = cms.untracked.int32(2),
0057         authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
0058     ),
0059     timetype = cms.untracked.string('runnumber'),
0060     connect = cms.string('sqlite_file:dbfile.db'),
0061     toPut = cms.VPSet(cms.PSet(
0062         record = cms.string('SiStripBadStrip'),
0063         tag = cms.string('SiStripHotComponents_merged')
0064         ))
0065 )
0066 
0067 from CalibTracker.SiStripQuality.siStripQualityStatistics_cfi import siStripQualityStatistics
0068 process.reader = siStripQualityStatistics.clone()
0069 
0070 process.siStripBadStripFromQualityDummyDBWriter.record=process.PoolDBOutputService.toPut[0].record
0071 process.p1 = cms.Path(process.reader*process.siStripBadStripFromQualityDummyDBWriter)
0072 
0073