Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-05-06 00:35:28

0001 # A test of the noRunLumiSort configuration parameter
0002 # where the input has non-contiguous event sequences
0003 # from the same run.
0004 
0005 # It is expected there are 8 warnings and 8 errors that
0006 # print out while this runs related to merging.
0007 # The test should pass with these errors and warnings.
0008 
0009 import FWCore.ParameterSet.Config as cms
0010 
0011 process = cms.Process("NORUNLUMISORT")
0012 
0013 process.source = cms.Source("PoolSource",
0014     fileNames = cms.untracked.vstring(
0015         'file:testRunMergeMERGE6.root', 
0016         'file:testRunMergeMERGE6.root'
0017     ),
0018     duplicateCheckMode = cms.untracked.string('checkEachRealDataFile'),
0019     noRunLumiSort = cms.untracked.bool(True)
0020 )
0021 
0022 process.test2 = cms.EDAnalyzer('RunLumiEventAnalyzer',
0023     verbose = cms.untracked.bool(True),
0024     expectedRunLumiEvents = cms.untracked.vuint32(
0025 1, 0, 0,
0026 1, 1, 0,
0027 1, 1, 11,
0028 1, 1, 12,
0029 1, 1, 13,
0030 1, 1, 14,
0031 1, 1, 15,
0032 1, 1, 16,
0033 1, 1, 17,
0034 1, 1, 18,
0035 1, 1, 19,
0036 1, 1, 20,
0037 1, 1, 21,
0038 1, 1, 22,
0039 1, 1, 23,
0040 1, 1, 24,
0041 1, 1, 25,
0042 1, 1, 0,
0043 1, 0, 0,
0044 2, 0, 0,
0045 2, 1, 0,
0046 2, 1, 1,
0047 2, 1, 2,
0048 2, 1, 3,
0049 2, 1, 4,
0050 2, 1, 5,
0051 2, 1, 0,
0052 2, 0, 0,
0053 1, 0, 0,
0054 1, 1, 0,
0055 1, 1, 1,
0056 1, 1, 2,
0057 1, 1, 3,
0058 1, 1, 4,
0059 1, 1, 5,
0060 1, 1, 6,
0061 1, 1, 7,
0062 1, 1, 8,
0063 1, 1, 9,
0064 1, 1, 10
0065 )
0066 )
0067 process.test2.expectedRunLumiEvents.extend([
0068 1, 1, 11,
0069 1, 1, 12,
0070 1, 1, 13,
0071 1, 1, 14,
0072 1, 1, 15,
0073 1, 1, 16,
0074 1, 1, 17,
0075 1, 1, 18,
0076 1, 1, 19,
0077 1, 1, 20,
0078 1, 1, 21,
0079 1, 1, 22,
0080 1, 1, 23,
0081 1, 1, 24,
0082 1, 1, 25,
0083 1, 1, 0,
0084 1, 0, 0,
0085 2, 0, 0,
0086 2, 1, 0,
0087 2, 1, 1,
0088 2, 1, 2,
0089 2, 1, 3,
0090 2, 1, 4,
0091 2, 1, 5,
0092 2, 1, 0,
0093 2, 0, 0,
0094 1, 0, 0,
0095 1, 1, 0,
0096 1, 1, 1,
0097 1, 1, 2,
0098 1, 1, 3,
0099 1, 1, 4,
0100 1, 1, 5,
0101 1, 1, 6,
0102 1, 1, 7,
0103 1, 1, 8,
0104 1, 1, 9,
0105 1, 1, 10,
0106 1, 1, 0,
0107 1, 0, 0,
0108 ])
0109 
0110 process.out = cms.OutputModule("PoolOutputModule",
0111     fileName = cms.untracked.string('testRunMergeNoRunLumiSort.root')
0112 )
0113 
0114 process.path1 = cms.Path(process.test2)
0115 
0116 process.e = cms.EndPath(process.out)