CMS 3D CMS Logo

Public Member Functions | Public Attributes | Private Attributes | Static Private Attributes

SequenceVisitors::EndPathValidator Class Reference

List of all members.

Public Member Functions

def __init__
def enter
def leave
def setLabel

Public Attributes

 filtersOnEndpaths

Private Attributes

 __label

Static Private Attributes

list _presetFilters = ["TriggerResultsFilter", "HLTPrescaler"]

Detailed Description

Definition at line 20 of file SequenceVisitors.py.


Constructor & Destructor Documentation

def SequenceVisitors::EndPathValidator::__init__ (   self)

Definition at line 22 of file SequenceVisitors.py.

00022                       :   
00023         self.filtersOnEndpaths = []
00024         self.__label = ''

Member Function Documentation

def SequenceVisitors::EndPathValidator::enter (   self,
  visitee 
)

Definition at line 27 of file SequenceVisitors.py.

00028                            :
00029         if isinstance(visitee,EDFilter):
00030             if (visitee.type_() in self._presetFilters):
00031                 if (visitee.type_() not in self.filtersOnEndpaths):
00032                     self.filtersOnEndpaths.append(visitee.type_())
00033         if hasattr(visitee, "label_") and not isinstance(visitee,Sequence):
00034             if not visitee.hasLabel_():
                raise ValueError("EndPath "+self.__label+"contains a module of type '"+visitee.type_()+"' which has no assigned label.\n Most likely the module was never added to the process or it got replaced before being inserted into the process.")
def SequenceVisitors::EndPathValidator::leave (   self,
  visitee 
)

Definition at line 35 of file SequenceVisitors.py.

00036                            :
00037         pass

def SequenceVisitors::EndPathValidator::setLabel (   self,
  label 
)

Definition at line 25 of file SequenceVisitors.py.

00026                             :
        self.__label = "'"+label+"' "

Member Data Documentation

Definition at line 22 of file SequenceVisitors.py.

list SequenceVisitors::EndPathValidator::_presetFilters = ["TriggerResultsFilter", "HLTPrescaler"] [static, private]

Definition at line 21 of file SequenceVisitors.py.

Definition at line 22 of file SequenceVisitors.py.