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 process.load("Configuration.StandardSequences.GeometryDB_cff")
0008 process.load("Geometry.TrackerGeometryBuilder.trackerGeometry_cfi")
0009 process.load("Geometry.TrackerGeometryBuilder.idealForDigiTrackerGeometry_cff")
0010 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0011 
0012 #process.load("Geometry.TrackerNumberingBuilder.trackerNumberingGeometry_cfi")
0013 
0014 process.load("CondTools.SiPixel.SiPixelGainCalibrationService_cfi")
0015 
0016 process.load("CondCore.CondDB.CondDB_cfi")
0017 
0018 process.load("CalibTracker.SiPixelESProducers.SiPixelFakeGainESSource_cfi")
0019 
0020 process.TFileService = cms.Service("TFileService",
0021                                    fileName = cms.string("histo.root")
0022                                    )
0023 
0024 process.CondDB.connect = 'sqlite_file:prova.db'
0025 process.CondDB.DBParameters.messageLevel = 2
0026 process.CondDB.DBParameters.authenticationPath = '/afs/cern.ch/cms/DB/conddb'
0027 
0028 
0029 process.maxEvents = cms.untracked.PSet(
0030     input = cms.untracked.int32(1)
0031 )
0032 process.source = cms.Source("EmptySource",
0033     numberEventsInRun = cms.untracked.uint32(10),
0034     firstRun = cms.untracked.uint32(1)
0035 )
0036 
0037 process.Timing = cms.Service("Timing")
0038 
0039 process.SimpleMemoryCheck = cms.Service("SimpleMemoryCheck",
0040     ignoreTotal = cms.untracked.int32(0)
0041 )
0042 
0043 process.PoolDBESSource = cms.ESSource("PoolDBESSource",
0044     process.CondDB,
0045     BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService'),
0046     toGet = cms.VPSet(cms.PSet(
0047         record = cms.string('SiPixelGainCalibrationRcd'),
0048         tag = cms.string('GainCalib_v2_test')
0049     ))
0050 )
0051 
0052 process.prefer("PoolDBESSource")
0053 process.SiPixelCondObjReader = cms.EDAnalyzer("SiPixelCondObjReader",
0054     process.SiPixelGainCalibrationServiceParameters,
0055     maxRangeDeadPixHist = cms.untracked.double(0.001)
0056 )
0057 
0058 #process.print = cms.OutputModule("AsciiOutputModule")
0059 
0060 process.p = cms.Path(process.SiPixelCondObjReader)
0061 #process.ep = cms.EndPath(process.print)