Definition at line 365 of file helpers.py.
def helpers.TestModuleCommand.setUp |
( |
|
self | ) |
|
def helpers.TestModuleCommand.testCloning |
( |
|
self | ) |
|
Definition at line 369 of file helpers.py.
370 p = cms.Process(
"test")
371 p.a = cms.EDProducer(
"a", src=cms.InputTag(
"gen"))
372 p.b = cms.EDProducer(
"b", src=cms.InputTag(
"a"))
373 p.c = cms.EDProducer(
"c", src=cms.InputTag(
"b",
"instance"))
374 p.s = cms.Sequence(p.a*p.b*p.c *p.a)
376 self.assertEqual(p.dumpPython(),
377 """import FWCore.ParameterSet.Config as cms 379 process = cms.Process("test") 381 process.a = cms.EDProducer("a", 382 src = cms.InputTag("gen") 386 process.aNew = cms.EDProducer("a", 387 src = cms.InputTag("gen") 391 process.b = cms.EDProducer("b", 392 src = cms.InputTag("a") 396 process.bNew = cms.EDProducer("b", 397 src = cms.InputTag("aNew") 401 process.c = cms.EDProducer("c", 402 src = cms.InputTag("b","instance") 406 process.cNew = cms.EDProducer("c", 407 src = cms.InputTag("bNew","instance") 411 process.patAlgosToolsTask = cms.Task(process.aNew, process.bNew, process.cNew) 414 process.s = cms.Sequence(process.a+process.b+process.c+process.a) 417 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 421 of file helpers.py.
References helpers.contains().
422 p = cms.Process(
"test")
423 p.a = cms.EDProducer(
"a", src=cms.InputTag(
"gen"))
424 p.b = cms.EDProducer(
"ab", src=cms.InputTag(
"a"))
425 p.c = cms.EDProducer(
"ac", src=cms.InputTag(
"b"))
426 p.s1 = cms.Sequence(p.a*p.b*p.c)
427 p.s2 = cms.Sequence(p.b*p.c)
429 self.assert_(
not contains(p.s2,
"a") )
def contains(sequence, moduleName)
def helpers.TestModuleCommand.testJetCollectionString |
( |
|
self | ) |
|
def helpers.TestModuleCommand.testListModules |
( |
|
self | ) |
|
Definition at line 433 of file helpers.py.
References helpers.listModules().
434 p = cms.Process(
"test")
435 p.a = cms.EDProducer(
"a", src=cms.InputTag(
"gen"))
436 p.b = cms.EDProducer(
"ab", src=cms.InputTag(
"a"))
437 p.c = cms.EDProducer(
"ac", src=cms.InputTag(
"b"))
438 p.s = cms.Sequence(p.a*p.b*p.c)
def listModules(sequence)
def testListModules(self)