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.SiPixelFEDChannelContainerFromQualityConverter=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(1000)
0018                                    ),                                                      
0019     SiPixelFEDChannelContainerFromQualityConverter = 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(315704),
0028                             numberEventsInRun    = cms.untracked.uint32(2000),
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(10000))
0035 
0036 ##
0037 ## Database output service
0038 ##
0039 process.load("CondCore.CondDB.CondDB_cfi")
0040 
0041 # DB input service: 
0042 process.CondDB.connect = "frontier://FrontierProd/CMS_CONDITIONS"
0043 process.dbInput = cms.ESSource("PoolDBESSource",
0044                                process.CondDB,
0045                                toGet = cms.VPSet(cms.PSet(record = cms.string("SiPixelQualityFromDbRcd"),
0046                                                           #tag = cms.string("SiPixelQuality_byPCL_stuckTBM_v1")
0047                                                           tag = cms.string("SiPixelQuality_byPCL_other_v1")
0048                                                           ),
0049                                                  cms.PSet(record = cms.string("SiPixelFedCablingMapRcd"),
0050                                                           tag = cms.string("SiPixelFedCablingMap_phase1_v7")
0051                                                           )
0052                                                  )
0053                                )
0054 ##
0055 ## Output database (in this case local sqlite file)
0056 ##
0057 process.CondDB.connect = 'sqlite_file:SiPixelStatusScenarios_v2.db'
0058 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0059                                           process.CondDB,
0060                                           timetype = cms.untracked.string('runnumber'),
0061                                           toPut = cms.VPSet(cms.PSet(record = cms.string('SiPixelStatusScenariosRcd'),
0062                                                                      tag = cms.string('SiPixelFEDChannelContainer_StuckTBM_2018_v1_mc')
0063                                                                      )
0064                                                             )
0065                                           )
0066 
0067 process.WriteInDB = cms.EDAnalyzer("SiPixelFEDChannelContainerFromQualityConverter",
0068                                    record = cms.string('SiPixelStatusScenariosRcd'),
0069                                    removeEmptyPayloads = cms.untracked.bool(True)
0070                                    )
0071 
0072 process.p = cms.Path(process.WriteInDB)