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 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.SiPixelQualityProbabilitiesTestWriter=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     SiPixelQualityProbabilitiesTestWriter = cms.untracked.PSet( limit = cms.untracked.int32(-1)),
0020     SiPixelQualityProbabilities           = cms.untracked.PSet( limit = cms.untracked.int32(-1))
0021     )
0022 
0023 
0024 ##
0025 ## Empty source
0026 ##
0027 process.source = cms.Source("EmptySource",
0028                             firstRun = cms.untracked.uint32(1),
0029                             numberEventsInRun    = cms.untracked.uint32(1),
0030                             firstLuminosityBlock = cms.untracked.uint32(1),
0031                             numberEventsInLuminosityBlock = cms.untracked.uint32(1),
0032                             )
0033 
0034 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(1))
0035 
0036 ##
0037 ## Database output service
0038 ##
0039 process.load("CondCore.CondDB.CondDB_cfi")
0040 
0041 ##
0042 ## Output database (in this case local sqlite file)
0043 ##
0044 process.CondDB.connect = 'sqlite_file:SiPixelStatusScenarioProbabilities.db'
0045 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0046                                           process.CondDB,
0047                                           timetype = cms.untracked.string('runnumber'),
0048                                           toPut = cms.VPSet(cms.PSet(record = cms.string('SiPixelStatusScenarioProbabilityRcd'),
0049                                                                      tag = cms.string('SiPixelQualityProbabilities_v0_mc')
0050                                                                      )
0051                                                             )
0052                                           )
0053 
0054 
0055 process.WriteInDB = cms.EDAnalyzer("SiPixelQualityProbabilitiesTestWriter",
0056                                    printDebug    = cms.untracked.bool(True),
0057                                    record        = cms.string('SiPixelStatusScenarioProbabilityRcd'),
0058                                    probabilities = cms.string('snapshotProb_322633.txt'),
0059                                    snapshots     = cms.string('snapshot_ids.txt')
0060                                    )
0061 
0062 process.p = cms.Path(process.WriteInDB)