Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:28:35

0001 
0002 # Test the case of a duplicate process name being used.
0003 # This should fail with an exception error message that
0004 # indicates a duplicate process name was used.
0005 
0006 import FWCore.ParameterSet.Config as cms
0007 
0008 process = cms.Process("TEST")
0009 
0010 process.load("FWCore.MessageService.MessageLogger_cfi")
0011 process.MessageLogger.cerr.FwkReport.reportEvery = 1000
0012 
0013 import FWCore.Framework.test.cmsExceptionsFatalOption_cff
0014 process.options = cms.untracked.PSet(
0015   Rethrow = FWCore.Framework.test.cmsExceptionsFatalOption_cff.Rethrow
0016 )
0017 
0018 process.source = cms.Source("PoolSource",
0019   fileNames = cms.untracked.vstring('file:testSeriesOfProcessesTEST.root'),
0020 )
0021 
0022 # Add one module in a path to force the process to be
0023 # added to the process history.  This could be any module.
0024 # The module serves no other purpose.
0025 process.a = cms.EDAnalyzer("TestFindProduct",
0026   inputTags = cms.untracked.VInputTag()
0027 )
0028 
0029 process.test1 = cms.Path(process.a)