Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("PROD")
0004 
0005 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0006 
0007 process.MessageLogger.cerr.enableStatistics = False
0008 
0009 
0010 process.load("FWCore.Framework.test.cmsExceptionsFatal_cff")
0011 
0012 process.maxEvents = cms.untracked.PSet(
0013     input = cms.untracked.int32(3)
0014 )
0015 
0016 process.source = cms.Source("EmptySource")
0017 
0018 process.intvec1 = cms.EDProducer("IntVectorProducer",
0019     count = cms.int32(9),
0020     ivalue = cms.int32(11),
0021     delta = cms.int32(1)
0022 )
0023 
0024 process.intvec2 = cms.EDProducer("IntVectorProducer",
0025     count = cms.int32(9),
0026     ivalue = cms.int32(21),
0027     delta = cms.int32(1)
0028 )
0029 
0030 process.associationMapProducer = cms.EDProducer("AssociationMapProducer",
0031     inputTag1 = cms.InputTag("intvec1"),
0032     inputTag2 = cms.InputTag("intvec2")
0033 )
0034 
0035 process.test = cms.EDAnalyzer("AssociationMapAnalyzer",
0036     inputTag1 = cms.InputTag("intvec1"),
0037     inputTag2 = cms.InputTag("intvec2"),
0038     associationMapTag1 = cms.InputTag("associationMapProducer"),
0039     associationMapTag2 = cms.InputTag("associationMapProducer", "twoArg"),
0040     associationMapTag3 = cms.InputTag("associationMapProducer"),
0041     associationMapTag4 = cms.InputTag("associationMapProducer", "handleArg"),
0042     associationMapTag5 = cms.InputTag("associationMapProducer"),
0043     associationMapTag6 = cms.InputTag("associationMapProducer"),
0044     associationMapTag7 = cms.InputTag("associationMapProducer"),
0045     associationMapTag8 = cms.InputTag("associationMapProducer", "twoArg")
0046 )
0047 
0048 process.out = cms.OutputModule("PoolOutputModule",
0049     fileName = cms.untracked.string('AssociationMapTest.root')
0050 )
0051 
0052 process.p = cms.Path(process.intvec1 * process.intvec2 * process.associationMapProducer * process.test)
0053 
0054 process.e = cms.EndPath(process.out)