Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:12:33

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("PWRITE")
0004 
0005 #########################
0006 # message logger
0007 ######################### 
0008 
0009 process.MessageLogger = cms.Service("MessageLogger",
0010 destinations = cms.untracked.vstring('cout', 'readFromFile_RUNNUMBER'),
0011 readFromFile_RUNNUMBER = cms.untracked.PSet(
0012     threshold = cms.untracked.string('DEBUG')),
0013 debugModules = cms.untracked.vstring('*')
0014 )
0015 
0016 
0017 #########################
0018 # maxEvents ...
0019 #########################
0020 
0021 process.maxEvents = cms.untracked.PSet(
0022      input = cms.untracked.int32(1))
0023 
0024 process.source = cms.Source("EmptySource",
0025     timetype = cms.string("runnumber"),
0026     firstRun = cms.untracked.uint32(1),
0027     lastRun  = cms.untracked.uint32(1),
0028     interval = cms.uint32(1)
0029 )
0030 
0031 #########################
0032 # DQM services
0033 #########################
0034 process.load("DQMServices.Core.DQM_cfg")
0035 #from DQMServices.Core.DQM_cfg import *
0036 
0037 
0038 ########################
0039 # DB parameters
0040 ########################
0041 
0042 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0043 #connect = cms.string("sqlite_file:historicDQM.db"),
0044 BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService'),
0045 connect = cms.string("oracle://cms_orcon_prod/CMS_COND_31X_STRIP"),
0046 timetype = cms.untracked.string("runnumber"),
0047 DBParameters = cms.PSet(
0048    authenticationPath = cms.untracked.string("/nfshome0/popcondev/conddb"),
0049    messageLevel = cms.untracked.int32(1)
0050 ),
0051 toPut = cms.VPSet(
0052     cms.PSet(
0053         record = cms.string("SiStripBadStripRcd"),
0054         tag = cms.string("SiStripBadStrip_FromOnlineDQM_V2")
0055     )
0056 ),
0057 logconnect = cms.untracked.string("oracle://cms_orcon_prod/CMS_COND_31X_POPCONLOG") 
0058 )
0059 
0060 
0061 ########################
0062 # POPCON Application
0063 ########################
0064 process.siStripPopConBadComponentsDQM = cms.EDAnalyzer("SiStripPopConBadComponentsDQM",
0065     record = cms.string("SiStripBadStripRcd"),
0066     loggingOn = cms.untracked.bool(True),
0067     SinceAppendMode = cms.bool(True),
0068     Source = cms.PSet(
0069         since = cms.untracked.uint32(RUNNUMBER),
0070         debug = cms.untracked.bool(False),
0071         ######################
0072         ## BadComponentsDQM ##
0073         ######################
0074         RunNb = cms.uint32(RUNNUMBER),
0075         accessDQMFile = cms.bool(True),
0076         FILE_NAME = cms.untracked.string("FILENAME"),
0077         ME_DIR = cms.untracked.string("Run RUNNUMBER"),
0078         histoList = cms.VPSet()
0079     )
0080 )
0081 
0082 # Schedule
0083 
0084 process.p = cms.Path(process.siStripPopConBadComponentsDQM)
0085 process.asciiPrint = cms.OutputModule("AsciiOutputModule")
0086 process.ep = cms.EndPath(process.asciiPrint)
0087 
0088 
0089 
0090 
0091