1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# Test read of bad channel db for CSC wires
# This version 17.06.2009 Tim Cox
import FWCore.ParameterSet.Config as cms
process = cms.Process("TEST")
process.PoolDBESSource = cms.ESSource("PoolDBESSource",
DBParameters = cms.PSet(
authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb'),
),
# For testing, sqlite database file expected to be in local directory
toGet = cms.VPSet(cms.PSet(
record = cms.string('CSCBadWiresRcd'),
tag = cms.string('CSCBadWires')
)),
connect = cms.string('sqlite_file:BadWires_17June2009.db')
)
process.maxEvents = cms.untracked.PSet(
input = cms.untracked.int32(1)
)
## Set the run number > 100K
process.source = cms.Source("EmptySource",
firstRun = cms.untracked.uint32(100001)
)
process.analyze = cms.EDAnalyzer("CSCReadBadWiresAnalyzer",
outputToFile = cms.bool(False),
readBadChannels = cms.bool(True)
)
process.printEventNumber = cms.OutputModule("AsciiOutputModule")
process.p = cms.Path(process.analyze)
process.ep = cms.EndPath(process.printEventNumber)
|