File indexing completed on 2024-04-06 12:12:39
0001 import FWCore.ParameterSet.Config as cms
0002
0003 process = cms.Process("Test")
0004 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(10))
0005
0006 process.source = cms.Source("EmptySource")
0007
0008 process.thing = cms.EDProducer("ThingProducer")
0009
0010 process.thingAlias = cms.EDAlias( thing = cms.VPSet(
0011 cms.PSet(type = cms.string('edmtestThings'),
0012 fromProductInstance = cms.string('*'),
0013 toProductInstance = cms.string('*'))))
0014
0015 process.otherThing1 = cms.EDProducer("OtherThingProducer",
0016 thingTag=cms.InputTag("thing"))
0017
0018 process.otherThing2 = cms.EDProducer("OtherThingProducer",
0019 thingTag=cms.InputTag("thingAlias"))
0020
0021 process.comparer = cms.EDAnalyzer("OtherThingRefComparer",
0022 first = cms.untracked.InputTag("otherThing1:testUserTag"),
0023 second = cms.untracked.InputTag("otherThing2:testUserTag")
0024 )
0025
0026 process.out = cms.OutputModule("PoolOutputModule",
0027 fileName = cms.untracked.string("ref_alias_drop_original.root"),
0028 outputCommands = cms.untracked.vstring("keep *",
0029 "drop *_thing_*_*")
0030 )
0031
0032 process.p = cms.Path(process.thing+process.otherThing1+process.otherThing2+process.comparer)
0033 process.o = cms.EndPath(process.out)