Back to home page

Project CMSSW displayed by LXR

 
 

    


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

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 process.maxEvents = cms.untracked.PSet(
0010     input = cms.untracked.int32(-1)
0011 )
0012 
0013 process.source = cms.Source("PoolSource",
0014     fileNames = cms.untracked.vstring(
0015         'file:testRunMergeSPLIT101.root',
0016         'file:testRunMergeSPLIT102.root',
0017         'file:testRunMergeSPLIT103.root',
0018         'file:testRunMergeSPLIT101.root',
0019         'file:testRunMergeSPLIT102.root',
0020         'file:testRunMergeSPLIT103.root'
0021     ),
0022     lumisToProcess = cms.untracked.VLuminosityBlockRange('41:11-41:20', '42:21-42:25'),
0023     duplicateCheckMode = cms.untracked.string('noDuplicateCheck')
0024 )
0025 
0026 process.test = cms.EDAnalyzer("TestMergeResults",
0027 
0028     #   Check to see that the value we read matches what we know
0029     #   was written. Expected values listed below come in sets of three
0030     #      value expected in Thing
0031     #      value expected in ThingWithMerge
0032     #      value expected in ThingWithIsEqual
0033     #   Each set of 3 is tested at endRun for the expected
0034     #   run values or at endLuminosityBlock for the expected
0035     #   lumi values. And then the next set of three values
0036     #   is tested at the next endRun or endLuminosityBlock.
0037     #   When the sequence of parameter values is exhausted it stops checking
0038 
0039     expectedBeginRunProd = cms.untracked.vint32(
0040         10001,   10002,  10003,
0041         10001,   10002,  10003,
0042         10001,   10002,  10003,
0043         10001,   10002,  10003
0044     ),
0045 
0046     expectedEndRunProd = cms.untracked.vint32(
0047         100001,   100002,  100003,
0048         100001,   100002,  100003,
0049         100001,   100002,  100003,
0050         100001,   100002,  100003
0051     ),
0052 
0053     expectedEndRunProdImproperlyMerged = cms.untracked.vint32(
0054         0,   0,  0,
0055         0,   0,  0,
0056         0,   0,  0,
0057         0,   0,  0
0058     ),
0059 
0060     expectedBeginLumiProd = cms.untracked.vint32(
0061         101,       102,    103,
0062         101,       102,    103,
0063         101,       102,    103,
0064         101,       102,    103,
0065         101,       102,    103,
0066         101,       102,    103,
0067         101,       102,    103,
0068         101,       102,    103,
0069         101,       102,    103,
0070         101,       102,    103
0071     ),
0072 
0073     expectedEndLumiProd = cms.untracked.vint32(
0074         1001,       1002,    1003,
0075         1001,       1002,    1003,
0076         1001,       1002,    1003,
0077         1001,       1002,    1003,
0078         1001,       1002,    1003,
0079         1001,       1002,    1003,
0080         1001,       1002,    1003,
0081         1001,       1002,    1003,
0082         1001,       1002,    1003,
0083         1001,       1002,    1003
0084     ),
0085 
0086     expectedEndLumiProdImproperlyMerged = cms.untracked.vint32(
0087         0,   0,  0,
0088         0,   0,  0,
0089         0,   0,  0,
0090         0,   0,  0,
0091         0,   0,  0,
0092         0,   0,  0,
0093         0,   0,  0,
0094         0,   0,  0,
0095         0,   0,  0,
0096         0,   0,  0
0097     ),
0098 
0099     verbose = cms.untracked.bool(False)
0100 )
0101 
0102 process.thingWithMergeProducer = cms.EDProducer("ThingWithMergeProducer")
0103 process.task = cms.Task(process.thingWithMergeProducer)
0104 
0105 process.out = cms.OutputModule("PoolOutputModule",
0106     fileName = cms.untracked.string('testRunMergeTEST101.root')
0107 )
0108 
0109 process.e = cms.EndPath(process.test * process.out, process.task)