Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 23:29:36

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("ProcessOne")
0004 
0005 ##
0006 ## MessageLogger
0007 ##
0008 process.load('FWCore.MessageService.MessageLogger_cfi')   
0009 process.MessageLogger.cerr.enable = False
0010 process.MessageLogger.SiPixelFEDChannelContainer=dict()  
0011 process.MessageLogger.PixelFEDChannelCollectionMapTestReader=dict()  
0012 process.MessageLogger.cout = cms.untracked.PSet(
0013     enable = cms.untracked.bool(True),
0014     enableStatistics = cms.untracked.bool(True),
0015     threshold = cms.untracked.string("INFO"),
0016     default   = cms.untracked.PSet(limit = cms.untracked.int32(0)),                       
0017     FwkReport = cms.untracked.PSet(limit = cms.untracked.int32(-1),
0018                                    reportEvery = cms.untracked.int32(1000)
0019                                    ),                                                      
0020     SiPixelFEDChannelContainer               = cms.untracked.PSet( limit = cms.untracked.int32(-1)),
0021     PixelFEDChannelCollectionMapTestReader   = cms.untracked.PSet( limit = cms.untracked.int32(-1))
0022     )
0023 
0024 ##
0025 ## Empty Source
0026 ##
0027 process.source = cms.Source("EmptyIOVSource",
0028                             timetype = cms.string('runnumber'),
0029                             firstValue = cms.uint64(1),
0030                             lastValue = cms.uint64(1),
0031                             interval = cms.uint64(1)
0032                             )
0033 ##
0034 ## Get the payload
0035 ##
0036 from CondCore.CondDB.CondDB_cfi import *
0037 CondDBQualityCollection = CondDB.clone(connect = cms.string("sqlite_file:SiPixelStatusScenarios_v1.db"))
0038 
0039 process.dbInput = cms.ESSource("PoolDBESSource",
0040                                CondDBQualityCollection,
0041                                toGet = cms.VPSet(cms.PSet(record = cms.string('SiPixelStatusScenariosRcd'),
0042                                                           tag = cms.string('SiPixelFEDChannelContainer_StuckTBM_2018_v1_mc') # choose tag you want
0043                                                           )
0044                                                  )
0045                                )
0046 
0047 #from CalibTracker.SiPixelESProducers.PixelFEDChannelCollectionProducer_cfi import *
0048 process.load("CalibTracker.SiPixelESProducers.PixelFEDChannelCollectionProducer_cfi")
0049 #process.SiPixelFEDChannelContainerESProducer = cms.ESProducer("PixelFEDChannelCollectionProducer")
0050 
0051 
0052 ## Retrieve it and check it's available in the ES
0053 ##
0054 process.get = cms.EDAnalyzer("EventSetupRecordDataGetter",
0055                              toGet = cms.VPSet(cms.PSet(record = cms.string('SiPixelFEDChannelContainerESProducerRcd'),
0056                                                         data = cms.vstring('PixelFEDChannelCollectionMap')
0057                                                         )
0058                                                ),
0059                              verbose = cms.untracked.bool(True)
0060                              )
0061 
0062 ##
0063 ## Retrieve it and check it's available in the ES
0064 ##
0065 # process.get = cms.EDAnalyzer("EventSetupRecordDataGetter",
0066 #                              toGet = cms.VPSet(cms.PSet(record = cms.string('SiPixelStatusScenariosRcd'),
0067 #                                                         data = cms.vstring('SiPixelFEDChannelContainer')
0068 #                                                         )
0069 #                                                ),
0070 #                              verbose = cms.untracked.bool(True)
0071 #                              )
0072 
0073 ##
0074 ## Read it back
0075 ##
0076 process.ReadDB = cms.EDAnalyzer("PixelFEDChannelCollectionMapTestReader")
0077 process.ReadDB.printDebug = cms.untracked.bool(True)
0078 process.ReadDB.outputFile = cms.untracked.string('PixelFEDChannelCollectionMap.log')
0079 
0080 process.p = cms.Path(process.get+process.ReadDB)