Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
import FWCore.ParameterSet.Config as cms
import sys

process = cms.Process("READ")

process.source = cms.Source("PoolSource", fileNames = cms.untracked.vstring("file:"+sys.argv[1]))

process.testReadSiStripApproximateClusterCollection = cms.EDAnalyzer("TestReadSiStripApproximateClusterCollection",
    expectedIntegralValues = cms.vuint32(11, 21, 31, 41, 51, 62, 73),
    collectionTag = cms.InputTag("collectionProducer", "", "PROD")
)

process.out = cms.OutputModule("PoolOutputModule",
    fileName = cms.untracked.string('testSiStripApproximateClusterCollection2.root'),
    fastCloning = cms.untracked.bool(False)
)

process.path = cms.Path(process.testReadSiStripApproximateClusterCollection)

process.endPath = cms.EndPath(process.out)