Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("COPY")
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:testRunMergeTEST101.root'
0016     ),
0017     duplicateCheckMode = cms.untracked.string('noDuplicateCheck')
0018 )
0019 
0020 process.test = cms.EDAnalyzer("TestMergeResults",
0021 
0022     #   Check to see that the value we read matches what we know
0023     #   was written. Expected values listed below come in sets of three
0024     #      value expected in Thing
0025     #      value expected in ThingWithMerge
0026     #      value expected in ThingWithIsEqual
0027     #   Each set of 3 is tested at endRun for the expected
0028     #   run values or at endLuminosityBlock for the expected
0029     #   lumi values. And then the next set of three values
0030     #   is tested at the next endRun or endLuminosityBlock.
0031     #   When the sequence of parameter values is exhausted it stops checking
0032 
0033     expectedBeginRunProd = cms.untracked.vint32(
0034         10001,   20004,  10003,
0035         10001,   10002,  10003
0036     ),
0037 
0038     expectedEndRunProd = cms.untracked.vint32(
0039         100001,   200004,  100003,
0040         100001,   100002,  100003
0041     ),
0042 
0043     expectedEndRunProdImproperlyMerged = cms.untracked.vint32(
0044         0,   0,  0,
0045         0,   0,  0
0046     )
0047 )
0048 
0049 process.thingWithMergeProducer = cms.EDProducer("ThingWithMergeProducer")
0050 process.task = cms.Task(process.thingWithMergeProducer)
0051 
0052 process.out = cms.OutputModule("PoolOutputModule",
0053     fileName = cms.untracked.string('testRunMergeCOPY101.root')
0054 )
0055 
0056 process.e = cms.EndPath(process.test * process.out, process.task)