Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:03:27

0001 import FWCore.ParameterSet.Config as cms
0002 process = cms.Process("ProcessOne")
0003 
0004 ##
0005 ## MessageLogger
0006 ##
0007 process.load('FWCore.MessageService.MessageLogger_cfi')   
0008 process.MessageLogger.cerr.enable = False
0009 process.MessageLogger.SiPixelQualityProbabilitiesWriteFromASCII=dict()  
0010 process.MessageLogger.SiPixelQualityProbabilities=dict()  
0011 process.MessageLogger.cout = cms.untracked.PSet(
0012     enable = cms.untracked.bool(True),
0013     enableStatistics = cms.untracked.bool(True),
0014     threshold = cms.untracked.string("INFO"),
0015     default   = cms.untracked.PSet(limit = cms.untracked.int32(0)),                       
0016     FwkReport = cms.untracked.PSet(limit = cms.untracked.int32(-1),
0017                                    reportEvery = cms.untracked.int32(1000)
0018                                    ),                                                      
0019     SiPixelQualityProbabilitiesWriteFromASCII = cms.untracked.PSet( limit = cms.untracked.int32(-1)),
0020     SiPixelQualityProbabilities           = cms.untracked.PSet( limit = cms.untracked.int32(-1))
0021     )
0022 
0023 ##
0024 ## Empty source
0025 ##
0026 process.source = cms.Source("EmptySource",
0027                             firstRun = cms.untracked.uint32(1),
0028                             numberEventsInRun    = cms.untracked.uint32(1),
0029                             firstLuminosityBlock = cms.untracked.uint32(1),
0030                             numberEventsInLuminosityBlock = cms.untracked.uint32(1),
0031                             )
0032 
0033 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(1))
0034 
0035 ##
0036 ## Database output service
0037 ##
0038 process.load("CondCore.CondDB.CondDB_cfi")
0039 
0040 ##
0041 ## Output database (in this case local sqlite file)
0042 ##
0043 process.CondDB.connect = 'sqlite_file:SiPixelQualityProbabilities_UltraLegacy2018_v0_mc.db'
0044 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0045                                           process.CondDB,
0046                                           timetype = cms.untracked.string('runnumber'),
0047                                           toPut = cms.VPSet(cms.PSet(record = cms.string('SiPixelStatusScenarioProbabilityRcd'),
0048                                                                      tag = cms.string('SiPixelQualityProbabilities_UltraLegacy2018_v0_mc')
0049                                                                      )
0050                                                             )
0051                                           )
0052 
0053 
0054 process.WriteInDB = cms.EDAnalyzer("SiPixelQualityProbabilitiesWriteFromASCII",
0055                                    printDebug    = cms.untracked.bool(False),
0056                                    record        = cms.string('SiPixelStatusScenarioProbabilityRcd'),
0057                                    probabilities = cms.string('prob_2018_-1.txt'),
0058                                    )
0059 
0060 process.p = cms.Path(process.WriteInDB)