Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:12:42

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("TEST")
0004 
0005 process.load("FWCore.MessageService.MessageLogger_cfi")
0006 process.MessageLogger.cerr.FwkReport.reportEvery = 1000
0007 process.MessageLogger.cerr.threshold = 'ERROR'
0008 
0009 import FWCore.Framework.test.cmsExceptionsFatalOption_cff
0010 process.options = cms.untracked.PSet(
0011   fileMode  = cms.untracked.string('FULLMERGE'),
0012   Rethrow = FWCore.Framework.test.cmsExceptionsFatalOption_cff.Rethrow
0013 )
0014 
0015 
0016 process.source = cms.Source("PoolSource",
0017     fileNames = cms.untracked.vstring(
0018         'file:testRunMergeMERGE4.root',
0019         'file:testRunMergeMERGE4.root'
0020     )
0021     , duplicateCheckMode = cms.untracked.string('checkEachRealDataFile')
0022     , noEventSort = cms.untracked.bool(True)
0023     , lumisToProcess = cms.untracked.VLuminosityBlockRange('1:1')
0024 )
0025 
0026 process.out = cms.OutputModule("PoolOutputModule",
0027     fileName = cms.untracked.string('file:testRunMergeRecombined4.root')
0028 )
0029 
0030 process.test = cms.EDAnalyzer("TestMergeResults",
0031 
0032     #   Check to see that the value we read matches what we know
0033     #   was written. Expected values listed below come in sets of three
0034     #      value expected in Thing
0035     #      value expected in ThingWithMerge
0036     #      value expected in ThingWithIsEqual
0037     #   Each set of 3 is tested at endRun for the expected
0038     #   run values or at endLuminosityBlock for the expected
0039     #   lumi values. And then the next set of three values
0040     #   is tested at the next endRun or endLuminosityBlock.
0041     #   When the sequence of parameter values is exhausted it stops checking
0042     #   0's are just placeholders, if the value is a "0" the check is not made.
0043 
0044     expectedBeginRunProd = cms.untracked.vint32(
0045         10001,   80016,  10003   # end run 1
0046     ),
0047 
0048     expectedEndRunProd = cms.untracked.vint32(
0049         100001,  800016, 100003   # end run 1
0050     ),
0051 
0052     expectedBeginLumiProd = cms.untracked.vint32(
0053         101,  816, 103  # end run 1 lumi 1
0054     ),
0055 
0056     expectedEndLumiProd = cms.untracked.vint32(
0057         1001,  8016, 1003   # end run 1 lumi 1
0058     ),
0059 
0060     expectedBeginRunNew = cms.untracked.vint32(
0061         10001,   60012,  10003   # end run 1
0062     ),
0063 
0064     expectedEndRunNew = cms.untracked.vint32(
0065         100001,  600012, 100003   # end run 1
0066     ),
0067 
0068     expectedBeginLumiNew = cms.untracked.vint32(
0069         101,  612, 103   # end run 1 lumi 1
0070     ),
0071 
0072     expectedEndLumiNew = cms.untracked.vint32(
0073         1001,  6012, 1003   # end run 1 lumi 1
0074     ),
0075 
0076     verbose = cms.untracked.bool(True)
0077 )
0078 
0079 process.test2 = cms.EDAnalyzer('RunLumiEventAnalyzer',
0080     verbose = cms.untracked.bool(True),
0081     expectedRunLumiEvents = cms.untracked.vuint32(
0082 1, 0, 0,
0083 1, 1, 0,
0084 1, 1, 11,
0085 1, 1, 12,
0086 1, 1, 13,
0087 1, 1, 14,
0088 1, 1, 15,
0089 1, 1, 16,
0090 1, 1, 17,
0091 1, 1, 18,
0092 1, 1, 19,
0093 1, 1, 20,
0094 1, 1, 21,
0095 1, 1, 22,
0096 1, 1, 23,
0097 1, 1, 24,
0098 1, 1, 25,
0099 1, 1, 1,
0100 1, 1, 2,
0101 1, 1, 3,
0102 1, 1, 4,
0103 1, 1, 5,
0104 1, 1, 6,
0105 1, 1, 7,
0106 1, 1, 8,
0107 1, 1, 9,
0108 1, 1, 10,
0109 1, 1, 26,
0110 1, 1, 11,
0111 1, 1, 12,
0112 1, 1, 13,
0113 1, 1, 14,
0114 1, 1, 15,
0115 1, 1, 16,
0116 1, 1, 17,
0117 1, 1, 18,
0118 1, 1, 19,
0119 1, 1, 20,
0120 1, 1, 21,
0121 1, 1, 22,
0122 1, 1, 23,
0123 1, 1, 24,
0124 1, 1, 25,
0125 1, 1, 1,
0126 1, 1, 2,
0127 1, 1, 3,
0128 1, 1, 4,
0129 1, 1, 5,
0130 1, 1, 6,
0131 1, 1, 7,
0132 1, 1, 8,
0133 1, 1, 9,
0134 1, 1, 10,
0135 1, 1, 26,
0136 1, 1, 0,
0137 1, 0, 0
0138 )
0139 )
0140 
0141 process.path1 = cms.Path(process.test + process.test2)
0142 process.endpath1 = cms.EndPath(process.out)