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 = "STARTUP_V8::All"
0010 
0011 process.TFileService = cms.Service("TFileService",
0012                                    fileName = cms.string('/tmp/rougny/histos.root')
0013                                    )
0014 process.readfileOffline = cms.EDAnalyzer("SiPixelGainCalibrationReadDQMFile",
0015 #    supportedProtocols = cms.vstring('rfio'),
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 #    supportedProtocols = cms.vstring('rfio'),
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                       #      lastRun = cms.untracked.uint32(1),
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 #        authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
0050     ),
0051     toPut = cms.VPSet(
0052         cms.PSet(
0053             record = cms.string('SiPixelGainCalibrationOfflineRcd'),
0054             tag = cms.string('GainCalib_TEST_offline')
0055         )
0056 #        cms.PSet(
0057 #            record = cms.string('SiPixelGainCalibrationForHLTRcd'),
0058 #            tag = cms.string('GainCalib_TEST_hlt')
0059 #        ),
0060         
0061     ),
0062     connect = cms.string('sqlite_file:prova.db')
0063 #    connect = cms.string('oracle://cms_orcoff_int2r/CMS_COND_21X_PIXEL')
0064 )
0065 
0066 
0067 
0068 
0069 process.p = cms.Path(process.readfileOffline)
0070