Line Code
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 38
# The following comments couldn't be translated into the new config version:

# Configuration file for EventSetupTest_t

import FWCore.ParameterSet.Config as cms

process = cms.Process("TEST")
process.PoolDBESSource = cms.ESSource("PoolDBESSource",
    toGet = cms.VPSet(cms.PSet(
        record = cms.string('CSCBadChambersRcd'),
        tag = cms.string('CSCBadChambers_CRAFT_KillAllME42')
    )),
    #read from sqlite_file
    connect = cms.string('sqlite_file:BadChambers_Andy_CRAFT.db'),
    # read from database
    #connect=cms.string("frontier://FrontierDev/CMS_COND_CSC"),
    #connect =  cms.string("oracle://cms_orcoff_prep/CMS_COND_CSC"),
    DBParameters = cms.PSet(
        authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb'),
    )
)

process.maxEvents = cms.untracked.PSet(
    input = cms.untracked.int32(1)
)
process.source = cms.Source("EmptySource")

process.analyze = cms.EDAnalyzer("CSCReadBadChambersAnalyzer",
                              outputToFile = cms.bool(True),                           
                              readBadChambers = cms.bool(True),
                              me42installed = cms.bool(True)
)

process.output = cms.OutputModule("AsciiOutputModule")

process.p = cms.Path(process.analyze)
process.ep = cms.EndPath(process.output)