File indexing completed on 2025-01-14 02:38:52
0001 import FWCore.ParameterSet.Config as cms
0002
0003 process = cms.Process("COPY")
0004
0005 import FWCore.Framework.test.cmsExceptionsFatal_cff
0006 process.options = FWCore.Framework.test.cmsExceptionsFatal_cff.options
0007
0008 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0009
0010 process.maxEvents = cms.untracked.PSet(
0011 input = cms.untracked.int32(-1)
0012 )
0013
0014 from IOPool.Input.modules import PoolSource
0015 process.source = PoolSource(fileNames = 'file:myout.root')
0016
0017 process.a1 = cms.EDAnalyzer("StreamThingAnalyzer",
0018 product_to_get = cms.string('m1'),
0019 inChecksum = cms.untracked.string('out')
0020 )
0021
0022 from FWCore.Framework.modules import RunLumiEventAnalyzer
0023 process.test = RunLumiEventAnalyzer(
0024 verbose = False,
0025 expectedRunLumiEvents = [
0026 1, 0, 0,
0027 1, 1, 0,
0028 1, 1, 10123456789,
0029 1, 1, 10123456790,
0030 1, 1, 10123456791,
0031 1, 1, 10123456792,
0032 1, 1, 10123456793,
0033 1, 1, 10123456794,
0034 1, 1, 10123456795,
0035 1, 1, 10123456796,
0036 1, 1, 10123456797,
0037 1, 1, 10123456798,
0038 1, 1, 10123456799,
0039 1, 1, 10123456800,
0040 1, 1, 10123456801,
0041 1, 1, 10123456802,
0042 1, 1, 10123456803,
0043 1, 1, 10123456804,
0044 1, 1, 10123456805,
0045 1, 1, 10123456806,
0046 1, 1, 10123456807,
0047 1, 1, 10123456808,
0048 1, 1, 10123456809,
0049 1, 1, 10123456810,
0050 1, 1, 10123456811,
0051 1, 1, 10123456812,
0052 1, 1, 10123456813,
0053 1, 1, 10123456814,
0054 1, 1, 10123456815,
0055 1, 1, 10123456816,
0056 1, 1, 10123456817,
0057 1, 1, 10123456818,
0058 1, 1, 10123456819,
0059 1, 1, 10123456820,
0060 1, 1, 10123456821,
0061 1, 1, 10123456822,
0062 1, 1, 10123456823,
0063 1, 1, 10123456824,
0064 1, 1, 10123456825,
0065 1, 1, 10123456826,
0066 1, 1, 10123456827,
0067 1, 1, 10123456828,
0068 1, 1, 10123456829,
0069 1, 1, 10123456830,
0070 1, 1, 10123456831,
0071 1, 1, 10123456832,
0072 1, 1, 10123456833,
0073 1, 1, 10123456834,
0074 1, 1, 10123456835,
0075 1, 1, 10123456836,
0076 1, 1, 10123456837,
0077 1, 1, 10123456838,
0078 1, 1, 0,
0079 1, 0, 0
0080 ],
0081 expectedEndingIndex = 162
0082 )
0083
0084 from IOPool.Streamer.modules import EventStreamFileWriter
0085 process.out = EventStreamFileWriter(
0086 fileName = 'teststreamfile_copy.dat',
0087 compression_level = 1,
0088 use_compression = True,
0089 max_event_size = 7000000
0090 )
0091
0092 from IOPool.Output.modules import PoolOutputModule
0093 process.outp = PoolOutputModule(fileName = cms.untracked.string('myout2.root'))
0094
0095 process.e = cms.EndPath(process.test*process.a1*process.out*process.outp)