Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:57:58

0001 import FWCore.ParameterSet.Config as cms
0002 import FWCore.ParameterSet.VarParsing as VarParsing
0003 
0004 options = VarParsing.VarParsing('analysis')
0005 
0006 options.register ('compAlgo',
0007                   'ZLIB', # default value
0008                   VarParsing.VarParsing.multiplicity.singleton,
0009                   VarParsing.VarParsing.varType.string,
0010                   "Compression Algorithm")
0011 
0012 options.parseArguments()
0013 
0014 
0015 process = cms.Process("HLT")
0016 
0017 import FWCore.Framework.test.cmsExceptionsFatal_cff
0018 process.options = FWCore.Framework.test.cmsExceptionsFatal_cff.options
0019 
0020 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0021 
0022 process.maxEvents = cms.untracked.PSet(
0023     input = cms.untracked.int32(50)
0024 )
0025 
0026 process.source = cms.Source("EmptySource",
0027     firstEvent = cms.untracked.uint64(10123456789)
0028 )
0029 
0030 process.m1 = cms.EDProducer("StreamThingProducer",
0031     instance_count = cms.int32(5),
0032     array_size = cms.int32(2)
0033 )
0034 
0035 process.m2 = cms.EDProducer("NonProducer")
0036 
0037 process.a1 = cms.EDAnalyzer("StreamThingAnalyzer",
0038     product_to_get = cms.string('m1')
0039 )
0040 
0041 process.out = cms.OutputModule("EventStreamFileWriter",
0042     fileName = cms.untracked.string('teststreamfile.dat'),
0043     padding = cms.untracked.uint32(4096),
0044     compression_level = cms.untracked.int32(1),
0045     use_compression = cms.untracked.bool(True),
0046     compression_algorithm = cms.untracked.string(options.compAlgo),
0047     max_event_size = cms.untracked.int32(7000000)
0048 )
0049 
0050 process.p1 = cms.Path(process.m1*process.a1*process.m2)
0051 process.end = cms.EndPath(process.out)