Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 # This is a test that things will run OK if we disable the
0002 # the strict merging requirement for ProcessBlock products
0003 # in the ProductRegistry merging function. This
0004 # requirement is currently always enforced and this configuration
0005 # will fail.
0006 
0007 import FWCore.ParameterSet.Config as cms
0008 
0009 process = cms.Process("NONSTRICTTEST2")
0010 
0011 process.options = cms.untracked.PSet(
0012     numberOfStreams = cms.untracked.uint32(1),
0013     numberOfThreads = cms.untracked.uint32(1),
0014     numberOfConcurrentRuns = cms.untracked.uint32(1),
0015     numberOfConcurrentLuminosityBlocks = cms.untracked.uint32(1)
0016 )
0017 
0018 process.source = cms.Source("PoolSource",
0019     fileNames = cms.untracked.vstring(
0020         'file:testProcessBlockMergeOfMergedFiles.root',
0021         'file:testProcessBlockMergeOfMergedFiles2.root',
0022         'file:testProcessBlockNonStrict.root'
0023     ),
0024     duplicateCheckMode = cms.untracked.string("noDuplicateCheck"),
0025     inputCommands=cms.untracked.vstring(
0026         'keep *',
0027         'drop *_*_*_NONSTRICTTEST'
0028     )
0029 )
0030 
0031 # 117 transitions = 45 events + 27 InputProcessBlock transitions + (3 x 15) Cache filling transitions
0032 # sum = (11 + 22 + 3300 + 4400 + 7707) x 3 + (44 + 44 + 444) x 2 = 47384
0033 process.readProcessBlocksOneAnalyzer1 = cms.EDAnalyzer("edmtest::one::InputProcessBlockIntAnalyzer",
0034                                             transitions = cms.int32(117),
0035                                             consumesBeginProcessBlock = cms.InputTag("intProducerBeginProcessBlock", ""),
0036                                             consumesEndProcessBlock = cms.InputTag("intProducerEndProcessBlock", ""),
0037                                             consumesBeginProcessBlockM = cms.InputTag("intProducerBeginProcessBlockM", ""),
0038                                             consumesEndProcessBlockM = cms.InputTag("intProducerEndProcessBlockM", ""),
0039                                             expectedByRun = cms.vint32(11, 22, 3300, 4400, 7707),
0040                                             expectedSum = cms.int32(47384)
0041 )
0042 
0043 # 90 transitions = 45 events + 27 InputProcessBlock transitions + (3 x 6) Cache filling transitions
0044 # sum = (44 + 44 + 444) x 2 = 1064
0045 process.readProcessBlocksOneAnalyzer2 = cms.EDAnalyzer("edmtest::one::InputProcessBlockIntAnalyzer",
0046                                             transitions = cms.int32(90),
0047                                             consumesBeginProcessBlock = cms.InputTag("intProducerBeginProcessBlockMM", ""),
0048                                             consumesEndProcessBlock = cms.InputTag("intProducerEndProcessBlockMM", ""),
0049                                             consumesBeginProcessBlockM = cms.InputTag("intProducerBeginProcessBlockM", ""),
0050                                             consumesEndProcessBlockM = cms.InputTag("intProducerEndProcessBlockM", ""),
0051                                             expectedByRun = cms.vint32(644, 644, 644, 644, 844),
0052                                             expectedSum = cms.int32(1064)
0053 )
0054 
0055 process.out = cms.OutputModule("PoolOutputModule",
0056     fileName = cms.untracked.string('testProcessBlockNonStrict2.root')
0057 )
0058 
0059 process.testOneOutput = cms.OutputModule("TestOneOutput",
0060     verbose = cms.untracked.bool(False),
0061     expectedProcessesWithProcessBlockProducts = cms.untracked.vstring('PROD1', 'MERGE', 'MERGEOFMERGED'),
0062     expectedTopProcessesWithProcessBlockProducts = cms.untracked.vstring('PROD1', 'MERGE', 'MERGEOFMERGED'),
0063     expectedTopCacheIndices0 = cms.untracked.vuint32(0, 4, 6, 1, 4, 6, 2, 5, 6, 3, 5, 6),
0064     expectedTopCacheIndices1 = cms.untracked.vuint32(0, 4, 6, 1, 4, 6, 2, 5, 6, 3, 5, 6, 7, 8, 9),
0065     expectedTopCacheIndices2 = cms.untracked.vuint32(0, 4, 6, 1, 4, 6, 2, 5, 6, 3, 5, 6, 7, 8, 9, 10, 20, 23, 11, 20, 23, 12, 21, 23, 13, 21, 23, 14, 22, 24, 15, 4294967295, 25, 16, 4294967295, 25, 17, 4294967295, 25, 18, 4294967295, 25, 19, 4294967295, 26),
0066     expectedWriteProcessBlockTransitions = cms.untracked.int32(28),
0067     expectedProcessesInFirstFile = cms.untracked.uint32(3),
0068     expectedCacheIndexVectorsPerFile = cms.untracked.vuint32(4, 1, 10),
0069     expectedNEntries0 = cms.untracked.vuint32(4, 2, 1),
0070     expectedNEntries1 = cms.untracked.vuint32(1, 1, 1),
0071     expectedNEntries2 = cms.untracked.vuint32(10, 3, 4),
0072     expectedCacheEntriesPerFile0 =  cms.untracked.vuint32(7),
0073     expectedCacheEntriesPerFile1 =  cms.untracked.vuint32(7, 3),
0074     expectedCacheEntriesPerFile2 =  cms.untracked.vuint32(7, 3, 17),
0075     expectedOuterOffset = cms.untracked.vuint32(0, 4, 5)
0076 )
0077 
0078 process.p = cms.Path(process.readProcessBlocksOneAnalyzer1 * process.readProcessBlocksOneAnalyzer2)
0079 
0080 process.e = cms.EndPath(
0081     process.out *
0082     process.testOneOutput
0083 )