CMS 3D CMS Logo

usedOutput::TestPrintPath Class Reference

List of all members.

Public Member Functions

def testGetModules


Detailed Description

Definition at line 42 of file usedOutput.py.


Member Function Documentation

def usedOutput::TestPrintPath::testGetModules (   self  ) 

Definition at line 43 of file usedOutput.py.

00043                                 :
00044             p=cms.Process("Test")
00045             p.foo = cms.EDProducer("Foo")
00046             p.p = cms.Path(p.foo)
00047             list = []
00048             getModulesFromSequence(p.p,list)
00049             print len(list)
00050 
00051             p=cms.Process("Test")
00052             p.foo = cms.OutputModule("Foo")
00053             p.bar = cms.OutputModule("Bar")
00054             p.unused = cms.OutputModule("Unused")
00055             p.p = cms.EndPath(p.foo*p.bar)
00056             usedOutputs = extractUsedOutputs(p)
00057             print len(usedOutputs)
00058 
00059             p=cms.Process("Test")
00060             p.foo = cms.EDProducer("Foo")
00061             p.bar = cms.EDProducer("Bar")
00062             p.s = cms.Sequence(p.foo*p.bar)
00063             p.fii = cms.EDProducer("Fii")
00064             p.p = cms.Path(p.s*p.fii)
00065             list = []
00066             getModulesFromSequence(p.p,list)
00067             print len(list)
00068                        
00069 
00070     unittest.main()
    unittest.main()


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:53:12 2009 for CMSSW by  doxygen 1.5.4