Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:09:17

0001 #
0002 # Produce DQM plots that compare calibration constants
0003 # from two different databases or sqlite files
0004 #
0005 # author: Stefano Argiro
0006 # revision $Id$
0007 #
0008 
0009 
0010 
0011 import FWCore.ParameterSet.Config as cms
0012 
0013 process = cms.Process("ecalCalibDQM")
0014 process.load("CondCore.DBCommon.CondDBSetup_cfi")
0015 
0016 
0017 process.load("DQMServices.Core.DQM_cfg")
0018 
0019 
0020 poolDBESSource.connect = "frontier://FrontierDev/CMS_COND_ALIGNMENT"
0021 poolDBESSource.toGet = cms.VPSet(cms.PSet(
0022         record = cms.string('GlobalPositionRcd'),
0023         tag = cms.string('IdealGeometry')
0024     )) 
0025 process.glbPositionSource = poolDBESSource
0026 
0027 
0028 process.source = cms.Source("EmptySource",
0029     numberEventsInRun = cms.untracked.uint32(1),
0030     firstRun = cms.untracked.uint32(1)
0031 )
0032 
0033 process.maxEvents = cms.untracked.PSet(
0034     input = cms.untracked.int32(1)
0035 )
0036 process.calibRef = cms.ESSource("PoolDBESSource",
0037     process.CondDBSetup,
0038     toGet = cms.VPSet(cms.PSet(
0039         record = cms.string('EcalIntercalibConstantsRcd'),
0040         tag = cms.string(''),
0041         connect = cms.untracked.string(''),
0042         label = cms.untracked.string('db1')
0043     ), 
0044         cms.PSet(
0045             record = cms.string('EcalIntercalibConstantsRcd'),
0046             tag = cms.string(''),
0047             connect = cms.untracked.string(''),
0048             label = cms.untracked.string('db2')
0049         )),
0050     connect = cms.string('')
0051 )
0052 
0053 
0054 process.monitorEcalCalib = cms.EDFilter("DQMEcalCalibConstants",
0055                                   FolderName=cms.untracked.string(""),
0056                                   SaveToFile=cms.untracked.bool(True),
0057                                   FileName=cms.untracked.string("c.root"),
0058                                   DBlabel=cms.untracked.string("db1"),
0059                                   RefDBlabel=cms.untracked.string("db2"),      
0060                                   )
0061 
0062 process.p = cms.Path(process.monitorEcalCalib)
0063 process.DQM.collectorHost = ''
0064 
0065