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     firstRun = cms.untracked.uint32(2),
0013     firstLuminosityBlock = cms.untracked.uint32(1),
0014     firstEvent = cms.untracked.uint32(1),
0015     numberEventsInLuminosityBlock = cms.untracked.uint32(1),
0016     numberEventsInRun = cms.untracked.uint32(100)
0017 )
0018 
0019 process.maxEvents = cms.untracked.PSet(
0020     input = cms.untracked.int32(3)
0021 )
0022 
0023 process.out = cms.OutputModule("PoolOutputModule",
0024   fileName = cms.untracked.string('testProcessBlock2Dropped.root'),
0025   outputCommands = cms.untracked.vstring(
0026     'keep *',
0027     'drop *_intProducerBeginProcessBlock_*_*',
0028     'drop *_intProducerEndProcessBlock_*_*'
0029   )
0030 )
0031 
0032 process.testGlobalOutput = cms.OutputModule("TestGlobalOutput",
0033     verbose = cms.untracked.bool(False),
0034     expectedWriteProcessBlockTransitions = cms.untracked.int32(1),
0035     outputCommands = cms.untracked.vstring(
0036       'keep *',
0037       'drop *_intProducerBeginProcessBlock_*_*',
0038       'drop *_intProducerEndProcessBlock_*_*'
0039     )
0040 )
0041 
0042 process.testLimitedOutput = cms.OutputModule("TestLimitedOutput",
0043     verbose = cms.untracked.bool(False),
0044     expectedWriteProcessBlockTransitions = cms.untracked.int32(1),
0045     outputCommands = cms.untracked.vstring(
0046       'keep *',
0047       'drop *_intProducerBeginProcessBlock_*_*',
0048       'drop *_intProducerEndProcessBlock_*_*'
0049     )
0050 )
0051 
0052 process.testOneOutput = cms.OutputModule("TestOneOutput",
0053     verbose = cms.untracked.bool(False),
0054     expectedWriteProcessBlockTransitions = cms.untracked.int32(1),
0055     outputCommands = cms.untracked.vstring(
0056       'keep *',
0057       'drop *_intProducerBeginProcessBlock_*_*',
0058       'drop *_intProducerEndProcessBlock_*_*'
0059     ),
0060     expectedProductsFromInputKept = cms.untracked.bool(False)
0061 )
0062 
0063 process.intProducerBeginProcessBlock = cms.EDProducer("IntProducerBeginProcessBlock", ivalue = cms.int32(1))
0064 
0065 process.intProducerEndProcessBlock = cms.EDProducer("IntProducerEndProcessBlock", ivalue = cms.int32(10))
0066 
0067 process.p = cms.Path(process.intProducerBeginProcessBlock *
0068                      process.intProducerEndProcessBlock)
0069 
0070 process.e = cms.EndPath(process.out *
0071                         process.testGlobalOutput *
0072                         process.testLimitedOutput *
0073                         process.testOneOutput
0074 )