Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("PROD1")
0004 
0005 process.options = cms.untracked.PSet(
0006     numberOfStreams = cms.untracked.uint32(1),
0007     numberOfConcurrentRuns = cms.untracked.uint32(1),
0008     numberOfConcurrentLuminosityBlocks = cms.untracked.uint32(1)
0009 )
0010 
0011 process.source = cms.Source("EmptySource")
0012 process.maxEvents = cms.untracked.PSet(
0013     input = cms.untracked.int32(3)
0014 )
0015 
0016 process.out = cms.OutputModule("PoolOutputModule",
0017     fileName = cms.untracked.string('testProcessBlock1.root'),
0018     outputCommands = cms.untracked.vstring(
0019         "keep *",
0020         "drop *_testEDAliasOriginal_*_*"
0021     )
0022 )
0023 
0024 process.testGlobalOutput = cms.OutputModule("TestGlobalOutput",
0025     verbose = cms.untracked.bool(False),
0026     expectedProcessesWithProcessBlockProducts = cms.untracked.vstring('PROD1'),
0027     expectedWriteProcessBlockTransitions = cms.untracked.int32(1),
0028     outputCommands = cms.untracked.vstring(
0029         "keep *",
0030         "drop *_testEDAliasOriginal_*_*"
0031     )
0032 )
0033 
0034 process.testLimitedOutput = cms.OutputModule("TestLimitedOutput",
0035     verbose = cms.untracked.bool(False),
0036     expectedProcessesWithProcessBlockProducts = cms.untracked.vstring('PROD1'),
0037     expectedWriteProcessBlockTransitions = cms.untracked.int32(1),
0038     outputCommands = cms.untracked.vstring(
0039         "keep *",
0040         "drop *_testEDAliasOriginal_*_*"
0041     )
0042 )
0043 
0044 process.testOneOutput = cms.OutputModule("TestOneOutput",
0045     verbose = cms.untracked.bool(False),
0046     expectedProcessesWithProcessBlockProducts = cms.untracked.vstring('PROD1'),
0047     expectedTopProcessesWithProcessBlockProducts = cms.untracked.vstring('PROD1'),
0048     expectedWriteProcessBlockTransitions = cms.untracked.int32(1),
0049     requireNullTTreesInFileBlock = cms.untracked.bool(True),
0050     expectedProductsFromInputKept = cms.untracked.bool(False),
0051     outputCommands = cms.untracked.vstring(
0052         "keep *",
0053         "drop *_testEDAliasOriginal_*_*"
0054     )
0055 )
0056 
0057 process.intProducerBeginProcessBlock = cms.EDProducer("IntProducerBeginProcessBlock", ivalue = cms.int32(1))
0058 
0059 process.intProducerEndProcessBlock = cms.EDProducer("IntProducerEndProcessBlock", ivalue = cms.int32(10))
0060 
0061 process.intProducerBeginProcessBlockB = cms.EDProducer("IntProducerBeginProcessBlock", ivalue = cms.int32(5))
0062 
0063 process.intProducerEndProcessBlockB = cms.EDProducer("IntProducerEndProcessBlock", ivalue = cms.int32(50))
0064 
0065 process.testEDAliasOriginal = cms.EDProducer("IntProducerBeginProcessBlock", ivalue = cms.int32(111))
0066 
0067 process.testEDAliasAlias = cms.EDAlias(testEDAliasOriginal = cms.VPSet( cms.PSet(type=cms.string('edmtestIntProduct') ) ) )
0068 
0069 process.a1 = cms.EDAnalyzer("TestFindProduct",
0070    expectedSum = cms.untracked.int32(111),
0071    inputTags = cms.untracked.VInputTag(),
0072    inputTagsBeginProcessBlock = cms.untracked.VInputTag(
0073      cms.InputTag("testEDAliasOriginal")
0074    )
0075 )
0076 
0077 process.a2 = cms.EDAnalyzer("TestFindProduct",
0078    expectedSum = cms.untracked.int32(111),
0079    inputTags = cms.untracked.VInputTag(),
0080    inputTagsBeginProcessBlock = cms.untracked.VInputTag(
0081      cms.InputTag("testEDAliasAlias")
0082    )
0083 )
0084 
0085 process.p = cms.Path(process.intProducerBeginProcessBlock *
0086                      process.intProducerEndProcessBlock *
0087                      process.intProducerBeginProcessBlockB *
0088                      process.intProducerEndProcessBlockB *
0089                      process.testEDAliasOriginal *
0090                      process.a1 *
0091                      process.a2
0092 )
0093 
0094 process.e = cms.EndPath(process.out *
0095                         process.testGlobalOutput *
0096                         process.testLimitedOutput *
0097                         process.testOneOutput
0098 )