File indexing completed on 2023-03-17 10:48:46
0001 import FWCore.ParameterSet.Config as cms
0002
0003 process = cms.Process("test")
0004 process.load("CondTools.SiPixel.SiPixelGainCalibrationService_cfi")
0005 process.load("Configuration.StandardSequences.GeometryDB_cff")
0006 process.load("Geometry.TrackerGeometryBuilder.trackerGeometry_cfi")
0007 process.load("Geometry.TrackerGeometryBuilder.idealForDigiTrackerGeometry_cff")
0008 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0009
0010
0011 process.TFileService = cms.Service("TFileService",
0012 fileName = cms.string('/tmp/rougny/histos.root')
0013 )
0014 process.readfileOffline = cms.EDAnalyzer("SiPixelGainCalibrationReadDQMFile",
0015
0016 inputrootfile = cms.untracked.string('file:///tmp/rougny/test.root'),
0017 record = cms.untracked.string('SiPixelGainCalibrationOfflineRcd'),
0018 useMeanWhenEmpty = cms.untracked.bool(False),
0019 badChi2Prob = cms.untracked.double(0.00001)
0020 )
0021
0022 process.readfileHLT = cms.EDAnalyzer("SiPixelGainCalibrationReadDQMFile",
0023
0024 inputrootfile = cms.untracked.string('file:///tmp/rougny/test.root'),
0025 record = cms.untracked.string('SiPixelGainCalibrationForHLTRcd'),
0026 useMeanWhenEmpty = cms.untracked.bool(False),
0027 badChi2Prob = cms.untracked.double(0.00001)
0028 )
0029
0030 process.maxEvents = cms.untracked.PSet(
0031 input = cms.untracked.int32(1)
0032 )
0033
0034 process.source = cms.Source("EmptyIOVSource",
0035
0036 timetype = cms.string('runnumber'),
0037 firstValue = cms.uint64(1),
0038 lastValue = cms.uint64(1),
0039 interval = cms.uint64(1)
0040 )
0041
0042
0043
0044 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0045 BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService'),
0046 DBParameters = cms.PSet(
0047 messageLevel = cms.untracked.int32(10),
0048 authenticationPath = cms.untracked.string('.')
0049
0050 ),
0051 toPut = cms.VPSet(
0052 cms.PSet(
0053 record = cms.string('SiPixelGainCalibrationOfflineRcd'),
0054 tag = cms.string('GainCalib_TEST_offline')
0055 )
0056
0057
0058
0059
0060
0061 ),
0062 connect = cms.string('sqlite_file:prova.db')
0063
0064 )
0065
0066
0067
0068
0069 process.p = cms.Path(process.readfileOffline)
0070