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
import FWCore.ParameterSet.Config as cms

process = cms.Process("TEST")

process.load("FWCore.Framework.test.cmsExceptionsFatal_cff")

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

# This test uses a single module (EDProducer).
# This EDProducer contains an algorithm that is composed
# of several other algorithms, nested a few levels deep.
process.h = cms.EDProducer("HierarchicalEDProducer",
    # The EDProducer passes nest_1 to its contained alg_1 object ...
    nest_1 = cms.PSet(
        # the alg_1 object needs an integer named count ...
        count = cms.int32(87),
        # and alg_1 contains a nested alg_2 object ...
        nest_2 = cms.PSet(
            # the alg_2 object needs a string named flavor ...
            flavor = cms.string('chocolate')
        )
    ),
    # The EDProducer directly uses a double named radius ...
    radius = cms.double(2.5)
)

process.p = cms.Path(process.h)