text: # The following comments couldn't be translated into the new config version:
  
  # upload to database 
  
  #string timetype = "timestamp"    
  
  import FWCore.ParameterSet.Config as cms
  
  process = cms.Process("Reader")
  
  process.MessageLogger = cms.Service("MessageLogger",
      debugModules = cms.untracked.vstring(''),
      QualityReader = cms.untracked.PSet(
          threshold = cms.untracked.string('INFO')
      ),
      destinations = cms.untracked.vstring('QualityReader')
  )
  
  process.maxEvents = cms.untracked.PSet(
      input = cms.untracked.int32(100)
  )
  process.source = cms.Source("EmptySource",
      numberEventsInRun = cms.untracked.uint32(1),
      firstRun = cms.untracked.uint32(1)
  )
  
  process.poolDBESSource = cms.ESSource("PoolDBESSource",
     BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService'),
     DBParameters = cms.PSet(
          messageLevel = cms.untracked.int32(2),
          authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
      ),
      timetype = cms.untracked.string('runnumber'),
      connect = cms.string('sqlite_file:dbfile.db'),
      toGet = cms.VPSet(
      cms.PSet(record = cms.string('SiStripBadFiberRcd'),tag = cms.string('SiStripBadModule_Fake_TIB')),
      cms.PSet(record = cms.string('SiStripBadChannelRcd'),tag = cms.string('SiStripBadModule_Fake_TID'))
      )
  )
  
  process.load("CalibTracker.SiStripESProducers.SiStripQualityESProducer_cfi")
  process.siStripQualityESProducer.ReduceGranularity = cms.bool(False)
  process.siStripQualityESProducer.ListOfRecordToMerge = cms.VPSet(
       cms.PSet( record = cms.string("SiStripBadChannelRcd"), tag    = cms.string("") ),
       cms.PSet( record = cms.string("SiStripBadFiberRcd"),   tag    = cms.string("") )
       )
  
  
  #Write on DB
  process.load("CalibTracker.SiStripESProducers.DBWriter.SiStripBadStripFromQualityDummyDBWriter_cfi")
  process.siStripBadStripFromQualityDummyDBWriter.OpenIovAt = cms.untracked.string("currentTime")
  
  process.PoolDBOutputService = cms.Service("PoolDBOutputService",
      BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService'),
      DBParameters = cms.PSet(
          messageLevel = cms.untracked.int32(2),
          authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
      ),
      timetype = cms.untracked.string('runnumber'),
      connect = cms.string('sqlite_file:dbfile.db'),
      toPut = cms.VPSet(cms.PSet(
          record = cms.string('SiStripBadStrip'),
          tag = cms.string('SiStripBadModule_Fake_merged2')
          ))
  )
  
  from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
  process.reader = DQMEDAnalyzer("SiStripQualityStatistics",
                                 dataLabel = cms.untracked.string(""),
                                 TkMapFileName = cms.untracked.string("")
                                 )
  
  process.siStripBadStripFromQualityDummyDBWriter.record=process.PoolDBOutputService.toPut[0].record
  process.p1 = cms.Path(process.reader*process.siStripBadStripFromQualityDummyDBWriter)
  
  
  