Definition at line 361 of file helpers.py.
def helpers.TestModuleCommand.setUp |
( |
|
self | ) |
|
def helpers.TestModuleCommand.testCloning |
( |
|
self | ) |
|
Definition at line 365 of file helpers.py.
366 p = cms.Process(
"test")
367 p.a = cms.EDProducer(
"a", src=cms.InputTag(
"gen"))
368 p.b = cms.EDProducer(
"b", src=cms.InputTag(
"a"))
369 p.c = cms.EDProducer(
"c", src=cms.InputTag(
"b",
"instance"))
370 p.s = cms.Sequence(p.a*p.b*p.c *p.a)
372 self.assertEqual(p.dumpPython(),
373 """import FWCore.ParameterSet.Config as cms 375 process = cms.Process("test") 377 process.a = cms.EDProducer("a", 378 src = cms.InputTag("gen") 382 process.aNew = cms.EDProducer("a", 383 src = cms.InputTag("gen") 387 process.b = cms.EDProducer("b", 388 src = cms.InputTag("a") 392 process.bNew = cms.EDProducer("b", 393 src = cms.InputTag("aNew") 397 process.c = cms.EDProducer("c", 398 src = cms.InputTag("b","instance") 402 process.cNew = cms.EDProducer("c", 403 src = cms.InputTag("bNew","instance") 407 process.patAlgosToolsTask = cms.Task(process.aNew, process.bNew, process.cNew) 410 process.s = cms.Sequence(process.a+process.b+process.c+process.a) 413 process.sNew = cms.Sequence(process.aNew+process.bNew+process.cNew+process.aNew) def cloneProcessingSnippet(process, sequence, postfix, removePostfix="", noClones=[], addToTask=False)
def helpers.TestModuleCommand.testContains |
( |
|
self | ) |
|
Definition at line 417 of file helpers.py.
References helpers.contains().
418 p = cms.Process(
"test")
419 p.a = cms.EDProducer(
"a", src=cms.InputTag(
"gen"))
420 p.b = cms.EDProducer(
"ab", src=cms.InputTag(
"a"))
421 p.c = cms.EDProducer(
"ac", src=cms.InputTag(
"b"))
422 p.s1 = cms.Sequence(p.a*p.b*p.c)
423 p.s2 = cms.Sequence(p.b*p.c)
425 self.assert_(
not contains(p.s2,
"a") )
def contains(sequence, moduleName)
def helpers.TestModuleCommand.testJetCollectionString |
( |
|
self | ) |
|
def helpers.TestModuleCommand.testListModules |
( |
|
self | ) |
|
Definition at line 429 of file helpers.py.
References helpers.listModules().
430 p = cms.Process(
"test")
431 p.a = cms.EDProducer(
"a", src=cms.InputTag(
"gen"))
432 p.b = cms.EDProducer(
"ab", src=cms.InputTag(
"a"))
433 p.c = cms.EDProducer(
"ac", src=cms.InputTag(
"b"))
434 p.s = cms.Sequence(p.a*p.b*p.c)
def listModules(sequence)
def testListModules(self)