CMS 3D CMS Logo

Public Member Functions | Private Attributes

HiHelperTools::MassSearchParamVisitor Class Reference

List of all members.

Public Member Functions

def __init__
def enter
def leave
def modules

Private Attributes

 _modules
 _paramName
 _paramSearch

Detailed Description

Visitor that travels within a cms.Sequence, looks for a parameter and returns a list of modules that have it

Definition at line 184 of file HiHelperTools.py.


Constructor & Destructor Documentation

def HiHelperTools::MassSearchParamVisitor::__init__ (   self,
  paramName,
  paramSearch 
)

Definition at line 186 of file HiHelperTools.py.

00187                                             :
00188         self._paramName   = paramName
00189         self._paramSearch = paramSearch
        self._modules = []

Member Function Documentation

def HiHelperTools::MassSearchParamVisitor::enter (   self,
  visitee 
)

Definition at line 190 of file HiHelperTools.py.

00191                            :
00192         if (hasattr(visitee,self._paramName)):
00193             if getattr(visitee,self._paramName) == self._paramSearch:
                self._modules.append(visitee)
def HiHelperTools::MassSearchParamVisitor::leave (   self,
  visitee 
)

Definition at line 194 of file HiHelperTools.py.

00195                            :
        pass
def HiHelperTools::MassSearchParamVisitor::modules (   self)

Definition at line 196 of file HiHelperTools.py.

00197                      :
00198         return self._modules
    

Member Data Documentation

Definition at line 186 of file HiHelperTools.py.

Definition at line 186 of file HiHelperTools.py.

Definition at line 186 of file HiHelperTools.py.