Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-01-24 01:11:21

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.SiPixelBadFEDChannelSimulationSanityChecker=dict()  
0011 process.MessageLogger.SiPixelFEDChannelContainer=dict()
0012 process.MessageLogger.SiPixelQualityProbabilities=dict()    
0013 process.MessageLogger.cout = cms.untracked.PSet(
0014     enable    = cms.untracked.bool(True),
0015     enableStatistics = cms.untracked.bool(True),
0016     threshold = cms.untracked.string("INFO"),
0017     default   = cms.untracked.PSet(limit = cms.untracked.int32(0)),                       
0018     FwkReport = cms.untracked.PSet(limit = cms.untracked.int32(-1),
0019                                    reportEvery = cms.untracked.int32(1000)
0020                                    ),                                                      
0021     SiPixelBadFEDChannelSimulationSanityChecker  = cms.untracked.PSet( limit = cms.untracked.int32(-1)),
0022     SiPixelFEDChannelContainer              = cms.untracked.PSet( limit = cms.untracked.int32(-1)),
0023     SiPixelQualityProbabilities             = cms.untracked.PSet( limit = cms.untracked.int32(-1))
0024     )
0025 process.MessageLogger.cout.enableStatistics = cms.untracked.bool(True)  
0026 
0027 ##
0028 ## Empty Source
0029 ##
0030 process.source = cms.Source("EmptyIOVSource",
0031                             timetype = cms.string('runnumber'),
0032                             firstValue = cms.uint64(1),
0033                             lastValue = cms.uint64(1),
0034                             interval = cms.uint64(1)
0035                             )
0036 ##
0037 ## Get the payload(s)
0038 ##
0039 from CondCore.CondDB.CondDB_cfi import *
0040 #CondDBQualityCollection = CondDB.clone(connect = cms.string("frontier://FrontierPrep/CMS_CONDITIONS"))
0041 CondDBQualityCollection = CondDB.clone(connect = cms.string("frontier://FrontierProd/CMS_CONDITIONS"))
0042 process.dbInput = cms.ESSource("PoolDBESSource",
0043                                CondDBQualityCollection,
0044                                toGet = cms.VPSet(cms.PSet(record = cms.string('SiPixelStatusScenariosRcd'),
0045                                                           tag = cms.string('SiPixelStatusScenarios_UltraLegacy2018_v0_mc') # choose tag you want
0046                                                           )
0047                                                  )
0048                                )
0049 
0050 #CondDBProbabilities = CondDB.clone(connect = cms.string("frontier://FrontierPrep/CMS_CONDITIONS"))
0051 CondDBProbabilities = CondDB.clone(connect = cms.string("frontier://FrontierProd/CMS_CONDITIONS"))
0052 process.dbInput2 = cms.ESSource("PoolDBESSource",
0053                                 CondDBProbabilities,
0054                                 toGet = cms.VPSet(cms.PSet(record = cms.string('SiPixelStatusScenarioProbabilityRcd'),
0055                                                            tag = cms.string('SiPixelQualityProbabilities_UltraLegacy2018_v0_mc') # choose tag you want
0056                                                            )
0057                                                   )
0058                                 )
0059 
0060 ##
0061 ## Retrieve it and check it's available in the ES
0062 ##
0063 process.get = cms.EDAnalyzer("EventSetupRecordDataGetter",
0064                              toGet = cms.VPSet(cms.PSet(record = cms.string('SiPixelStatusScenariosRcd'),
0065                                                         data = cms.vstring('SiPixelFEDChannelContainer')
0066                                                         ),
0067                                                cms.PSet(record = cms.string('SiPixelStatusScenarioProbabilityRcd'),
0068                                                         data = cms.vstring('SiPixelQualityProbabilities')
0069                                                         )
0070                                                ),
0071                              verbose = cms.untracked.bool(True)
0072                              )
0073 ##
0074 ## Read it back
0075 ##
0076 process.ReadDB = cms.EDAnalyzer("SiPixelBadFEDChannelSimulationSanityChecker")
0077 process.ReadDB.printDebug = cms.untracked.bool(True)
0078 process.p = cms.Path(process.get+process.ReadDB)