CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
HiHelperTools.GatherAllModulesVisitor Class Reference
Inheritance diagram for HiHelperTools.GatherAllModulesVisitor:

Public Member Functions

def __init__ (self, gatheredInstance=cms._Module)
 
def enter (self, visitee)
 
def leave (self, visitee)
 
def modules (self)
 

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 41 of file HiHelperTools.py.

Constructor & Destructor Documentation

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

Definition at line 43 of file HiHelperTools.py.

43  def __init__(self, gatheredInstance=cms._Module):
44  self._modules = []
45  self._gatheredInstance= gatheredInstance
def __init__(self, gatheredInstance=cms._Module)

Member Function Documentation

def HiHelperTools.GatherAllModulesVisitor.enter (   self,
  visitee 
)

Definition at line 46 of file HiHelperTools.py.

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

46  def enter(self,visitee):
47  if isinstance(visitee,self._gatheredInstance):
48  self._modules.append(visitee)
def HiHelperTools.GatherAllModulesVisitor.leave (   self,
  visitee 
)

Definition at line 49 of file HiHelperTools.py.

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

Definition at line 51 of file HiHelperTools.py.

Member Data Documentation

HiHelperTools.GatherAllModulesVisitor._gatheredInstance
private

Definition at line 45 of file HiHelperTools.py.

Referenced by HiHelperTools.GatherAllModulesVisitor.enter().

HiHelperTools.GatherAllModulesVisitor._modules
private

Definition at line 44 of file HiHelperTools.py.

Referenced by HiHelperTools.GatherAllModulesVisitor.modules().