Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 
0002 # This configuration is designed to be run as the last
0003 # in a series of cmsRun processes.
0004 
0005 # Tests the maxLuminosityBlocks parameter
0006 
0007 # checks to see that both the fakeRaw and fakeHLTDEBUG
0008 # products are in the input file.
0009 
0010 import FWCore.ParameterSet.Config as cms
0011 
0012 process = cms.Process("TEST1")
0013 
0014 process.maxLuminosityBlocks = cms.untracked.PSet(
0015   input = cms.untracked.int32(3)
0016 )
0017 
0018 process.load("FWCore.MessageService.MessageLogger_cfi")
0019 process.MessageLogger.cerr.FwkReport.reportEvery = 1000
0020 
0021 import FWCore.Framework.test.cmsExceptionsFatalOption_cff
0022 process.options = cms.untracked.PSet(
0023 #  wantSummary = cms.untracked.bool(True),
0024   Rethrow = FWCore.Framework.test.cmsExceptionsFatalOption_cff.Rethrow
0025 )
0026 
0027 process.source = cms.Source("PoolSource",
0028   fileNames = cms.untracked.vstring('file:testSeriesOfProcessesTEST.root'),
0029 )
0030 
0031 # This module tests to see if the products put in at the first step
0032 # (the fake HLT step) survived through to the last file.  At the PROD
0033 # stage the products were split into two files so this test secondary
0034 # file input.
0035 process.a = cms.EDAnalyzer("TestFindProduct",
0036   inputTags = cms.untracked.VInputTag( cms.InputTag("fakeRaw"),
0037                                        cms.InputTag("fakeHLTDebug") ),
0038 
0039   # Test the maxLuminosityBlock parameter
0040   # 3 luminosity blocks contain 15 events
0041   # Each event contains one product with a value of 10 and
0042   # one product with a value of 1000
0043   # If the maxLuminosityBlock parameter is working correctly the
0044   # following should be the sum of all the values.
0045   # The product values are hard coded into the fake
0046   # HLT configuration (the first one in this series).
0047   expectedSum = cms.untracked.int32(15150)
0048 )
0049 
0050 process.test1 = cms.Path(process.a)