Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2025-01-14 02:38:44

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 from IOPool.Input.modules import PoolSource
0014 process.source = PoolSource(
0015     fileNames = [
0016         'file:testRunMergeMERGE6.root', 
0017         'file:testRunMergeMERGE6.root'
0018     ],
0019     duplicateCheckMode = 'checkEachRealDataFile',
0020     noRunLumiSort = True
0021 )
0022 
0023 from FWCore.Framework.modules import RunLumiEventAnalyzer
0024 process.test2 = RunLumiEventAnalyzer(
0025     verbose = True,
0026     expectedRunLumiEvents = [
0027 1, 0, 0,
0028 1, 1, 0,
0029 1, 1, 11,
0030 1, 1, 12,
0031 1, 1, 13,
0032 1, 1, 14,
0033 1, 1, 15,
0034 1, 1, 16,
0035 1, 1, 17,
0036 1, 1, 18,
0037 1, 1, 19,
0038 1, 1, 20,
0039 1, 1, 21,
0040 1, 1, 22,
0041 1, 1, 23,
0042 1, 1, 24,
0043 1, 1, 25,
0044 1, 1, 0,
0045 1, 0, 0,
0046 2, 0, 0,
0047 2, 1, 0,
0048 2, 1, 1,
0049 2, 1, 2,
0050 2, 1, 3,
0051 2, 1, 4,
0052 2, 1, 5,
0053 2, 1, 0,
0054 2, 0, 0,
0055 1, 0, 0,
0056 1, 1, 0,
0057 1, 1, 1,
0058 1, 1, 2,
0059 1, 1, 3,
0060 1, 1, 4,
0061 1, 1, 5,
0062 1, 1, 6,
0063 1, 1, 7,
0064 1, 1, 8,
0065 1, 1, 9,
0066 1, 1, 10
0067 ]
0068 )
0069 process.test2.expectedRunLumiEvents.extend([
0070 1, 1, 11,
0071 1, 1, 12,
0072 1, 1, 13,
0073 1, 1, 14,
0074 1, 1, 15,
0075 1, 1, 16,
0076 1, 1, 17,
0077 1, 1, 18,
0078 1, 1, 19,
0079 1, 1, 20,
0080 1, 1, 21,
0081 1, 1, 22,
0082 1, 1, 23,
0083 1, 1, 24,
0084 1, 1, 25,
0085 1, 1, 0,
0086 1, 0, 0,
0087 2, 0, 0,
0088 2, 1, 0,
0089 2, 1, 1,
0090 2, 1, 2,
0091 2, 1, 3,
0092 2, 1, 4,
0093 2, 1, 5,
0094 2, 1, 0,
0095 2, 0, 0,
0096 1, 0, 0,
0097 1, 1, 0,
0098 1, 1, 1,
0099 1, 1, 2,
0100 1, 1, 3,
0101 1, 1, 4,
0102 1, 1, 5,
0103 1, 1, 6,
0104 1, 1, 7,
0105 1, 1, 8,
0106 1, 1, 9,
0107 1, 1, 10,
0108 1, 1, 0,
0109 1, 0, 0,
0110 ])
0111 
0112 from IOPool.Output.modules import PoolOutputModule
0113 process.out = PoolOutputModule(fileName = 'testRunMergeNoRunLumiSort.root')
0114 
0115 process.path1 = cms.Path(process.test2)
0116 
0117 process.e = cms.EndPath(process.out)