Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 23:29:39

0001 # The following comments couldn't be translated into the new config version:
0002 
0003 # upload to database 
0004 
0005 #string timetype = "timestamp"    
0006 
0007 import FWCore.ParameterSet.Config as cms
0008 
0009 process = cms.Process("Reader")
0010 
0011 process.MessageLogger = cms.Service("MessageLogger",
0012     cerr = cms.untracked.PSet(
0013         enable = cms.untracked.bool(False)
0014     ),
0015     debugModules = cms.untracked.vstring('BackPlaneCorrectionReaderSummary'),
0016     files = cms.untracked.PSet(
0017         BackPlaneCorrectionReader = cms.untracked.PSet(
0018 
0019         )
0020     ),
0021     threshold = cms.untracked.string('DEBUG')
0022 )
0023 
0024 
0025 process.maxEvents = cms.untracked.PSet(
0026     input = cms.untracked.int32(1)
0027 )
0028 process.source = cms.Source("EmptySource",
0029     numberEventsInRun = cms.untracked.uint32(1),
0030     firstRun = cms.untracked.uint32(200000)
0031 )
0032 
0033 #DBESSource
0034 process.poolDBESSource = cms.ESSource("PoolDBESSource",
0035    BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService'),
0036    DBParameters = cms.PSet(
0037         messageLevel = cms.untracked.int32(2),
0038         authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
0039     ),
0040     timetype = cms.untracked.string('runnumber'),
0041     connect = cms.string('sqlite_file:dbfile.db'),
0042     toGet = cms.VPSet(
0043        cms.PSet(
0044            record = cms.string('SiStripBackPlaneCorrectionRcd'),
0045            tag = cms.string('SiStripBackPlaneCorrection_deco_31X'),
0046            label = cms.untracked.string('deconvolution')
0047        ),
0048        cms.PSet(
0049            record = cms.string('SiStripBackPlaneCorrectionRcd'),
0050            tag = cms.string('SiStripBackPlaneCorrection_peak_31X'),
0051            label = cms.untracked.string('peak')
0052        ),
0053     )
0054 )
0055 
0056 #Latency producer
0057 process.load("CalibTracker.SiStripESProducers.fake.SiStripLatencyFakeESSource_cfi")
0058 from CalibTracker.SiStripESProducers.fake.SiStripLatencyFakeESSource_cfi import siStripLatencyFakeESSource
0059 #siStripLatencyFakeESSource.latency = 255
0060 #siStripLatencyFakeESSource.mode = 0
0061 siStripLatencyFakeESSource.latency = 143
0062 siStripLatencyFakeESSource.mode = 47
0063 # siStripLatencyFakeESSource.latency = 146
0064 # siStripLatencyFakeESSource.mode = 37
0065 
0066 #Dependent ESSource
0067 process.siStripBackPlaneCorrectionDepESProducer = cms.ESProducer("SiStripBackPlaneCorrectionDepESProducer",
0068      LatencyRecord =   cms.PSet(
0069             record = cms.string('SiStripLatencyRcd'),
0070             label = cms.untracked.string('')
0071             ),
0072         BackPlaneCorrectionPeakMode = cms.PSet(
0073             record = cms.string('SiStripBackPlaneCorrectionRcd'),
0074             label = cms.untracked.string('peak')
0075             ),
0076         BackPlaneCorrectionDeconvMode = cms.PSet(
0077             record = cms.string('SiStripBackPlaneCorrectionRcd'),
0078             label = cms.untracked.string('deconvolution')
0079             )
0080 )
0081 
0082 process.reader = cms.EDAnalyzer("SiStripBackPlaneCorrectionDepDummyPrinter")
0083                               
0084 process.p1 = cms.Path(process.reader)
0085 
0086