1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# This configuration is designed to be run as the last
# in a series of cmsRun processes.
# Tests the maxLuminosityBlocks parameter
# checks to see that the process level fakeRaw overrides the file based one
import FWCore.ParameterSet.Config as cms
process = cms.Process("PROD2TEST")
process.maxLuminosityBlocks = cms.untracked.PSet(
input = cms.untracked.int32(3)
)
process.load("FWCore.MessageService.MessageLogger_cfi")
process.MessageLogger.cerr.FwkReport.reportEvery = 1000
import FWCore.Framework.test.cmsExceptionsFatalOption_cff
process.options = cms.untracked.PSet(
Rethrow = FWCore.Framework.test.cmsExceptionsFatalOption_cff.Rethrow
)
process.source = cms.Source("PoolSource",
fileNames = cms.untracked.vstring('file:testSeriesOfProcessesTEST.root'),
)
# Override the fakeRaw found in the test file
process.fakeRaw = cms.EDProducer(
"IntProducer",
ivalue = cms.int32(20)
)
# This module tests to see if the products put in at the first step
# (the fake HLT step) survived through to the last file. At the PROD
# stage the products were split into two files so this test secondary
# file input.
process.a = cms.EDAnalyzer("TestFindProduct",
inputTags = cms.untracked.VInputTag( cms.InputTag("fakeRaw"),
cms.InputTag("fakeHLTDebug") ),
# Test the maxLuminosityBlock parameter
# 3 luminosity blocks contain 15 events
# Each event contains one product with a value of 20 and
# one product with a value of 1000
# If the maxLuminosityBlock parameter is working correctly the
# following should be the sum of all the values.
# The product values are hard coded into the fake
# HLT configuration (the first one in this series).
expectedSum = cms.untracked.int32(15300)
)
process.t = cms.Task(process.fakeRaw)
process.test1 = cms.Path(process.a, process.t)
process.out = cms.OutputModule("PoolOutputModule",
fileName = cms.untracked.string('testSeriesOfProcessesPROD2TEST_u.root'),
outputCommands = cms.untracked.vstring(
"keep *_fakeRaw_*_*"
)
)
process.o = cms.EndPath(process.out)
|