Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:03:26

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("PixelDBReader")
0004 process.load("FWCore.MessageService.MessageLogger_cfi")
0005 
0006 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0007 from Configuration.AlCa.GlobalTag import GlobalTag
0008 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run3_data', '')
0009 process.load("Configuration.Geometry.GeometryRecoDB_cff")
0010 
0011 process.load("CondTools.SiPixel.SiPixelGainCalibrationService_cfi")
0012 
0013 process.TFileService = cms.Service("TFileService",
0014                                    fileName = cms.string("histo_GainsForHLT.root")
0015                                    )
0016 
0017 process.load("CondCore.CondDB.CondDB_cfi")
0018 process.CondDB.connect = 'frontier://FrontierProd/CMS_CONDITIONS'
0019 process.CondDB.DBParameters.messageLevel = 2
0020 process.CondDB.DBParameters.authenticationPath = ''
0021 
0022 process.maxEvents = cms.untracked.PSet(
0023     input = cms.untracked.int32(1)
0024 )
0025 process.source = cms.Source("EmptySource",
0026     numberEventsInRun = cms.untracked.uint32(10),
0027     firstRun = cms.untracked.uint32(1)
0028 )
0029 
0030 process.Timing = cms.Service("Timing")
0031 
0032 process.SimpleMemoryCheck = cms.Service("SimpleMemoryCheck",
0033     ignoreTotal = cms.untracked.int32(0)
0034 )
0035 
0036 process.PoolDBESSource = cms.ESSource("PoolDBESSource",
0037     process.CondDB,
0038     BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService'),
0039     toGet = cms.VPSet(cms.PSet(
0040         record = cms.string('SiPixelGainCalibrationForHLTRcd'),
0041         tag = cms.string('SiPixelGainCalibrationHLT_2009runs_express')
0042     ))
0043 )
0044 
0045 process.prefer("PoolDBESSource")
0046 process.SiPixelCondObjForHLTReader = cms.EDAnalyzer("SiPixelCondObjForHLTReader",
0047                                                     process.SiPixelGainCalibrationServiceParameters,
0048                                                     maxRangeDeadPixHist = cms.untracked.double(0.001),
0049                                                     useSimRcd = cms.bool(False)
0050                                                     )
0051 
0052 #process.print = cms.OutputModule("AsciiOutputModule")
0053 
0054 process.p = cms.Path(process.SiPixelCondObjForHLTReader)
0055 #process.ep = cms.EndPath(process.print)