Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:28:34

0001 
0002 # Make sure we can read and write the end result of
0003 # all the merge and secondary file input testing
0004 
0005 # Also test the event duplicate checking code and the
0006 # skip event code in PoolSource
0007 
0008 import FWCore.ParameterSet.Config as cms
0009 
0010 process = cms.Process("COPY")
0011 
0012 process.load("FWCore.MessageService.MessageLogger_cfi")
0013 process.MessageLogger.cerr.FwkReport.reportEvery = 1000
0014 process.MessageLogger.cerr.threshold = 'ERROR'
0015 
0016 import FWCore.Framework.test.cmsExceptionsFatalOption_cff
0017 process.options = cms.untracked.PSet(
0018   fileMode  = cms.untracked.string('FULLMERGE'),
0019   Rethrow = FWCore.Framework.test.cmsExceptionsFatalOption_cff.Rethrow
0020 )
0021 
0022 
0023 process.source = cms.Source("PoolSource",
0024     fileNames = cms.untracked.vstring(
0025         'file:testRunMergeRecombined.root',
0026         'file:testRunMergeRecombined.root'
0027     )
0028     , duplicateCheckMode = cms.untracked.string('checkEachFile')
0029     , skipEvents = cms.untracked.uint32(3)
0030     , noEventSort = cms.untracked.bool(False)
0031 )
0032 
0033 process.test = cms.EDAnalyzer('RunLumiEventAnalyzer',
0034     verbose = cms.untracked.bool(True),
0035     expectedRunLumiEvents = cms.untracked.vuint32(
0036 1, 0, 0,
0037 1, 1, 0,
0038 1, 1, 4,
0039 1, 1, 5,
0040 1, 1, 6,
0041 1, 1, 7,
0042 1, 1, 8,
0043 1, 1, 9,
0044 1, 1, 10,
0045 1, 1, 11,
0046 1, 1, 12,
0047 1, 1, 13,
0048 1, 1, 14,
0049 1, 1, 15,
0050 1, 1, 16,
0051 1, 1, 17,
0052 1, 1, 18,
0053 1, 1, 19,
0054 1, 1, 20,
0055 1, 1, 21,
0056 1, 1, 22,
0057 1, 1, 23,
0058 1, 1, 24,
0059 1, 1, 25,
0060 1, 1, 0,
0061 1, 0, 0,
0062 2, 0, 0,
0063 2, 1, 0,
0064 2, 1, 1,
0065 2, 1, 2,
0066 2, 1, 3,
0067 2, 1, 4,
0068 2, 1, 5,
0069 2, 1, 0,
0070 2, 0, 0,
0071 11, 0, 0,
0072 11, 1, 0,
0073 11, 1, 1,
0074 11, 1, 0,
0075 11, 2, 0,
0076 11, 2, 1,
0077 11, 2, 0,
0078 11, 0, 0,
0079 100, 0, 0,
0080 100, 100, 0,
0081 100, 100, 100,
0082 100, 100, 0,
0083 100, 0, 0,
0084 1, 0, 0,
0085 1, 1, 0,
0086 1, 1, 21,
0087 1, 1, 22,
0088 1, 1, 23,
0089 1, 1, 24,
0090 1, 1, 25,
0091 1, 1, 0,
0092 1, 0, 0,
0093 2, 0, 0,
0094 2, 1, 0,
0095 2, 1, 1,
0096 2, 1, 2,
0097 2, 1, 3,
0098 2, 1, 4,
0099 2, 1, 5,
0100 2, 1, 0,
0101 2, 0, 0,
0102 1, 0, 0,
0103 1, 1, 0,
0104 1, 1, 1,
0105 1, 1, 2,
0106 1, 1, 3,
0107 1, 1, 4,
0108 1, 1, 5,
0109 1, 1, 6,
0110 1, 1, 7,
0111 1, 1, 8,
0112 1, 1, 9,
0113 1, 1, 10,
0114 1, 1, 0,
0115 1, 0, 0
0116 )
0117 )
0118 # At this point the first input file is done and
0119 # we start with the second input file here.
0120 process.test.expectedRunLumiEvents.extend([
0121 1, 0, 0,
0122 1, 1, 0,
0123 1, 1, 1,
0124 1, 1, 2,
0125 1, 1, 3,
0126 1, 1, 4,
0127 1, 1, 5,
0128 1, 1, 6,
0129 1, 1, 7,
0130 1, 1, 8,
0131 1, 1, 9,
0132 1, 1, 10,
0133 1, 1, 11,
0134 1, 1, 12,
0135 1, 1, 13,
0136 1, 1, 14,
0137 1, 1, 15,
0138 1, 1, 16,
0139 1, 1, 17,
0140 1, 1, 18,
0141 1, 1, 19,
0142 1, 1, 20,
0143 1, 1, 21,
0144 1, 1, 22,
0145 1, 1, 23,
0146 1, 1, 24,
0147 1, 1, 25,
0148 1, 1, 0,
0149 1, 0, 0,
0150 2, 0, 0,
0151 2, 1, 0,
0152 2, 1, 1,
0153 2, 1, 2,
0154 2, 1, 3,
0155 2, 1, 4,
0156 2, 1, 5,
0157 2, 1, 0,
0158 2, 0, 0,
0159 11, 0, 0,
0160 11, 1, 0,
0161 11, 1, 1,
0162 11, 1, 0,
0163 11, 2, 0,
0164 11, 2, 1,
0165 11, 2, 0,
0166 11, 0, 0,
0167 100, 0, 0,
0168 100, 100, 0,
0169 100, 100, 100,
0170 100, 100, 0,
0171 100, 0, 0,
0172 1, 0, 0,
0173 1, 1, 0,
0174 1, 1, 21,
0175 1, 1, 22,
0176 1, 1, 23,
0177 1, 1, 24,
0178 1, 1, 25,
0179 1, 1, 0,
0180 1, 0, 0,
0181 2, 0, 0,
0182 2, 1, 0,
0183 2, 1, 1,
0184 2, 1, 2,
0185 2, 1, 3,
0186 2, 1, 4,
0187 2, 1, 5,
0188 2, 1, 0,
0189 2, 0, 0,
0190 1, 0, 0,
0191 1, 1, 0,
0192 1, 1, 1,
0193 1, 1, 2,
0194 1, 1, 3,
0195 1, 1, 4,
0196 1, 1, 5,
0197 1, 1, 6,
0198 1, 1, 7,
0199 1, 1, 8,
0200 1, 1, 9,
0201 1, 1, 10,
0202 1, 1, 0,
0203 1, 0, 0
0204 ])
0205 
0206 process.path1 = cms.Path(process.test)
0207 
0208 process.out = cms.OutputModule("PoolOutputModule",
0209     fileName = cms.untracked.string('file:testRunMergeRecombinedCopied1.root')
0210 )
0211 
0212 process.endpath1 = cms.EndPath(process.out)