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.SiPixelFEDChannelContainerWriteFromASCII=dict()  
0010 process.MessageLogger.SiPixelFEDChannelContainer=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(100)
0018                                    ),                                                      
0019     SiPixelFEDChannelContainerWriteFromASCII = cms.untracked.PSet( limit = cms.untracked.int32(-1)),
0020     SiPixelFEDChannelContainer           = 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(25000000))
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:SiPixelStatusScenarios_UltraLegacy2018_v0_mc.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('SiPixelStatusScenariosRcd'),
0049                                                                      tag = cms.string('SiPixelStatusScenarios_UltraLegacy2018_v0_mc')
0050                                                                      )
0051                                                             )
0052                                           )
0053 
0054 process.WriteInDB = cms.EDAnalyzer("SiPixelFEDChannelContainerWriteFromASCII",
0055                                    record     = cms.string('SiPixelStatusScenariosRcd'),
0056                                    snapshots  = cms.string('scenarios_2018_-1.txt'),
0057                                    printDebug = cms.untracked.bool(False),
0058                                    addDefault = cms.untracked.bool(False)
0059                                    )
0060 
0061 process.p = cms.Path(process.WriteInDB)