Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:04:23

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("PROD")
0004 
0005 process.load("FWCore.MessageService.MessageLogger_cfi")
0006 
0007 process.source = cms.Source("EmptySource")
0008 process.maxEvents.input = 1
0009 
0010 process.triggerEventProducer = cms.EDProducer("TestWriteTriggerEvent",
0011     # Test values below are meaningless. We just make sure when we read
0012     # we get the same values.
0013     usedProcessName = cms.string("testName"),
0014     collectionTags = cms.vstring('moduleA', 'moduleB', 'moduleC'),
0015     collectionKeys = cms.vuint32(11, 21, 31),
0016     ids = cms.vint32(1, 3, 5),
0017     # I stick to values exactly convertable to float
0018     # to avoid potential rounding issues in the test.
0019     pts = cms.vdouble(11.0, 21.0, 31.0),
0020     etas = cms.vdouble(101.0, 102.0, 103.0),
0021     phis = cms.vdouble(201.0, 202.0, 203.0),
0022     masses = cms.vdouble(301.0, 302.0, 303.0),
0023     filterTags = cms.vstring('moduleAA', 'moduleBB'),
0024     elementsPerVector = cms.uint32(2),
0025     filterIds = cms.vint32(1001, 1002, 1003, 1004),
0026     filterKeys = cms.vuint32(2001, 2002, 2003, 2004)
0027 )
0028 
0029 process.out = cms.OutputModule("PoolOutputModule",
0030     fileName = cms.untracked.string('testTriggerEvent.root')
0031 )
0032 
0033 process.path = cms.Path(process.triggerEventProducer)
0034 process.endPath = cms.EndPath(process.out)