Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-09-23 03:13:55

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 #process.GlobalTag.globaltag = "CRAFT_ALL_V5::All"
0010 
0011 process.insertNoisyandDead = cms.EDAnalyzer("SiPixelGainCalibrationRejectNoisyAndDead",
0012     #record = cms.untracked.string('SiPixelGainCalibrationOfflineRcd'),                
0013     record = cms.untracked.string('SiPixelGainCalibrationForHLTRcd'),                  
0014     debug = cms.untracked.bool(False)              
0015 )
0016 
0017 process.load("FWCore.MessageService.MessageLogger_cfi")
0018 
0019 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(1) )
0020 
0021 
0022 process.source = cms.Source("EmptyIOVSource",                            
0023                             lastRun = cms.untracked.uint32(1),
0024                             timetype = cms.string('runnumber'),
0025                             firstValue = cms.uint64(1),
0026                             lastValue=cms.uint64(1),
0027                             interval = cms.uint64(1)
0028                             )
0029 
0030 #Input DB
0031 process.PoolDBESSource = cms.ESSource("PoolDBESSource",
0032     BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService'),
0033     DBParameters = cms.PSet(
0034         messageLevel = cms.untracked.int32(10),
0035         authenticationPath = cms.untracked.string('.')
0036     ),
0037     toGet = cms.VPSet(cms.PSet(
0038         #record = cms.string('SiPixelGainCalibrationOfflineRcd'),
0039         record = cms.string('SiPixelGainCalibrationForHLTRcd'),
0040         tag = cms.string('SiPixelGainCalibration_TBuffer_hlt_const')
0041     )),
0042     connect = cms.string('sqlite_file:prova_HLT.db')
0043 
0044 )
0045 
0046 #Output DB
0047 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0048     BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService'),
0049     DBParameters = cms.PSet(
0050         messageLevel = cms.untracked.int32(10),
0051         authenticationPath = cms.untracked.string('.')
0052     ),
0053     toPut = cms.VPSet(
0054         cms.PSet(
0055             #record = cms.string('SiPixelGainCalibrationOfflineRcd'),
0056             record = cms.string('SiPixelGainCalibrationForHLTRcd'),
0057             tag = cms.string('GainCalib_TEST_hlt')
0058     )),
0059     connect = cms.string('sqlite_file:provaOUT.db')
0060 )
0061 
0062 process.prefer("PoolDBESSource")
0063 process.p = cms.Path(process.insertNoisyandDead)