Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("CALIB")
0004 
0005 process.MessageLogger = cms.Service("MessageLogger",
0006     cerr = cms.untracked.PSet(
0007         enable = cms.untracked.bool(False)
0008     ),
0009     debugModules = cms.untracked.vstring(''),
0010     files = cms.untracked.PSet(
0011         QualityReader = cms.untracked.PSet(
0012             threshold = cms.untracked.string('INFO')
0013         )
0014     )
0015 )
0016 
0017 process.source = cms.Source("EmptyIOVSource",
0018     lastValue = cms.uint64(10),
0019     timetype = cms.string('runnumber'),
0020     firstValue = cms.uint64(10),
0021     interval = cms.uint64(1)
0022 )
0023 
0024 process.maxEvents = cms.untracked.PSet(
0025     input = cms.untracked.int32(1)
0026 )
0027 
0028 #Populate ES
0029 process.load("CalibTracker.SiStripESProducers.fake.SiStripBadModuleConfigurableFakeESSource_cfi")
0030 from CalibTracker.SiStripESProducers.fake.SiStripBadModuleConfigurableFakeESSource_cfi import siStripBadModuleConfigurableFakeESSource
0031 siStripBadModuleConfigurableFakeESSource.BadComponentList = cms.untracked.VPSet(   cms.PSet(
0032     SubDet = cms.string('TID'), 
0033     wheel = cms.uint32(1),      ## SELECTION: side = 1(back, Z-), 2(front, Z+), 0(ALL)   
0034     detid = cms.uint32(0),      ## wheel = 1..3, 0(ALL)                  
0035     ster = cms.uint32(0),       ## ring  = 1..3, 0(ALL)                  
0036     ring = cms.uint32(0),       ## ster = 1(stereo), 2 (nonstereo), 0(ALL)       
0037     side = cms.uint32(0)            ## detid number = 0 (ALL),  specific number           
0038     )
0039 )
0040 
0041 #Write on DB
0042 process.load("CalibTracker.SiStripESProducers.DBWriter.SiStripBadModuleDummyDBWriter_cfi")
0043 process.siStripBadModuleDummyDBWriter.OpenIovAt = cms.untracked.string("currentTime")
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('SiStripBadStrip'),
0055         tag = cms.string('SiStripBadModule_Fake_TID')
0056         ))
0057 )
0058 
0059 
0060 ###### Quality ESProducer                                                                       
0061 process.load("CalibTracker.SiStripESProducers.SiStripQualityESProducer_cfi")
0062 process.siStripQualityESProducer.ListOfRecordToMerge = cms.VPSet(
0063      cms.PSet( record = cms.string("SiStripBadModuleRcd"),  tag    = cms.string("") )
0064      )
0065 
0066 from CalibTracker.SiStripQuality.siStripQualityStatistics_cfi import siStripQualityStatistics
0067 process.reader = siStripQualityStatistics.clone()
0068 
0069 process.siStripBadModuleDummyDBWriter.record=process.PoolDBOutputService.toPut[0].record
0070 process.p = cms.Path(process.reader*process.siStripBadModuleDummyDBWriter)
0071 
0072