Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:02:01

0001 # Test read of bad channel db for CSC wires
0002 # This version 17.06.2009 Tim Cox
0003 
0004 import FWCore.ParameterSet.Config as cms
0005 
0006 process = cms.Process("TEST")
0007 process.PoolDBESSource = cms.ESSource("PoolDBESSource",
0008     DBParameters = cms.PSet(
0009         authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb'),
0010         authenticationMethod = cms.untracked.uint32(1)
0011     ),
0012     timetype = cms.string('runnumber'),
0013     # For testing, sqlite database file expected to be in local directory 
0014     toGet = cms.VPSet(cms.PSet(
0015         record = cms.string('CSCBadWiresRcd'),
0016         tag = cms.string('CSCBadWires')
0017     )),
0018     connect = cms.string('sqlite_file:BadWires_17June2009.db')
0019 )
0020 
0021 process.maxEvents = cms.untracked.PSet(
0022     input = cms.untracked.int32(1)
0023 )
0024 
0025 ## Set the run number > 100K
0026 process.source = cms.Source("EmptySource",
0027  firstRun = cms.untracked.uint32(100001)
0028 )
0029 
0030 process.analyze = cms.EDAnalyzer("CSCReadBadWiresAnalyzer",
0031     outputToFile = cms.bool(False),
0032     readBadChannels = cms.bool(True)
0033 )
0034 
0035 process.printEventNumber = cms.OutputModule("AsciiOutputModule")
0036 
0037 process.p = cms.Path(process.analyze)
0038 process.ep = cms.EndPath(process.printEventNumber)
0039