Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:21:18

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("TESTOUTPUTREAD")
0004 process.load("FWCore.Framework.test.cmsExceptionsFatal_cff")
0005 
0006 process.maxEvents = cms.untracked.PSet(
0007     input = cms.untracked.int32(-1)
0008 )
0009 
0010 process.analyzeOther = cms.EDAnalyzer("OtherThingAnalyzer")
0011 
0012 # Test that the Run and Lumi products that we expect to be
0013 # produced in the previous process are really there.
0014 # It gets the products and checks that they contain
0015 # the expected values.
0016 # This tests that beginRun,beginLumi,endLumi, endRun
0017 # get called for EDProducers with Unscheduled turned on.
0018 process.test = cms.EDAnalyzer("TestMergeResults",
0019     expectedBeginRunNew = cms.untracked.vint32(
0020         10001,   10002,  10003    # end run 1
0021     ),
0022 
0023     expectedEndRunNew = cms.untracked.vint32(
0024         100001, 100002, 100003    # end run 1
0025     ),
0026 
0027     expectedBeginLumiNew = cms.untracked.vint32(
0028         101,       102,    103    # end run 1 lumi 1
0029     ),
0030 
0031     expectedEndLumiNew = cms.untracked.vint32(
0032         1001,     1002,   1003    # end run 1 lumi 1
0033     )
0034 )
0035 
0036 process.getInt = cms.EDAnalyzer("TestFindProduct",
0037     inputTags = cms.untracked.VInputTag(
0038         cms.InputTag("aliasForInt2"),
0039     ),
0040   expectedSum = cms.untracked.int32(220)
0041 )
0042 
0043 process.tst = cms.Path(process.analyzeOther+process.test)
0044 
0045 process.path1 = cms.Path(process.getInt)
0046 
0047 process.source = cms.Source("PoolSource",
0048     fileNames = cms.untracked.vstring('file:PoolOutputTestUnscheduled.root')
0049 )
0050 
0051 
0052