Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-07-05 04:09:48

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 nEvtLumi = 4
0004 nEvtRun = 2*nEvtLumi
0005 nRuns = 64
0006 nStreams = 4
0007 nEvt = nRuns*nEvtRun
0008 
0009 process = cms.Process("TESTGLOBALMODULES")
0010 
0011 import FWCore.Framework.test.cmsExceptionsFatalOption_cff
0012 
0013 process.options = cms.untracked.PSet(
0014     numberOfStreams = cms.untracked.uint32(nStreams),
0015     numberOfThreads = cms.untracked.uint32(nStreams),
0016     numberOfConcurrentLuminosityBlocks = cms.untracked.uint32(1)
0017 )
0018 
0019 process.maxEvents = cms.untracked.PSet(
0020     input = cms.untracked.int32(nEvt)
0021 )
0022 
0023 process.source = cms.Source("EmptySource",
0024     timeBetweenEvents = cms.untracked.uint64(1000),
0025     firstTime = cms.untracked.uint64(1000000),
0026     numberEventsInRun = cms.untracked.uint32(nEvtRun),
0027     numberEventsInLuminosityBlock = cms.untracked.uint32(nEvtLumi)
0028 )
0029 
0030 process.StreamIntProd = cms.EDProducer("edmtest::global::StreamIntProducer",
0031     transitions = cms.int32(int(nEvt+nStreams*(2*(nEvt/nEvtRun)+2*(nEvt/nEvtLumi)+2)))
0032     ,cachevalue = cms.int32(1)
0033 )
0034 
0035 process.RunIntProd = cms.EDProducer("edmtest::global::RunIntProducer",
0036     transitions = cms.int32(int(2*(nEvt/nEvtRun)))
0037     ,cachevalue = cms.int32(nEvtRun)
0038 )
0039 
0040 process.LumiIntProd = cms.EDProducer("edmtest::global::LumiIntProducer",
0041     transitions = cms.int32(int(2*(nEvt/nEvtLumi)))
0042     ,cachevalue = cms.int32(nEvtLumi)
0043 )
0044 
0045 process.RunSumIntProd = cms.EDProducer("edmtest::global::RunSummaryIntProducer",
0046     transitions = cms.int32(int(nStreams*(nEvt/nEvtRun)+2*(nEvt/nEvtRun)))
0047     ,cachevalue = cms.int32(nEvtRun)
0048 )
0049 
0050 process.LumiSumIntProd = cms.EDProducer("edmtest::global::LumiSummaryIntProducer",
0051     transitions = cms.int32(int(nStreams*(nEvt/nEvtLumi)+2*(nEvt/nEvtLumi)))
0052     ,cachevalue = cms.int32(nEvtLumi)
0053 )
0054 
0055 process.ProcessBlockIntProd = cms.EDProducer("edmtest::global::ProcessBlockIntProducer",
0056     transitions = cms.int32(int(nEvt + 2)),
0057     consumesBeginProcessBlock = cms.InputTag("TestBeginProcessBlockProd" ,"begin"),
0058     consumesEndProcessBlock = cms.InputTag("TestEndProcessBlockProd", "end")
0059 )
0060 
0061 process.TestBeginProcessBlockProd = cms.EDProducer("edmtest::global::TestBeginProcessBlockProducer",
0062     transitions = cms.int32(int(nEvt + 1)),
0063     consumesBeginProcessBlock = cms.InputTag("")
0064 )
0065 
0066 process.TestBeginProcessBlockProdRead = cms.EDProducer("edmtest::global::TestBeginProcessBlockProducer",
0067     transitions = cms.int32(int(nEvt + 1)),
0068     consumesBeginProcessBlock = cms.InputTag("TestBeginProcessBlockProd" ,"begin")
0069 )
0070 
0071 process.TestEndProcessBlockProd = cms.EDProducer("edmtest::global::TestEndProcessBlockProducer",
0072     transitions = cms.int32(int(nEvt + 1)),
0073     consumesEndProcessBlock = cms.InputTag("")
0074 )
0075 
0076 process.TestEndProcessBlockProdRead = cms.EDProducer("edmtest::global::TestEndProcessBlockProducer",
0077     transitions = cms.int32(int(nEvt + 1)),
0078     consumesEndProcessBlock = cms.InputTag("TestEndProcessBlockProd", "end")
0079 )
0080 
0081 process.TestBeginRunProd = cms.EDProducer("edmtest::global::TestBeginRunProducer",
0082     transitions = cms.int32(int(nEvt/nEvtRun))
0083 )
0084 
0085 process.TestEndRunProd = cms.EDProducer("edmtest::global::TestEndRunProducer",
0086     transitions = cms.int32(int(nEvt/nEvtRun))
0087 )
0088 
0089 process.TestBeginLumiBlockProd = cms.EDProducer("edmtest::global::TestBeginLumiBlockProducer",
0090     transitions = cms.int32(int(nEvt/nEvtLumi))
0091 )
0092 
0093 process.TestEndLumiBlockProd = cms.EDProducer("edmtest::global::TestEndLumiBlockProducer",
0094     transitions = cms.int32(int(nEvt/nEvtLumi))
0095 )
0096 
0097 process.StreamIntAn = cms.EDAnalyzer("edmtest::global::StreamIntAnalyzer",
0098     transitions = cms.int32(int(nEvt+nStreams*(2*(nEvt/nEvtRun)+2*(nEvt/nEvtLumi)+2)))
0099     ,cachevalue = cms.int32(1)
0100 )
0101 
0102 process.RunIntAn= cms.EDAnalyzer("edmtest::global::RunIntAnalyzer",
0103     transitions = cms.int32(int(nEvt+2*(nEvt/nEvtRun)))
0104     ,cachevalue = cms.int32(nEvtRun)
0105 )
0106 
0107 process.LumiIntAn = cms.EDAnalyzer("edmtest::global::LumiIntAnalyzer",
0108     transitions = cms.int32(int(nEvt+2*(nEvt/nEvtLumi)))
0109     ,cachevalue = cms.int32(nEvtLumi)
0110     # needed to avoid deleting TestAccumulator1
0111     ,moduleLabel = cms.InputTag("TestAccumulator1")
0112 )
0113 
0114 process.RunSumIntAn = cms.EDAnalyzer("edmtest::global::RunSummaryIntAnalyzer",
0115     transitions = cms.int32(int(nEvt+nStreams*((nEvt/nEvtRun)+1)+2*(nEvt/nEvtRun)))
0116     ,cachevalue = cms.int32(nEvtRun)
0117 )
0118 
0119 process.LumiSumIntAn = cms.EDAnalyzer("edmtest::global::LumiSummaryIntAnalyzer",
0120     transitions = cms.int32(int(nEvt+nStreams*((nEvt/nEvtLumi)+1)+2*(nEvt/nEvtLumi)))
0121     ,cachevalue = cms.int32(nEvtLumi)
0122 )
0123 
0124 process.ProcessBlockIntAn = cms.EDAnalyzer("edmtest::global::ProcessBlockIntAnalyzer",
0125     transitions = cms.int32(652),
0126     consumesBeginProcessBlock = cms.InputTag("TestBeginProcessBlockProd" ,"begin"),
0127     consumesEndProcessBlock = cms.InputTag("TestEndProcessBlockProd", "end")
0128 )
0129 
0130 process.StreamIntFil = cms.EDFilter("edmtest::global::StreamIntFilter",
0131     transitions = cms.int32(int(nEvt+nStreams*(2*(nEvt/nEvtRun)+2*(nEvt/nEvtLumi)+2)))
0132     ,cachevalue = cms.int32(1)
0133 )
0134 
0135 process.RunIntFil = cms.EDFilter("edmtest::global::RunIntFilter",
0136     transitions = cms.int32(int(nEvt+2*(nEvt/nEvtRun)))
0137     ,cachevalue = cms.int32(nEvtRun)
0138 )
0139 
0140 process.LumiIntFil = cms.EDFilter("edmtest::global::LumiIntFilter",
0141     transitions = cms.int32(int(nEvt+2*(nEvt/nEvtLumi)))
0142     ,cachevalue = cms.int32(nEvtLumi)
0143 )
0144 
0145 process.RunSumIntFil = cms.EDFilter("edmtest::global::RunSummaryIntFilter",
0146     transitions = cms.int32(int(nEvt+nStreams*((nEvt/nEvtRun)+1)+2*(nEvt/nEvtRun)))
0147     ,cachevalue = cms.int32(nEvtRun)
0148 )
0149 
0150 process.LumiSumIntFil = cms.EDFilter("edmtest::global::LumiSummaryIntFilter",
0151     transitions = cms.int32(int(nEvt+nStreams*((nEvt/nEvtLumi)+1)+2*(nEvt/nEvtLumi)))
0152     ,cachevalue = cms.int32(nEvtLumi)
0153 )
0154 
0155 process.ProcessBlockIntFil = cms.EDFilter("edmtest::global::ProcessBlockIntFilter",
0156     transitions = cms.int32(int(nEvt + 2)),
0157     consumesBeginProcessBlock = cms.InputTag("TestBeginProcessBlockFil" ,"begin"),
0158     consumesEndProcessBlock = cms.InputTag("TestEndProcessBlockFil", "end")
0159 )
0160 
0161 process.TestBeginProcessBlockFil = cms.EDFilter("edmtest::global::TestBeginProcessBlockFilter",
0162     transitions = cms.int32(int(nEvt + 1)),
0163     consumesBeginProcessBlock = cms.InputTag("")
0164 )
0165 
0166 process.TestBeginProcessBlockFilRead = cms.EDFilter("edmtest::global::TestBeginProcessBlockFilter",
0167     transitions = cms.int32(int(nEvt + 1)),
0168     consumesBeginProcessBlock = cms.InputTag("TestBeginProcessBlockFil" ,"begin")
0169 )
0170 
0171 process.TestEndProcessBlockFil = cms.EDFilter("edmtest::global::TestEndProcessBlockFilter",
0172     transitions = cms.int32(int(nEvt + 1)),
0173     consumesEndProcessBlock = cms.InputTag("")
0174 )
0175 
0176 process.TestEndProcessBlockFilRead = cms.EDFilter("edmtest::global::TestEndProcessBlockFilter",
0177     transitions = cms.int32(int(nEvt + 1)),
0178     consumesEndProcessBlock = cms.InputTag("TestEndProcessBlockFil", "end")
0179 )
0180 
0181 process.TestBeginRunFil = cms.EDFilter("edmtest::global::TestBeginRunFilter",
0182     transitions = cms.int32(int(nEvt/nEvtRun))
0183 )
0184 
0185 process.TestEndRunFil = cms.EDFilter("edmtest::global::TestEndRunFilter",
0186     transitions = cms.int32(int(nEvt/nEvtRun))
0187 )
0188 
0189 process.TestBeginLumiBlockFil = cms.EDFilter("edmtest::global::TestBeginLumiBlockFilter",
0190     transitions = cms.int32(int(nEvt/nEvtLumi))
0191 )
0192 
0193 process.TestEndLumiBlockFil = cms.EDFilter("edmtest::global::TestEndLumiBlockFilter",
0194     transitions = cms.int32(int(nEvt/nEvtLumi))
0195 )
0196 
0197 process.TestAccumulator1 = cms.EDProducer("edmtest::global::TestAccumulator",
0198   expectedCount = cms.uint32(512)
0199 )
0200 
0201 process.TestAccumulator2 = cms.EDProducer("edmtest::global::TestAccumulator",
0202   expectedCount = cms.uint32(35)
0203 )
0204 
0205 process.testFilterModule = cms.EDFilter("TestFilterModule",
0206   acceptValue = cms.untracked.int32(5),
0207   onlyOne = cms.untracked.bool(False)
0208 )
0209 
0210 process.task = cms.Task(process.TestAccumulator1)
0211 
0212 
0213 process.p = cms.Path(process.StreamIntProd +
0214                      process.RunIntProd +
0215                      process.LumiIntProd +
0216                      process.RunSumIntProd +
0217                      process.LumiSumIntProd +
0218                      process.ProcessBlockIntProd +
0219                      process.TestBeginProcessBlockProdRead +
0220                      process.TestBeginProcessBlockProd +
0221                      process.TestEndProcessBlockProdRead +
0222                      process.TestEndProcessBlockProd +
0223                      process.TestBeginRunProd +
0224                      process.TestEndRunProd +
0225                      process.TestBeginLumiBlockProd +
0226                      process.TestEndLumiBlockProd +
0227                      process.StreamIntAn +
0228                      process.RunIntAn +
0229                      process.LumiIntAn +
0230                      process.RunSumIntAn +
0231                      process.LumiSumIntAn +
0232                      process.ProcessBlockIntAn +
0233                      process.StreamIntFil +
0234                      process.RunIntFil +
0235                      process.LumiIntFil +
0236                      process.RunSumIntFil +
0237                      process.LumiSumIntFil +
0238                      process.ProcessBlockIntFil +
0239                      process.TestBeginProcessBlockFilRead +
0240                      process.TestBeginProcessBlockFil +
0241                      process.TestEndProcessBlockFilRead +
0242                      process.TestEndProcessBlockFil +
0243                      process.TestBeginRunFil +
0244                      process.TestEndRunFil +
0245                      process.TestBeginLumiBlockFil +
0246                      process.TestEndLumiBlockFil +
0247                      process.testFilterModule +
0248                      process.TestAccumulator2,
0249                      process.task)