Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-11-17 01:40:51

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("PixelDBReader")
0004 process.load("FWCore.MessageService.MessageLogger_cfi")
0005 
0006 process.load("Geometry.TrackerSimData.trackerSimGeometryXML_cfi")
0007 
0008 process.load("Geometry.TrackerGeometryBuilder.trackerGeometry_cfi")
0009 
0010 process.load("Geometry.TrackerNumberingBuilder.trackerNumberingGeometry_cfi")
0011 
0012 process.load("CondTools.SiPixel.SiPixelGainCalibrationService_cfi")
0013 
0014 process.TFileService = cms.Service("TFileService",
0015                                    fileName = cms.string("histo.root")
0016                                    )
0017 
0018 process.load("CondCore.CondDB.CondDB_cfi")
0019 process.CondDB.connect = 'sqlite_file:prova.db'
0020 process.CondDB.DBParameters.messageLevel = 2
0021 process.CondDB.DBParameters.authenticationPath = '/afs/cern.ch/cms/DB/conddb'
0022 
0023 process.load("CalibTracker.SiPixelESProducers.SiPixelFakeGainESSource_cfi")
0024 
0025 process.maxEvents = cms.untracked.PSet(
0026     input = cms.untracked.int32(1)
0027 )
0028 process.source = cms.Source("EmptySource",
0029     numberEventsInRun = cms.untracked.uint32(10),
0030     firstRun = cms.untracked.uint32(1)
0031 )
0032 
0033 process.Timing = cms.Service("Timing")
0034 
0035 process.SimpleMemoryCheck = cms.Service("SimpleMemoryCheck",
0036     ignoreTotal = cms.untracked.int32(0)
0037 )
0038 
0039 process.PoolDBESSource = cms.ESSource("PoolDBESSource",
0040     process.CondDB,
0041     BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService'),
0042     toGet = cms.VPSet(cms.PSet(
0043         record = cms.string('SiPixelGainCalibrationRcd'),
0044         tag = cms.string('GainCalibTestFull')
0045     ), 
0046         cms.PSet(
0047             record = cms.string('SiPixelGainCalibrationForHLTRcd'),
0048             tag = cms.string('GainCalibTestHLT')
0049         ), 
0050         cms.PSet(
0051             record = cms.string('SiPixelGainCalibrationOfflineRcd'),
0052             tag = cms.string('GainCalibTestOffline')
0053         ))
0054 )
0055 
0056 process.prefer("PoolDBESSource")
0057 process.SiPixelCondObjAllPayloadsReader = cms.EDAnalyzer("SiPixelCondObjAllPayloadsReader",
0058     process.SiPixelGainCalibrationServiceParameters,
0059     payloadType = cms.string('HLT')
0060 )
0061 
0062 #process.print = cms.OutputModule("AsciiOutputModule")
0063 
0064 process.p = cms.Path(process.SiPixelCondObjAllPayloadsReader)
0065 #process.ep = cms.EndPath(process.print)
0066