Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-03-17 11:03:06

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