Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:13:55

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(20123456789)
0028 )
0029 
0030 process.a = cms.EDProducer("StreamThingProducer",
0031     instance_count = cms.int32(5),
0032     array_size = cms.int32(2)
0033 )
0034 
0035 process.m1 = cms.EDProducer("StreamThingProducer",
0036     instance_count = cms.int32(5),
0037     array_size = cms.int32(2)
0038 )
0039 
0040 process.z = cms.EDProducer("StreamThingProducer",
0041     instance_count = cms.int32(5),
0042     array_size = cms.int32(2)
0043 )
0044 
0045 process.m2 = cms.EDProducer("NonProducer")
0046 
0047 process.a1 = cms.EDAnalyzer("StreamThingAnalyzer",
0048     product_to_get = cms.string('m1')
0049 )
0050 
0051 process.out = cms.OutputModule("EventStreamFileWriter",
0052     fileName = cms.untracked.string('teststreamfile_ext.dat'),
0053     compression_level = cms.untracked.int32(1),
0054     use_compression = cms.untracked.bool(True),
0055     compression_algorithm = cms.untracked.string(options.compAlgo),
0056     max_event_size = cms.untracked.int32(7000000),
0057     outputCommands = cms.untracked.vstring("drop *", "keep *_m1_*_*")
0058 )
0059 
0060 process.p1 = cms.Path(process.a*process.m1*process.a1*process.m2*process.z)
0061 process.end = cms.EndPath(process.out)