Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:59:53

0001 # -*- coding: utf-8 -*-
0002 # The following comments couldn't be translated into the new config version:
0003 
0004 # upload to database 
0005 
0006 #string timetype = "timestamp"    
0007 
0008 import FWCore.ParameterSet.Config as cms
0009 
0010 process = cms.Process("Reader")
0011 
0012 # Use this to have also debug info (WARNING: the resulting file is > 200MB.
0013 process.MessageLogger = cms.Service("MessageLogger",
0014     cerr = cms.untracked.PSet(
0015         enable = cms.untracked.bool(False)
0016     ),
0017     debugModules = cms.untracked.vstring('*'),
0018     files = cms.untracked.PSet(
0019         LorentzAngleDepReaderDebug = cms.untracked.PSet(
0020             threshold = cms.untracked.string('DEBUG')
0021         ),
0022         LorentzAngleDepReaderSummary = cms.untracked.PSet(
0023             threshold = cms.untracked.string('INFO')
0024         )
0025     )
0026 )
0027 
0028 # How to use the EmptyIOVSource:
0029 # the EmptyIOVSource will generate N events with a given interval.
0030 # the N events must be specified in the maxEvents as usual but the
0031 # first value, last value, timetype (runnumber, timestamp or lumiid) must be specified
0032 # in the EmptyIOVSource configuration block. It will then generate events with the given
0033 # interval.
0034 # To generate one event per run in a given range of runs you should then use:
0035 # - first - last value as the run range
0036 # - interval == 1 (means move of one run unit at a time)
0037 # - maxEvents = lastValue - firstValue (so that there is one event per run
0038 # otherwise it will stop before completing the range or it will go beyond (to infinity).
0039 
0040 process.maxEvents = cms.untracked.PSet(
0041     input = cms.untracked.int32(10)
0042 )
0043 process.source = cms.Source("EmptyIOVSource",
0044     timetype   = cms.string('runnumber'),
0045     firstValue = cms.uint64(1),
0046     lastValue  = cms.uint64(11),
0047     interval = cms.uint64(1)
0048 )
0049 
0050 
0051 process.load("CalibTracker.SiStripESProducers.SiStripLorentzAngleDepESProducer_cfi")
0052 
0053 # Need to specify the Record for each BaseDelay.
0054 # Optionally the Label associated to the tag can also be specified (default = "").
0055 
0056 process.siStripLorentzAngleDepESProducer.LatencyRecord =   cms.PSet(
0057        record = cms.string('SiStripLatencyRcd'),
0058        label = cms.untracked.string('Latency'))
0059        
0060 process.siStripLorentzAngleDepESProducer.LorentzAnglePeakMode = cms.PSet(
0061        record = cms.string('SiStripLorentzAngleRcd'),
0062        label = cms.untracked.string('LA1'))
0063 
0064 process.siStripLorentzAngleDepESProducer.LorentzAngleDeconvMode = cms.PSet(
0065        record = cms.string('SiStripLorentzAngleRcd'),
0066        label = cms.untracked.string('LA2'))
0067 
0068 
0069 process.poolDBESSource = cms.ESSource(
0070     "PoolDBESSource",
0071     BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService'),
0072     DBParameters = cms.PSet(
0073         messageLevel = cms.untracked.int32(2),
0074         authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
0075     ),
0076     timetype = cms.untracked.string('runnumber'),
0077     connect = cms.string('sqlite_file:/afs/cern.ch/user/r/rebeca/public/dbfile.db'),
0078     toGet = cms.VPSet(
0079         cms.PSet(
0080             record = cms.string('SiStripLatencyRcd'),
0081             tag = cms.string('SiStripLatency_Ideal_31X'),
0082             label = cms.untracked.string('Latency')
0083             ),
0084         cms.PSet(
0085             record = cms.string('SiStripLorentzAngleRcd'),
0086             tag = cms.string('SiStripLorentzAngle_1'),
0087             label = cms.untracked.string('LA1')
0088             ),
0089         cms.PSet(
0090             record = cms.string('SiStripLorentzAngleRcd'),
0091             tag = cms.string('SiStripLorentzAngle_2'),
0092             label = cms.untracked.string('LA2')
0093             )
0094         )
0095     )
0096 
0097 process.reader = cms.EDAnalyzer("SiStripLorentzAngleDepDummyPrinter")
0098                               
0099 process.p1 = cms.Path(process.reader)
0100 
0101