Back to home page

Project CMSSW displayed by LXR

 
 

    


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

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 # Use this to have also debug info (WARNING: the resulting file is > 200MB.
0012 process.MessageLogger = cms.Service("MessageLogger",
0013     cerr = cms.untracked.PSet(
0014         enable = cms.untracked.bool(False)
0015     ),
0016     cout = cms.untracked.PSet(
0017         threshold = cms.untracked.string('INFO')
0018     ),
0019     debugModules = cms.untracked.vstring('*'),
0020     files = cms.untracked.PSet(
0021         PedestalsReaderDebug = cms.untracked.PSet(
0022             threshold = cms.untracked.string('DEBUG')
0023         ),
0024         PedestalsReaderSummary = cms.untracked.PSet(
0025             threshold = cms.untracked.string('INFO')
0026         )
0027     )
0028 )
0029 
0030 # Use this instead to see only the summary
0031 #process.MessageLogger = cms.Service("MessageLogger",
0032 #    debugModules = cms.untracked.vstring(''),
0033 #    PedestalsReaderSummary = cms.untracked.PSet(
0034 #        threshold = cms.untracked.string('INFO')
0035 #    ),
0036 #    cout = cms.untracked.PSet(
0037 #        threshold = cms.untracked.string('INFO')
0038 #    ),
0039 #    destinations = cms.untracked.vstring('PedestalsReaderSummary')
0040 #)
0041 
0042 process.maxEvents = cms.untracked.PSet(
0043     input = cms.untracked.int32(1)
0044 )
0045 process.source = cms.Source("EmptySource",
0046     numberEventsInRun = cms.untracked.uint32(1),
0047     firstRun = cms.untracked.uint32(100000)
0048 )
0049 
0050 process.poolDBESSource = cms.ESSource("PoolDBESSource",
0051    BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService'),
0052    DBParameters = cms.PSet(
0053         messageLevel = cms.untracked.int32(2),
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 #    connect = cms.string('oracle://cms_orcoff_prod/CMS_COND_21X_STRIP'),
0059     toGet = cms.VPSet(cms.PSet(
0060         record = cms.string('SiStripPedestalsRcd'),
0061 #        tag = cms.string('SiStripNoise_CRAFT_21X_v4_offline')
0062         tag = cms.string('SiStripPedestals_Ideal_31X')
0063     ))
0064 )
0065 
0066 process.reader = cms.EDFilter("SiStripPedestalsDummyPrinter")
0067                               
0068 process.p1 = cms.Path(process.reader)
0069 
0070