![]() |
|
|||
File indexing completed on 2023-05-06 02:46:20
0001 import FWCore.ParameterSet.Config as cms 0002 0003 process = cms.Process("TEST") 0004 0005 process.source = cms.Source("EmptySource") 0006 process.maxEvents.input = 3 0007 0008 process.thing = cms.EDProducer("ThingProducer", 0009 nThings = cms.int32(4) 0010 ) 0011 0012 process.testOne = cms.OutputModule("TestOutputWithGetterOfProducts", 0013 # 6 in one ThingCollection (0 + 1 + 2 + 3) 0014 # 6 * (3 writeEvent + 1 writeLumi * 2 (begin + end) + 1 writeRun * 2 (begin + end)) = 42 for writes 0015 # 6 * (1 endLumi * 2 (begin + end) + 1 endRun * 2 (begin + end)) = 24 for end transitions 0016 # 6 * (1 beginLumi * 1 (begin) + 1 beginRun * 2 (begin)) = 12 for begin transitions 0017 # 42 + 24 + 12 = 78 0018 expectedSum = cms.untracked.uint32(78) 0019 ) 0020 0021 process.testGlobal = cms.OutputModule("TestOutputWithGetterOfProductsGlobal", 0022 # 6 in one ThingCollection (0 + 1 + 2 + 3) 0023 # 6 * (3 writeEvent + 1 writeLumi * 2 (begin + end) + 1 writeRun * 2 (begin + end)) = 42 for writes 0024 # 6 * (1 endLumi * 2 (begin + end) + 1 endRun * 2 (begin + end)) = 24 for end transitions 0025 # 6 * (1 beginLumi * 1 (begin) + 1 beginRun * 2 (begin)) = 12 for begin transitions 0026 # 42 + 24 + 12 = 78 0027 expectedSum = cms.untracked.uint32(78) 0028 ) 0029 0030 process.testLimited = cms.OutputModule("TestOutputWithGetterOfProductsLimited", 0031 # 6 in one ThingCollection (0 + 1 + 2 + 3) 0032 # 6 * (3 writeEvent + 1 writeLumi * 2 (begin + end) + 1 writeRun * 2 (begin + end)) = 42 for writes 0033 # 6 * (1 endLumi * 2 (begin + end) + 1 endRun * 2 (begin + end)) = 24 for end transitions 0034 # 6 * (1 beginLumi * 1 (begin) + 1 beginRun * 2 (begin)) = 12 for begin transitions 0035 # 42 + 24 + 12 = 78 0036 expectedSum = cms.untracked.uint32(78) 0037 ) 0038 0039 process.path = cms.Path(process.thing) 0040 0041 process.endPath = cms.EndPath(process.testOne * process.testGlobal * process.testLimited)
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.2.1 LXR engine. The LXR team |
![]() ![]() |