Definition at line 366 of file helpers.py.
def helpers.TestModuleCommand.setUp |
( |
|
self | ) |
|
def helpers.TestModuleCommand.testCloning |
( |
|
self | ) |
|
Definition at line 370 of file helpers.py.
371 p = cms.Process(
"test")
372 p.a = cms.EDProducer(
"a", src=cms.InputTag(
"gen"))
373 p.b = cms.EDProducer(
"b", src=cms.InputTag(
"a"))
374 p.c = cms.EDProducer(
"c", src=cms.InputTag(
"b",
"instance"))
375 p.s = cms.Sequence(p.a*p.b*p.c *p.a)
377 self.assertEqual(p.dumpPython(),
378 """import FWCore.ParameterSet.Config as cms 380 process = cms.Process("test") 382 process.a = cms.EDProducer("a", 383 src = cms.InputTag("gen") 387 process.aNew = cms.EDProducer("a", 388 src = cms.InputTag("gen") 392 process.b = cms.EDProducer("b", 393 src = cms.InputTag("a") 397 process.bNew = cms.EDProducer("b", 398 src = cms.InputTag("aNew") 402 process.c = cms.EDProducer("c", 403 src = cms.InputTag("b","instance") 407 process.cNew = cms.EDProducer("c", 408 src = cms.InputTag("bNew","instance") 412 process.patAlgosToolsTask = cms.Task(process.aNew, process.bNew, process.cNew) 415 process.s = cms.Sequence(process.a+process.b+process.c+process.a) 418 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 422 of file helpers.py.
References helpers.contains().
423 p = cms.Process(
"test")
424 p.a = cms.EDProducer(
"a", src=cms.InputTag(
"gen"))
425 p.b = cms.EDProducer(
"ab", src=cms.InputTag(
"a"))
426 p.c = cms.EDProducer(
"ac", src=cms.InputTag(
"b"))
427 p.s1 = cms.Sequence(p.a*p.b*p.c)
428 p.s2 = cms.Sequence(p.b*p.c)
430 self.assert_(
not contains(p.s2,
"a") )
def contains(sequence, moduleName)
def helpers.TestModuleCommand.testJetCollectionString |
( |
|
self | ) |
|
def helpers.TestModuleCommand.testListModules |
( |
|
self | ) |
|
Definition at line 434 of file helpers.py.
References helpers.listModules().
435 p = cms.Process(
"test")
436 p.a = cms.EDProducer(
"a", src=cms.InputTag(
"gen"))
437 p.b = cms.EDProducer(
"ab", src=cms.InputTag(
"a"))
438 p.c = cms.EDProducer(
"ac", src=cms.InputTag(
"b"))
439 p.s = cms.Sequence(p.a*p.b*p.c)
def listModules(sequence)
def testListModules(self)