CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
HiHelperTools.GatherAllModulesVisitor Class Reference
Inheritance diagram for HiHelperTools.GatherAllModulesVisitor:

Public Member Functions

def __init__
 
def enter
 
def leave
 
def modules
 

Private Attributes

 _gatheredInstance
 
 _modules
 

Detailed Description

Visitor that travels within a cms.Sequence, and returns a list of objects of type gatheredInance(e.g. modules) that have it

Definition at line 110 of file HiHelperTools.py.

Constructor & Destructor Documentation

def HiHelperTools.GatherAllModulesVisitor.__init__ (   self,
  gatheredInstance = cms._Module 
)

Definition at line 112 of file HiHelperTools.py.

113  def __init__(self, gatheredInstance=cms._Module):
114  self._modules = []
self._gatheredInstance= gatheredInstance

Member Function Documentation

def HiHelperTools.GatherAllModulesVisitor.enter (   self,
  visitee 
)

Definition at line 115 of file HiHelperTools.py.

References HiHelperTools.GatherAllModulesVisitor._gatheredInstance, and helpers.GatherAllModulesVisitor._gatheredInstance.

116  def enter(self,visitee):
117  if isinstance(visitee,self._gatheredInstance):
self._modules.append(visitee)
def HiHelperTools.GatherAllModulesVisitor.leave (   self,
  visitee 
)

Definition at line 118 of file HiHelperTools.py.

119  def leave(self,visitee):
pass
def HiHelperTools.GatherAllModulesVisitor.modules (   self)

Definition at line 120 of file HiHelperTools.py.

121  def modules(self):
122  return self._modules

Member Data Documentation

HiHelperTools.GatherAllModulesVisitor._gatheredInstance
private

Definition at line 114 of file HiHelperTools.py.

Referenced by HiHelperTools.GatherAllModulesVisitor.enter().

HiHelperTools.GatherAllModulesVisitor._modules
private

Definition at line 113 of file HiHelperTools.py.

Referenced by HiHelperTools.GatherAllModulesVisitor.modules().