File indexing completed on 2025-01-14 02:38:52
0001 import FWCore.ParameterSet.Config as cms
0002 import sys
0003
0004 process = cms.Process("READMERGE")
0005 process.load("FWCore.Framework.test.cmsExceptionsFatal_cff")
0006
0007 from IOPool.TFileAdaptor.modules import AdaptorConfig
0008 process.add_(AdaptorConfig(stats = False))
0009
0010 process.maxEvents.input = -1
0011
0012 from IOPool.Output.modules import PoolOutputModule
0013 process.output = PoolOutputModule(fileName = 'ReadMerge_out.root')
0014
0015 from IOPool.Input.modules import PoolSource
0016 process.source = PoolSource(fileNames = [f"file:{sys.argv[1]}"])
0017
0018 from FWCore.Framework.modules import RunLumiEventAnalyzer
0019 process.test = RunLumiEventAnalyzer(
0020 verbose = True,
0021 expectedRunLumiEvents = [
0022 100, 0, 0,
0023 100, 100, 0,
0024 100, 100, 100,
0025 100, 100, 0,
0026 100, 0, 0,
0027 1, 0, 0,
0028 1, 2, 0,
0029 1, 2, 0,
0030 1, 1, 0,
0031 1, 1, 11,
0032 1, 1, 12,
0033 1, 1, 13,
0034 1, 1, 14,
0035 1, 1, 15,
0036 1, 1, 16,
0037 1, 1, 17,
0038 1, 1, 18,
0039 1, 1, 19,
0040 1, 1, 20,
0041 1, 1, 102,
0042 1, 1, 0,
0043 1, 0, 0,
0044 1, 0, 0,
0045 1, 1, 0,
0046 1, 1, 21,
0047 1, 1, 22,
0048 1, 1, 23,
0049 1, 1, 24,
0050 1, 1, 25,
0051 1, 1, 1,
0052 1, 1, 2,
0053 1, 1, 3,
0054 1, 1, 4,
0055 1, 1, 5,
0056 1, 1, 6,
0057 1, 1, 7,
0058 1, 1, 8,
0059 1, 1, 9,
0060 1, 1, 10,
0061 1, 1, 0,
0062 1, 0, 0,
0063 2, 0, 0,
0064 2, 1, 0,
0065 2, 1, 1,
0066 2, 1, 2,
0067 2, 1, 3,
0068 2, 1, 4,
0069 2, 1, 5,
0070 2, 1, 0,
0071 2, 0, 0
0072 ]
0073 )
0074
0075 process.test.expectedRunLumiEvents.extend([
0076 11, 0, 0,
0077 11, 1, 0,
0078 11, 1, 1,
0079 11, 1, 0,
0080 11, 2, 0,
0081 11, 2, 1,
0082 11, 2, 2,
0083 11, 2, 3,
0084 11, 2, 0,
0085 11, 3, 0,
0086 11, 3, 4,
0087 11, 3, 5,
0088 11, 3, 6,
0089 11, 3, 0,
0090 11, 4, 0,
0091 11, 4, 7,
0092 11, 4, 8,
0093 11, 4, 9,
0094 11, 4, 0,
0095 11, 0, 0,
0096 12, 0, 0,
0097 12, 2, 0,
0098 12, 2, 1,
0099 12, 2, 2,
0100 12, 2, 3,
0101 12, 2, 0,
0102 12, 3, 0,
0103 12, 3, 4,
0104 12, 3, 5,
0105 12, 3, 6,
0106 12, 3, 0,
0107 12, 4, 0,
0108 12, 4, 7,
0109 12, 4, 8,
0110 12, 4, 9,
0111 12, 4, 0,
0112 12, 0, 0,
0113 13, 0, 0,
0114 13, 2, 0,
0115 13, 2, 1,
0116 13, 2, 2,
0117 13, 2, 0,
0118 13, 0, 0,
0119 1000, 0, 0,
0120 1000, 1, 0,
0121 1000, 1, 0,
0122 1000, 0, 0,
0123 1001, 0, 0,
0124 1001, 1, 0,
0125 1001, 1, 0,
0126 1001, 0, 0,
0127 1002, 0, 0,
0128 1002, 1, 0,
0129 1002, 1, 0,
0130 1002, 0, 0,
0131
0132
0133
0134 2000, 0, 0,
0135 2000, 0, 0,
0136 2001, 0, 0,
0137 2001, 0, 0,
0138 2002, 0, 0,
0139 2002, 0, 0
0140 ])
0141
0142 process.path1 = cms.Path(process.test)
0143
0144 process.ep = cms.EndPath(process.output)