Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:50:57

0001 # Test bad chambers data base from Oana, Tim Cox 21.10.2008/28.01.2009
0002 
0003 import FWCore.ParameterSet.Config as cms
0004 
0005 process = cms.Process("TEST")
0006 process.PoolDBESSource = cms.ESSource("PoolDBESSource",
0007     DBParameters = cms.PSet(
0008         authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb'),
0009         authenticationMethod = cms.untracked.uint32(1)
0010     ),
0011     timetype = cms.string('runnumber'),
0012     # For testing, sqlite database file expected to be in local directory 
0013     toGet = cms.VPSet(cms.PSet(
0014         record = cms.string('CSCBadChambersRcd'),
0015         tag = cms.string('CSCBadChambers_ME42')
0016     )),
0017     connect = cms.string('sqlite_file:DBBadChambers.db')
0018 )
0019 
0020 process.maxEvents = cms.untracked.PSet(
0021     input = cms.untracked.int32(1)
0022 )
0023 process.source = cms.Source("EmptySource")
0024 
0025 process.analyze = cms.EDAnalyzer("CSCReadBadChambersAnalyzer",
0026     outputToFile = cms.bool(False),
0027     readBadChambers = cms.bool(True),
0028     me42installed = cms.bool(True)                                 
0029 )
0030 
0031 process.printEventNumber = cms.OutputModule("AsciiOutputModule")
0032 
0033 process.p = cms.Path(process.analyze)
0034 process.ep = cms.EndPath(process.printEventNumber)
0035