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(20),
0019     timetype = cms.string('runnumber'),
0020     firstValue = cms.uint64(20),
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('TIB'),  
0033     layer = cms.uint32(1),        ## SELECTION: layer = 1..4, 0(ALL)            
0034     bkw_frw = cms.uint32(0),      ## bkw_frw = 1(TIB-), 2(TIB+) 0(ALL)      
0035     detid = cms.uint32(0),        ## int_ext = 1 (internal), 2(external), 0(ALL)  
0036     ster = cms.uint32(0),         ## ster = 1(stereo), 2 (nonstereo), 0(ALL)        
0037     string_ = cms.uint32(0),      ## string = 1..N, 0(ALL)              
0038     int_ext = cms.uint32(0)       ## detid number = 0 (ALL),  specific number     
0039     )
0040 )
0041 
0042 #Write on DB
0043 process.load("CalibTracker.SiStripESProducers.DBWriter.SiStripBadModuleDummyDBWriter_cfi")
0044 process.siStripBadModuleDummyDBWriter.OpenIovAt = cms.untracked.string("currentTime")
0045 
0046 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0047     BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService'),
0048     DBParameters = cms.PSet(
0049         messageLevel = cms.untracked.int32(2),
0050         authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
0051     ),
0052     timetype = cms.untracked.string('runnumber'),
0053     connect = cms.string('sqlite_file:dbfile.db'),
0054     toPut = cms.VPSet(cms.PSet(
0055         record = cms.string('SiStripBadStrip'),
0056         tag = cms.string('SiStripBadModule_Fake_TIB')
0057         ))
0058 )
0059 
0060 
0061 ###### Quality ESProducer                                                                       
0062 process.load("CalibTracker.SiStripESProducers.SiStripQualityESProducer_cfi")
0063 process.siStripQualityESProducer.ListOfRecordToMerge = cms.VPSet(
0064      cms.PSet( record = cms.string("SiStripBadModuleRcd"),  tag    = cms.string("") )
0065      )
0066 
0067 from CalibTracker.SiStripQuality.siStripQualityStatistics_cfi import siStripQualityStatistics
0068 process.reader = siStripQualityStatistics.clone()
0069 
0070 process.siStripBadModuleDummyDBWriter.record=process.PoolDBOutputService.toPut[0].record
0071 process.p = cms.Path(process.reader*process.siStripBadModuleDummyDBWriter)
0072 
0073