Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 import sys
0003 
0004 process = cms.Process("READ")
0005 
0006 process.source = cms.Source("PoolSource", fileNames = cms.untracked.vstring("file:"+sys.argv[1]))
0007 process.maxEvents.input = 1
0008 
0009 process.testReadGlobalObjectMapRecord = cms.EDAnalyzer("TestReadGlobalObjectMapRecord",
0010     expectedAlgoNames = cms.vstring('muonAlgo', 'electronAlgo'),
0011     expectedAlgoBitNumbers = cms.vint32(11, 21),
0012     expectedAlgoGtlResults = cms.vint32(1, 0),
0013     expectedTokenNames0 = cms.vstring('testnameA', 'testNameB'),
0014     expectedTokenNumbers0 = cms.vint32(101, 102),
0015     expectedTokenResults0 = cms.vint32(1, 0),
0016     expectedTokenNames3 = cms.vstring('testNameC', 'testNameD'),
0017     expectedTokenNumbers3 = cms.vint32(1001, 1002),
0018     expectedTokenResults3 = cms.vint32(0, 1),
0019     expectedFirstElement = cms.int32(11),
0020     expectedElementDelta = cms.int32(3),
0021     # 3 (delta) * (3*4*5 + 3*4) + 11 = 227
0022     expectedFinalValue = cms.int32(227),
0023     globalObjectMapRecordTag = cms.InputTag("globalObjectMapRecordProducer", "", "PROD"),
0024 )
0025 
0026 process.out = cms.OutputModule("PoolOutputModule",
0027     fileName = cms.untracked.string('testGlobalObjectMapRecord2.root')
0028 )
0029 
0030 process.path = cms.Path(process.testReadGlobalObjectMapRecord)
0031 
0032 process.endPath = cms.EndPath(process.out)