Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:52:26

0001 """
0002 PixelPopConCalibChecker_cfg.py
0003 
0004 Python configuration file to run PixelPopConCalibChecker EDanalyzer, which 
0005 checks calib configuration objects transferred into the database.
0006 
0007 M. Eads
0008 Aug 2008
0009 """
0010 
0011 import FWCore.ParameterSet.Config as cms
0012 
0013 process = cms.Process("TEST")
0014 
0015 process.load("FWCore.MessageService.MessageLogger_cfi")
0016 
0017 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
0018 
0019 # define the EmptyIOVSource
0020 # firstRun and lastRun should both be set to the run number you want to check
0021 process.source = cms.Source('EmptyIOVSource',
0022                             timetype = cms.string('runnumber'),
0023                             firstValue = cms.uint64(1),
0024                             lastValue = cms.uint64(1),
0025                             interval = cms.uint64(1)
0026 )
0027 
0028 from CondTools.SiPixel.SiPixelCalibConfiguration_cfi import *
0029 # select the database from which to read the calib configuration object
0030 sipixelcalib_essource.connect = 'sqlite_file:/path/to/testExample.db'
0031 
0032 sipixelcalib_essource.toGet = cms.VPSet(cms.PSet(# record is specified in CMSSW and shouldn't be changed
0033                                                  record = cms.string('SiPixelCalibConfigurationRcd'),
0034                                                  # change the tag to the tag used when loading the calib configuration object
0035                                                  tag = cms.string('mytest')
0036                                                  )
0037                                         )
0038 process.sipixelcalib_essource = sipixelcalib_essource
0039 
0040 
0041 process.demo = cms.EDAnalyzer('PixelPopConCalibChecker',
0042                               # filename is the path to the calib.dat file you want to compare to the calib configuration object in the database
0043                               filename = cms.string('/afs/cern.ch/user/m/meads/test_calib.dat'),
0044                               # messageLevel controls the verbosity of the output. 2 (or larger) spits out everything
0045                               messageLevel = cms.untracked.int32(2)
0046                               )
0047 
0048 
0049 process.p = cms.Path(process.demo)