Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-12-01 23:40:05

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("ICALIB")
0004 process.source = cms.Source("EmptyIOVSource",
0005     firstValue = cms.uint64(1),
0006     lastValue = cms.uint64(1),
0007     timetype = cms.string('runnumber'),
0008     interval = cms.uint64(1)
0009 )
0010 
0011 process.load('FWCore.MessageService.MessageLogger_cfi')   
0012 process.MessageLogger.cerr.enable = False
0013 process.MessageLogger.SiStripApvGainFromDeDxCalibration=dict()  
0014 process.MessageLogger.cout = cms.untracked.PSet(
0015     enable = cms.untracked.bool(True),
0016     threshold = cms.untracked.string("DEBUG"),
0017     default   = cms.untracked.PSet(limit = cms.untracked.int32(0)),                       
0018     FwkReport = cms.untracked.PSet(limit = cms.untracked.int32(-1),
0019                                    reportEvery = cms.untracked.int32(1000)
0020                                    ),                                                      
0021     SiStripApvGainFromDeDxCalibration = cms.untracked.PSet( limit = cms.untracked.int32(-1)),
0022     enableStatistics = cms.untracked.bool(True)
0023     )
0024 
0025 
0026 process.load("Configuration.Geometry.GeometryExtended2024_cff")
0027 process.load("Geometry.TrackerGeometryBuilder.trackerParameters_cfi")
0028 process.TrackerTopologyEP = cms.ESProducer("TrackerTopologyEP")
0029 
0030 #Setup the SiSTripFedCabling and the SiStripDetCabling
0031 process.load("CondCore.CondDB.CondDB_cfi")
0032 process.CondDB.connect='frontier://FrontierProd/CMS_CONDITIONS'
0033 
0034 process.poolDBESSource = cms.ESSource('PoolDBESSource',
0035                                       process.CondDB,
0036                                       BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService'),
0037                                       toGet = cms.VPSet( cms.PSet(record = cms.string('DeDxCalibrationRcd'),
0038                                                                   tag    = cms.string('DeDxCalibration_HI_2024_prompt_v2')
0039                                                                   )
0040                                                         )
0041                                      )
0042                                                                     
0043 process.maxEvents = cms.untracked.PSet(
0044     input = cms.untracked.int32(1)
0045 )
0046 
0047 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0048     BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService'),
0049     DBParameters = cms.PSet(
0050         authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
0051     ),
0052     timetype = cms.untracked.string('runnumber'),
0053     connect = cms.string('sqlite_file:SiStripApvGainFromDeDxCalibration_HI_2024_prompt_v2.db'),
0054     toPut = cms.VPSet(cms.PSet(
0055         record = cms.string('SiStripApvGainRcd'),
0056         tag = cms.string('SiStripApvGainFromDeDxCalibration_HI_2024_prompt_v2')
0057     ))
0058 )
0059 
0060 from CondTools.SiStrip.siStripApvGainFromDeDxCalibration_cfi import siStripApvGainFromDeDxCalibration
0061 process.prod = siStripApvGainFromDeDxCalibration.clone(
0062     file = cms.untracked.FileInPath('CalibTracker/SiStripCommon/data/SiStripDetInfo.dat'),
0063     printDebug = cms.untracked.uint32(100)  
0064 )
0065 process.p = cms.Path(process.prod)