File indexing completed on 2025-01-14 02:38:45
0001 import FWCore.ParameterSet.Config as cms
0002
0003 process = cms.Process("TEST")
0004 process.MessageLogger.cerr.FwkReport.reportEvery = 1000
0005 process.MessageLogger.cerr.threshold = 'ERROR'
0006
0007 import FWCore.Framework.test.cmsExceptionsFatalOption_cff
0008 process.options = cms.untracked.PSet(
0009 fileMode = cms.untracked.string('FULLMERGE'),
0010 Rethrow = FWCore.Framework.test.cmsExceptionsFatalOption_cff.Rethrow
0011 )
0012
0013 from IOPool.Input.modules import PoolSource
0014 process.source = PoolSource(
0015 fileNames = [
0016 'file:testRunMergeMERGE4.root',
0017 'file:testRunMergeMERGE4.root'
0018 ]
0019 , duplicateCheckMode = 'checkEachRealDataFile'
0020 , noEventSort = True
0021 , lumisToProcess = ['1:1']
0022 )
0023
0024 from IOPool.Output.modules import PoolOutputModule
0025 process.out = PoolOutputModule(fileName = 'testRunMergeRecombined4.root')
0026
0027 from FWCore.Framework.modules import TestMergeResults, RunLumiEventAnalyzer
0028 process.test = TestMergeResults(
0029
0030
0031
0032
0033
0034
0035
0036
0037
0038
0039
0040
0041 expectedBeginRunProd = [
0042 10001, 80016, 10003
0043 ],
0044
0045 expectedEndRunProd = [
0046 100001, 800016, 100003
0047 ],
0048
0049 expectedBeginLumiProd = [
0050 101, 816, 103
0051 ],
0052
0053 expectedEndLumiProd = [
0054 1001, 8016, 1003
0055 ],
0056
0057 expectedBeginRunNew = [
0058 10001, 60012, 10003
0059 ],
0060
0061 expectedEndRunNew = [
0062 100001, 600012, 100003
0063 ],
0064
0065 expectedBeginLumiNew = [
0066 101, 612, 103
0067 ],
0068
0069 expectedEndLumiNew = [
0070 1001, 6012, 1003
0071 ],
0072
0073 verbose = True
0074 )
0075
0076 process.test2 = RunLumiEventAnalyzer(
0077 verbose = True,
0078 expectedRunLumiEvents = [
0079 1, 0, 0,
0080 1, 1, 0,
0081 1, 1, 11,
0082 1, 1, 12,
0083 1, 1, 13,
0084 1, 1, 14,
0085 1, 1, 15,
0086 1, 1, 16,
0087 1, 1, 17,
0088 1, 1, 18,
0089 1, 1, 19,
0090 1, 1, 20,
0091 1, 1, 21,
0092 1, 1, 22,
0093 1, 1, 23,
0094 1, 1, 24,
0095 1, 1, 25,
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, 26,
0107 1, 1, 11,
0108 1, 1, 12,
0109 1, 1, 13,
0110 1, 1, 14,
0111 1, 1, 15,
0112 1, 1, 16,
0113 1, 1, 17,
0114 1, 1, 18,
0115 1, 1, 19,
0116 1, 1, 20,
0117 1, 1, 21,
0118 1, 1, 22,
0119 1, 1, 23,
0120 1, 1, 24,
0121 1, 1, 25,
0122 1, 1, 1,
0123 1, 1, 2,
0124 1, 1, 3,
0125 1, 1, 4,
0126 1, 1, 5,
0127 1, 1, 6,
0128 1, 1, 7,
0129 1, 1, 8,
0130 1, 1, 9,
0131 1, 1, 10,
0132 1, 1, 26,
0133 1, 1, 0,
0134 1, 0, 0
0135 ]
0136 )
0137
0138 process.path1 = cms.Path(process.test + process.test2)
0139 process.endpath1 = cms.EndPath(process.out)