Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2025-04-17 02:41:58

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     ),
0011     # For testing, sqlite database file expected to be in local directory 
0012     toGet = cms.VPSet(cms.PSet(
0013         record = cms.string('CSCBadWiresRcd'),
0014         tag = cms.string('CSCBadWires')
0015     )),
0016     connect = cms.string('sqlite_file:BadWires_17June2009.db')
0017 )
0018 
0019 process.maxEvents = cms.untracked.PSet(
0020     input = cms.untracked.int32(1)
0021 )
0022 
0023 ## Set the run number > 100K
0024 process.source = cms.Source("EmptySource",
0025  firstRun = cms.untracked.uint32(100001)
0026 )
0027 
0028 process.analyze = cms.EDAnalyzer("CSCReadBadWiresAnalyzer",
0029     outputToFile = cms.bool(False),
0030     readBadChannels = cms.bool(True)
0031 )
0032 
0033 process.printEventNumber = cms.OutputModule("AsciiOutputModule")
0034 
0035 process.p = cms.Path(process.analyze)
0036 process.ep = cms.EndPath(process.printEventNumber)
0037