Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("TEST")
0004 
0005 process.source = cms.Source("PoolSource",
0006     fileNames = cms.untracked.vstring(
0007         'file:testProcessBlockMerge.root',
0008         'file:testProcessBlockMerge2.root'
0009     )
0010     , skipEvents = cms.untracked.uint32(7)
0011 )
0012 
0013 # 24 transitions = 6 events + 6 access input ProcessBlock transitions + 12 fill calls
0014 # sum 8221 = 3300 + 4400 + 444 + 11 + 22 + 44 = 7700 + 444 + 77 = 
0015 process.readProcessBlocksOneAnalyzer = cms.EDAnalyzer("edmtest::one::InputProcessBlockIntAnalyzer",
0016                                             transitions = cms.int32(24),
0017                                             consumesBeginProcessBlock = cms.InputTag("intProducerBeginProcessBlock", ""),
0018                                             consumesEndProcessBlock = cms.InputTag("intProducerEndProcessBlock", ""),
0019                                             consumesBeginProcessBlockM = cms.InputTag("intProducerBeginProcessBlockM", ""),
0020                                             consumesEndProcessBlockM = cms.InputTag("intProducerEndProcessBlockM", ""),
0021                                             expectedByRun = cms.vint32(11, 22, 3300, 4400),
0022                                             expectedSum = cms.int32(8221)
0023 )
0024 
0025 process.testOneOutput = cms.OutputModule("TestOneOutput",
0026     verbose = cms.untracked.bool(False),
0027     expectedProcessesWithProcessBlockProducts = cms.untracked.vstring('PROD1', 'MERGE'),
0028     expectedProcessNamesAtWrite = cms.untracked.vstring('PROD1', 'PROD1', 'MERGE', 'PROD1', 'PROD1', 'MERGE', 'TEST'),
0029     expectedWriteProcessBlockTransitions = cms.untracked.int32(7),
0030     testTTreesInFileBlock = cms.untracked.bool(True),
0031     expectedCacheIndexSize = cms.untracked.vuint32(2, 2, 2, 4, 4, 4, 4)
0032 )
0033 
0034 process.looper = cms.Looper("NavigateEventsLooper")
0035 
0036 process.out = cms.OutputModule("PoolOutputModule",
0037     fileName = cms.untracked.string('file:testLooperEventNavigation2.root'),
0038     fastCloning = cms.untracked.bool(False)
0039 )
0040 
0041 process.path1 = cms.Path(process.readProcessBlocksOneAnalyzer)
0042 process.endpath1 = cms.EndPath(process.out * process.testOneOutput)