Definition at line 182 of file HiHelperTools.py.
def HiHelperTools.TestModuleCommand.setUp |
( |
|
self | ) |
|
def HiHelperTools.TestModuleCommand.testCloning |
( |
|
self | ) |
|
Definition at line 186 of file HiHelperTools.py.
187 p = cms.Process(
"test")
188 p.a = cms.EDProducer(
"a", src=cms.InputTag(
"gen"))
189 p.b = cms.EDProducer(
"b", src=cms.InputTag(
"a"))
190 p.c = cms.EDProducer(
"c", src=cms.InputTag(
"b",
"instance"))
191 p.s = cms.Sequence(p.a*p.b*p.c *p.a)
193 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 194 of file HiHelperTools.py.
References HiHelperTools.contains().
195 p = cms.Process(
"test")
196 p.a = cms.EDProducer(
"a", src=cms.InputTag(
"gen"))
197 p.b = cms.EDProducer(
"ab", src=cms.InputTag(
"a"))
198 p.c = cms.EDProducer(
"ac", src=cms.InputTag(
"b"))
199 p.s1 = cms.Sequence(p.a*p.b*p.c)
200 p.s2 = cms.Sequence(p.b*p.c)
202 self.assert_(
not contains(p.s2,
"a") )
def HiHelperTools.TestModuleCommand.testJetCollectionString |
( |
|
self | ) |
|
def HiHelperTools.TestModuleCommand.testListModules |
( |
|
self | ) |
|
Definition at line 206 of file HiHelperTools.py.
References HiHelperTools.listModules().
207 p = cms.Process(
"test")
208 p.a = cms.EDProducer(
"a", src=cms.InputTag(
"gen"))
209 p.b = cms.EDProducer(
"ab", src=cms.InputTag(
"a"))
210 p.c = cms.EDProducer(
"ac", src=cms.InputTag(
"b"))
211 p.s = cms.Sequence(p.a*p.b*p.c)