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     cerr = cms.untracked.PSet(
0011         enable = cms.untracked.bool(False)
0012     ),
0013     cout = cms.untracked.PSet(
0014         enable = cms.untracked.bool(True)
0015     ),
0016     debugModules = cms.untracked.vstring('*'),
0017     files = cms.untracked.PSet(
0018         readFromFile_57620 = cms.untracked.PSet(
0019             threshold = cms.untracked.string('DEBUG')
0020         )
0021     )
0022 )
0023 
0024 
0025 #########################
0026 # maxEvents ...
0027 #########################
0028 
0029 process.maxEvents = cms.untracked.PSet(
0030      input = cms.untracked.int32(1))
0031 
0032 process.source = cms.Source("EmptySource",
0033     numberEventsInRun = cms.untracked.uint32(1),
0034     firstRun = cms.untracked.uint32(1)
0035 )
0036 
0037 #########################
0038 # DQM services
0039 #########################
0040 process.load("DQMServices.Core.DQM_cfg")
0041 #from DQMServices.Core.DQM_cfg import *
0042 
0043 
0044 ########################
0045 # DB parameters
0046 ########################
0047 
0048 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0049 #connect = cms.string("sqlite_file:historicDQM.db"),
0050 BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService'),
0051 connect = cms.string("sqlite_file:dbfile.db"),
0052 timetype = cms.untracked.string("runnumber"),
0053 DBParameters = cms.PSet(
0054    authenticationPath = cms.untracked.string("/afs/cern.ch/cms/DB/conddb"),
0055    messageLevel = cms.untracked.int32(4)
0056 ),
0057 toPut = cms.VPSet(
0058     cms.PSet(
0059         record = cms.string("SiStripBadStripRcd"),
0060         tag = cms.string("SiStripBadStrip_test1")
0061     )
0062 ),
0063 logconnect = cms.untracked.string("sqlite_file:log.db") 
0064 )
0065 
0066 
0067 ########################
0068 # POPCON Application
0069 ########################
0070 process.siStripPopConBadComponentsDQM = cms.EDAnalyzer("SiStripPopConBadComponentsDQM",
0071     record = cms.string("SiStripBadStripRcd"),
0072     loggingOn = cms.untracked.bool(True),
0073     SinceAppendMode = cms.bool(True),
0074     Source = cms.PSet(
0075         since = cms.untracked.uint32(105765),
0076         debug = cms.untracked.bool(False),
0077         ######################
0078         ## BadComponentsDQM ##
0079         ######################
0080         RunNb = cms.uint32(105765),
0081         accessDQMFile = cms.bool(True),
0082         FILE_NAME = cms.untracked.string("DQM_full_V0001_SiStrip_R000105765_T00000341.root"),
0083         ME_DIR = cms.untracked.string("Run 105765"),
0084         histoList = cms.VPSet()
0085     )
0086 )
0087 
0088 # Schedule
0089 
0090 process.p = cms.Path(process.siStripPopConBadComponentsDQM)
0091 process.asciiPrint = cms.OutputModule("AsciiOutputModule") 
0092 process.ep = cms.EndPath(process.asciiPrint)
0093     
0094 
0095 
0096