Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #
0002 # Test the most standard case where we read the same run
0003 #  from different files but each file has its own lumi blocks
0004 #
0005 
0006 import FWCore.ParameterSet.Config as cms
0007 
0008 process = cms.Process("TEST")
0009 
0010 process.load("FWCore.MessageService.MessageLogger_cfi")
0011 process.MessageLogger.cerr.FwkReport.reportEvery = 1000
0012 process.MessageLogger.cerr.threshold = 'ERROR'
0013 
0014 import FWCore.Framework.test.cmsExceptionsFatalOption_cff
0015 process.options = cms.untracked.PSet(
0016   fileMode  = cms.untracked.string('FULLMERGE'),
0017   Rethrow = FWCore.Framework.test.cmsExceptionsFatalOption_cff.Rethrow
0018 )
0019 
0020 process.maxEvents = cms.untracked.PSet(
0021     input = cms.untracked.int32(10)
0022 )
0023 
0024 
0025 process.source = cms.Source("PoolSource",
0026     fileNames = cms.untracked.vstring(
0027         'file:testRunMerge4.root',
0028         'file:testRunMerge6.root'
0029     )
0030 )
0031 
0032 process.test = cms.EDAnalyzer("TestMergeResults",
0033 
0034     #   Check to see that the value we read matches what we know
0035     #   was written. Expected values listed below come in sets of three
0036     #      value expected in Thing
0037     #      value expected in ThingWithMerge
0038     #      value expected in ThingWithIsEqual
0039     #   Each set of 3 is tested at endRun for the expected
0040     #   run values or at endLuminosityBlock for the expected
0041     #   lumi values. And then the next set of three values
0042     #   is tested at the next endRun or endLuminosityBlock.
0043     #   When the sequence of parameter values is exhausted it stops checking
0044     #   0's are just placeholders, if the value is a "0" the check is not made.
0045 
0046     expectedBeginRunProd = cms.untracked.vint32(
0047         10001,   20004,  10003  # end run 11
0048     ),
0049 
0050     expectedEndRunProd = cms.untracked.vint32(
0051         100001,   200004,  100003  #end run 11
0052     ),
0053 
0054     expectedBeginLumiProd = cms.untracked.vint32(
0055         101,       102,    103,  # end run 11 lumi 1
0056         101,       102,    103,  # end run 11 lumi 2
0057         101,       102,    103   # end run 11 lumi 3
0058     ),
0059 
0060     expectedEndLumiProd = cms.untracked.vint32(
0061          1001,       1002,    1003,  # end run 11 lumi 1
0062          1001,       1002,    1003,  # end run 11 lumi 2
0063          1001,       1002,    1003   # end run 11 lumi 3
0064     ),
0065 
0066     verbose = cms.untracked.bool(False)
0067 
0068 )
0069 
0070 process.test2 = cms.EDAnalyzer('RunLumiEventAnalyzer',
0071     verbose = cms.untracked.bool(True),
0072     expectedRunLumiEvents = cms.untracked.vuint32(
0073 11, 0, 0,
0074 11, 1, 0,
0075 11, 1, 1,
0076 11, 1, 0,
0077 11, 2, 0,
0078 11, 2, 2,
0079 11, 2, 3,
0080 11, 2, 4,
0081 11, 2, 0,
0082 11, 3, 0,
0083 11, 3, 5,
0084 11, 3, 6,
0085 11, 3, 7,
0086 11, 3, 0,
0087 11, 4, 0,
0088 11, 4, 8,
0089 11, 4, 9,
0090 11, 4, 10,
0091 11, 4, 0,
0092 11, 0, 0
0093 )
0094 )
0095 
0096 process.path1 = cms.Path(process.test + process.test2)
0097