Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:12:39

0001 # Runs using configuration cfi file that was autogenerated
0002 # The purpose is to test the generation of cfi files
0003 
0004 import FWCore.ParameterSet.Config as cms
0005 
0006 process = cms.Process("TEST")
0007 
0008 process.load("FWCore.Framework.test.cmsExceptionsFatal_cff")
0009 
0010 process.maxEvents = cms.untracked.PSet(
0011     input = cms.untracked.int32(1)
0012 )
0013 
0014 process.source = cms.Source("EmptySource")
0015 
0016 # test the autogenerated cfi
0017 from FWCore.Integration.testProducerWithPsetDesc_cfi import *
0018 
0019 process.testProducerWithPsetDesc = testProducerWithPsetDesc
0020 process.testProducerWithPsetDesc.plugin1.type = cms.string("edmtestAnotherOneMaker")
0021 
0022 process.testProducerWithPsetDesc.plugin4.pluginRecursive.type = cms.string("edmtestAnotherOneMaker")
0023 
0024 psetFor5 = cms.PSet(
0025   type = cms.string("edmtestAnotherOneMaker")
0026 )
0027 
0028 process.testProducerWithPsetDesc.plugin5[1].pluginRecursive = psetFor5
0029 
0030 process.p1 = cms.Path(process.testProducerWithPsetDesc)
0031 
0032 # also run a test module using a helper plugin
0033 process.load("FWCore.Integration.pluginUsingProducer_cfi")
0034 process.p2 = cms.Path(process.pluginUsingProducer)