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 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
# 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('CSCPedestalsRcd'),
        tag = cms.string('CSCPedestals_from_online')
    ), 
        cms.PSet(
            record = cms.string('CSCGainsRcd'),
            tag = cms.string('CSCGains_from_online')
        ), 
        cms.PSet(
            record = cms.string('CSCNoiseMatrixRcd'),
            tag = cms.string('CSCNoiseMatrix_from_online')
        ), 
        cms.PSet(
            record = cms.string('CSCcrosstalkRcd'),
            tag = cms.string('CSCcrosstalk_from_online')
        )),

    connect = cms.string('oracle://cms_orcoff_int2r/CMS_COND_CSC'), ##cms_orcoff_int2r/CMS_COND_CSC"

)

process.source = cms.Source("EmptySource",
    maxEvents = cms.untracked.int32(5),
    numberEventsInRun = cms.untracked.uint32(1),
    firstRun = cms.untracked.uint32(1)
)

process.get = cms.EDAnalyzer("EventSetupRecordDataGetter",
    toGet = cms.VPSet(cms.PSet(
        record = cms.string('CSCPedestalsRcd'),
        data = cms.vstring('CSCPedestals')
    ), 
        cms.PSet(
            record = cms.string('CSCGainsRcd'),
            data = cms.vstring('CSCGains')
        ), 
        cms.PSet(
            record = cms.string('CSCNoiseMatrixRcd'),
            data = cms.vstring('CSCNoiseMatrix')
        ), 
        cms.PSet(
            record = cms.string('CSCcrosstalkRcd'),
            data = cms.vstring('CSCcrosstalk')
        )),
    verbose = cms.untracked.bool(True)
)

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

process.p = cms.Path(process.get)
process.ep = cms.EndPath(process.printer)