File indexing completed on 2024-04-06 12:03:26
0001 import FWCore.ParameterSet.Config as cms
0002 import sys
0003
0004 process = cms.Process("SiPixelGenErrorDBObjectReaderTest")
0005 process.load("CondCore.DBCommon.CondDBSetup_cfi")
0006 process.load("FWCore.MessageService.MessageLogger_cfi")
0007 process.load("Configuration.StandardSequences.MagneticField_cff")
0008
0009
0010 process.source = cms.Source("EmptySource")
0011
0012 process.maxEvents = cms.untracked.PSet(
0013 input = cms.untracked.int32(1)
0014 )
0015
0016 testGlobalTag = False
0017 if testGlobalTag :
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0028 from Configuration.AlCa.autoCond import autoCond
0029
0030
0031
0032 process.GlobalTag.globaltag = autoCond['run2_mc']
0033
0034 process.GlobalTag.globaltag = "GR_R_72_V5"
0035
0036
0037
0038 else:
0039 process.PoolDBESSource = cms.ESSource("PoolDBESSource",
0040 process.CondDBSetup,
0041 toGet = cms.VPSet(
0042 cms.PSet(
0043 record = cms.string('SiPixelGenErrorDBObjectRcd'),
0044
0045 tag = cms.string('SiPixelGenErrorDBObject38Tv1')
0046 )),
0047 timetype = cms.string('runnumber'),
0048
0049
0050 connect = cms.string('sqlite_file:siPixelGenErrors38Tv1.db')
0051 )
0052 process.PoolDBESSource.DBParameters.authenticationPath='.'
0053 process.PoolDBESSource.DBParameters.messageLevel=0
0054
0055
0056 process.reader = cms.EDAnalyzer("SiPixelGenErrorDBObjectReader",
0057
0058 siPixelGenErrorCalibrationLocation = cms.string(""),
0059
0060
0061
0062
0063 wantDetailedGenErrorDBErrorOutput = cms.bool(True),
0064 wantFullGenErrorDBOutput = cms.bool(True)
0065 )
0066
0067 process.p = cms.Path(process.reader)
0068
0069
0070
0071
0072
0073