Definition at line 183 of file HiHelperTools.py.
def HiHelperTools.TestModuleCommand.setUp |
( |
|
self | ) |
|
def HiHelperTools.TestModuleCommand.testCloning |
( |
|
self | ) |
|
Definition at line 187 of file HiHelperTools.py.
188 p = cms.Process(
"test")
189 p.a = cms.EDProducer(
"a", src=cms.InputTag(
"gen"))
190 p.b = cms.EDProducer(
"b", src=cms.InputTag(
"a"))
191 p.c = cms.EDProducer(
"c", src=cms.InputTag(
"b",
"instance"))
192 p.s = cms.Sequence(p.a*p.b*p.c *p.a)
194 self.assertEqual(p.dumpPython(),
'import FWCore.ParameterSet.Config as cms\n\nprocess = cms.Process("test")\n\nprocess.a = cms.EDProducer("a",\n src = cms.InputTag("gen")\n)\n\n\nprocess.c = cms.EDProducer("c",\n src = cms.InputTag("b","instance")\n)\n\n\nprocess.cNew = cms.EDProducer("c",\n src = cms.InputTag("bNew","instance")\n)\n\n\nprocess.bNew = cms.EDProducer("b",\n src = cms.InputTag("aNew")\n)\n\n\nprocess.aNew = cms.EDProducer("a",\n src = cms.InputTag("gen")\n)\n\n\nprocess.b = cms.EDProducer("b",\n src = cms.InputTag("a")\n)\n\n\nprocess.s = cms.Sequence(process.a*process.b*process.c*process.a)\n\n\nprocess.sNew = cms.Sequence(process.aNew+process.bNew+process.cNew)\n\n\n')
def HiHelperTools.TestModuleCommand.testContains |
( |
|
self | ) |
|
Definition at line 195 of file HiHelperTools.py.
References HiHelperTools.contains().
196 p = cms.Process(
"test")
197 p.a = cms.EDProducer(
"a", src=cms.InputTag(
"gen"))
198 p.b = cms.EDProducer(
"ab", src=cms.InputTag(
"a"))
199 p.c = cms.EDProducer(
"ac", src=cms.InputTag(
"b"))
200 p.s1 = cms.Sequence(p.a*p.b*p.c)
201 p.s2 = cms.Sequence(p.b*p.c)
203 self.assert_(
not contains(p.s2,
"a") )
def HiHelperTools.TestModuleCommand.testJetCollectionString |
( |
|
self | ) |
|
def HiHelperTools.TestModuleCommand.testListModules |
( |
|
self | ) |
|
Definition at line 207 of file HiHelperTools.py.
References HiHelperTools.listModules().
208 p = cms.Process(
"test")
209 p.a = cms.EDProducer(
"a", src=cms.InputTag(
"gen"))
210 p.b = cms.EDProducer(
"ab", src=cms.InputTag(
"a"))
211 p.c = cms.EDProducer(
"ac", src=cms.InputTag(
"b"))
212 p.s = cms.Sequence(p.a*p.b*p.c)