test
CMS 3D CMS Logo

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

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)

Member Function Documentation

def SequenceVisitors.EndPathValidator.enter (   self,
  visitee 
)

Definition at line 27 of file SequenceVisitors.py.

References SequenceVisitors.PathValidator.__label, SequenceVisitors.EndPathValidator.__label, Mixins._Labelable.__label, SequenceVisitors.EndPathValidator._presetFilters, and SequenceVisitors.EndPathValidator.filtersOnEndpaths.

27 
28  def enter(self,visitee):
29  if isinstance(visitee,EDFilter):
30  if (visitee.type_() in self._presetFilters):
31  if (visitee.type_() not in self.filtersOnEndpaths):
32  self.filtersOnEndpaths.append(visitee.type_())
33  if hasattr(visitee, "label_") and not isinstance(visitee,Sequence):
34  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.

35 
36  def leave(self,visitee):
37  pass
def SequenceVisitors.EndPathValidator.setLabel (   self,
  label 
)

Definition at line 25 of file SequenceVisitors.py.

References SequenceVisitors.PathValidator.__label, SequenceVisitors.EndPathValidator.__label, and Mixins._Labelable.__label.

25 
26  def setLabel(self,label):
self.__label = "'"+label+"' "

Member Data Documentation

SequenceVisitors.EndPathValidator.__label
private

Definition at line 24 of file SequenceVisitors.py.

Referenced by Mixins._ValidatingListBase._labelIfAny(), SequenceVisitors.EndPathValidator.enter(), and SequenceVisitors.EndPathValidator.setLabel().

list SequenceVisitors.EndPathValidator._presetFilters = ["TriggerResultsFilter", "HLTPrescaler"]
staticprivate

Definition at line 21 of file SequenceVisitors.py.

Referenced by SequenceVisitors.EndPathValidator.enter().

SequenceVisitors.EndPathValidator.filtersOnEndpaths

Definition at line 23 of file SequenceVisitors.py.

Referenced by SequenceVisitors.EndPathValidator.enter().