Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("ICALIB")
0004 process.source = cms.Source("EmptyIOVSource",
0005     firstValue = cms.uint64(325642),
0006     lastValue = cms.uint64(325642),
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.SiStripApvGainFromFileBuilder=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     SiStripApvGainFromFileBuilder = cms.untracked.PSet( limit = cms.untracked.int32(-1)),
0022     enableStatistics = cms.untracked.bool(True)
0023     )
0024 
0025 #process.load('Configuration.Geometry.GeometryDB_cff')
0026 #process.load('Configuration.Geometry.GeometryIdeal_cff')
0027 
0028 process.load("Configuration.Geometry.GeometryExtended2017_cff")
0029 process.load("Geometry.TrackerGeometryBuilder.trackerParameters_cfi")
0030 process.TrackerTopologyEP = cms.ESProducer("TrackerTopologyEP")
0031 
0032 #Setup the SiSTripFedCabling and the SiStripDetCabling
0033 process.load("CondCore.CondDB.CondDB_cfi")
0034 process.CondDB.connect='frontier://FrontierProd/CMS_CONDITIONS'
0035 
0036 process.poolDBESSource = cms.ESSource('PoolDBESSource',
0037                                       process.CondDB,
0038                                       BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService'),
0039                                       toGet = cms.VPSet( cms.PSet(record = cms.string('SiStripFedCablingRcd'),
0040                                                                   tag    = cms.string('SiStripFedCabling_GR10_v1_hlt')
0041                                                                   )
0042                                                         )
0043                                      )
0044                                                                     
0045 process.load("CalibTracker.SiStripESProducers.SiStripConnectivity_cfi")
0046 
0047 process.maxEvents = cms.untracked.PSet(
0048     input = cms.untracked.int32(1)
0049 )
0050 
0051 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0052     BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService'),
0053     DBParameters = cms.PSet(
0054         authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
0055     ),
0056     timetype = cms.untracked.string('runnumber'),
0057     connect = cms.string('sqlite_file:dbfile.db'),
0058     toPut = cms.VPSet(cms.PSet(
0059         record = cms.string('SiStripApvGainRcd'),
0060         tag = cms.string('SiStripApvGainRcd_v1')
0061     ))
0062 )
0063 
0064 from CondTools.SiStrip.siStripApvGainFromFileBuilder_cfi import siStripApvGainFromFileBuilder
0065 process.prod = siStripApvGainFromFileBuilder.clone(doGainNormalization = True,      # do normalize the gains
0066                                                    putDummyIntoUncabled = True,     # all defects to default
0067                                                    putDummyIntoUnscanned = True,    # all defects to default
0068                                                    putDummyIntoOffChannels = True,  # all defects to default
0069                                                    putDummyIntoBadChannels = True,  # all defects to default
0070                                                    outputMaps = True,
0071                                                    outputSummary = True)
0072 process.p = cms.Path(process.prod)
0073 
0074