Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-07-19 01:44:02

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("TEST")
0004 
0005 process.options = cms.untracked.PSet(
0006     numberOfStreams = cms.untracked.uint32(1),
0007     numberOfThreads = cms.untracked.uint32(1),
0008     numberOfConcurrentRuns = cms.untracked.uint32(1),
0009     numberOfConcurrentLuminosityBlocks = cms.untracked.uint32(1)
0010 )
0011 
0012 process.source = cms.Source("PoolSource",
0013     fileNames = cms.untracked.vstring(
0014         'file:testProcessBlockMerge.root'
0015     )
0016 )
0017 
0018 process.out = cms.OutputModule("PoolOutputModule",
0019     fileName = cms.untracked.string('testProcessBlockTest.root'),
0020     outputCommands = cms.untracked.vstring(
0021         "keep *",
0022         "drop *_*_beginProcessBlock_*",
0023         "drop *_*_endProcessBlock_*"
0024     )
0025 )
0026 
0027 process.testGlobalOutput = cms.OutputModule("TestGlobalOutput",
0028     verbose = cms.untracked.bool(False),
0029     expectedProcessesWithProcessBlockProducts = cms.untracked.vstring('PROD1', 'MERGE'),
0030     expectedWriteProcessBlockTransitions = cms.untracked.int32(4),
0031     outputCommands = cms.untracked.vstring(
0032         "keep *",
0033         "drop *_*_beginProcessBlock_*",
0034         "drop *_*_endProcessBlock_*"
0035     )
0036 )
0037 
0038 process.testLimitedOutput = cms.OutputModule("TestLimitedOutput",
0039     verbose = cms.untracked.bool(False),
0040     expectedProcessesWithProcessBlockProducts = cms.untracked.vstring('PROD1', 'MERGE'),
0041     expectedWriteProcessBlockTransitions = cms.untracked.int32(4),
0042     outputCommands = cms.untracked.vstring(
0043         "keep *",
0044         "drop *_*_beginProcessBlock_*",
0045         "drop *_*_endProcessBlock_*"
0046     )
0047 )
0048 
0049 process.testOneOutput = cms.OutputModule("TestOneOutput",
0050     verbose = cms.untracked.bool(False),
0051     expectedProcessesWithProcessBlockProducts = cms.untracked.vstring('PROD1', 'MERGE'),
0052     expectedWriteProcessBlockTransitions = cms.untracked.int32(4),
0053     outputCommands = cms.untracked.vstring(
0054         "keep *",
0055         "drop *_*_beginProcessBlock_*",
0056         "drop *_*_endProcessBlock_*"
0057     )
0058 )
0059 
0060 process.eventIntProducer = cms.EDProducer("IntProducer", ivalue = cms.int32(1))
0061 
0062 process.transientIntProducerEndProcessBlock = cms.EDProducer("TransientIntProducerEndProcessBlock",
0063     ivalue = cms.int32(90)
0064 )
0065 
0066 process.nonEventIntProducer = cms.EDProducer("NonEventIntProducer",
0067     ivalue = cms.int32(1)
0068 )
0069 
0070 process.p = cms.Path(
0071     process.eventIntProducer *
0072     process.transientIntProducerEndProcessBlock *
0073     process.nonEventIntProducer
0074 )
0075 
0076 process.e = cms.EndPath(
0077     process.out *
0078     process.testGlobalOutput *
0079     process.testLimitedOutput *
0080     process.testOneOutput
0081 )