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('checkAllFilesOpened')
0029     , skipEvents = cms.untracked.uint32(14)
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, 15,
0039 1, 1, 16,
0040 1, 1, 17,
0041 1, 1, 18,
0042 1, 1, 19,
0043 1, 1, 20,
0044 1, 1, 21,
0045 1, 1, 22,
0046 1, 1, 23,
0047 1, 1, 24,
0048 1, 1, 25,
0049 1, 1, 0,
0050 1, 0, 0,
0051 2, 0, 0,
0052 2, 1, 0,
0053 2, 1, 1,
0054 2, 1, 2,
0055 2, 1, 3,
0056 2, 1, 4,
0057 2, 1, 5,
0058 2, 1, 0,
0059 2, 0, 0,
0060 11, 0, 0,
0061 11, 1, 0,
0062 11, 1, 1,
0063 11, 1, 0,
0064 11, 2, 0,
0065 11, 2, 1,
0066 11, 2, 0,
0067 11, 0, 0,
0068 100, 0, 0,
0069 100, 100, 0,
0070 100, 100, 100,
0071 100, 100, 0,
0072 100, 0, 0,
0073 1, 0, 0,
0074 1, 1, 0,
0075 1, 1, 21,
0076 1, 1, 22,
0077 1, 1, 23,
0078 1, 1, 24,
0079 1, 1, 25,
0080 1, 1, 0,
0081 1, 0, 0,
0082 2, 0, 0,
0083 2, 1, 0,
0084 2, 1, 1,
0085 2, 1, 2,
0086 2, 1, 3,
0087 2, 1, 4,
0088 2, 1, 5,
0089 2, 1, 0,
0090 2, 0, 0,
0091 1, 0, 0,
0092 1, 1, 0,
0093 1, 1, 1,
0094 1, 1, 2,
0095 1, 1, 3,
0096 1, 1, 4,
0097 1, 1, 5,
0098 1, 1, 6,
0099 1, 1, 7,
0100 1, 1, 8,
0101 1, 1, 9,
0102 1, 1, 10,
0103 1, 1, 0,
0104 1, 0, 0
0105 )
0106 )
0107 # At this point the first input file is done and
0108 # we start with the second input file here.
0109 process.test.expectedRunLumiEvents.extend([
0110 1, 0, 0,
0111 1, 1, 0,
0112 1, 1, 0,
0113 1, 0, 0,
0114 2, 0, 0,
0115 2, 1, 0,
0116 2, 1, 0,
0117 2, 0, 0,
0118 11, 0, 0,
0119 11, 1, 0,
0120 11, 1, 0,
0121 11, 2, 0,
0122 11, 2, 0,
0123 11, 0, 0,
0124 100, 0, 0,
0125 100, 100, 0,
0126 100, 100, 0,
0127 100, 0, 0,
0128 1, 0, 0,
0129 1, 1, 0,
0130 1, 1, 0,
0131 1, 0, 0,
0132 2, 0, 0,
0133 2, 1, 0,
0134 2, 1, 0,
0135 2, 0, 0,
0136 1, 0, 0,
0137 1, 1, 0,
0138 1, 1, 0,
0139 1, 0, 0
0140 ])
0141 
0142 process.path1 = cms.Path(process.test)
0143 
0144 process.out = cms.OutputModule("PoolOutputModule",
0145     fileName = cms.untracked.string('file:testRunMergeRecombinedCopied.root')
0146 )
0147 
0148 process.endpath1 = cms.EndPath(process.out)