CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
SequenceTypes._BooleanLogicExpression Class Reference
Inheritance diagram for SequenceTypes._BooleanLogicExpression:
SequenceTypes._BooleanLogicSequenceable SequenceTypes._Sequenceable

Public Member Functions

def __init__ (self, op, left, right)
 
def dumpSequencePython (self, options=PrintOptions())
 
def isOperation (self)
 
def operatorString (self)
 
- Public Member Functions inherited from SequenceTypes._BooleanLogicSequenceable
def __and__ (self, other)
 
def __init__ (self)
 
def __or__ (self, other)
 
- Public Member Functions inherited from SequenceTypes._Sequenceable
def __add__ (self, rhs)
 
def __init__ (self)
 
def __invert__ (self)
 
def __mul__ (self, rhs)
 
def isLeaf (self)
 
def isOperation (self)
 
def resolve (self, processDict, keepIfCannotResolve=False)
 
def visitNode (self, visitor)
 

Private Member Functions

def _visitSubNodes (self, visitor)
 

Private Attributes

 _items
 
 _op
 

Detailed Description

Contains the operation of a boolean logic expression

Definition at line 78 of file SequenceTypes.py.

Constructor & Destructor Documentation

def SequenceTypes._BooleanLogicExpression.__init__ (   self,
  op,
  left,
  right 
)

Definition at line 82 of file SequenceTypes.py.

References SequenceTypes._checkIfBooleanLogicSequenceable().

82  def __init__(self,op,left,right):
85  self._op = op
86  self._items = list()
87  #if either the left or right side are the same kind of boolean expression
88  # then we can just add their items to our own. This keeps the expression
89  # tree more compact
90  if isinstance(left,_BooleanLogicExpression) and left._op == self._op:
91  self._items.extend(left._items)
92  else:
93  self._items.append(left)
94  if isinstance(right,_BooleanLogicExpression) and right._op == self._op:
95  self._items.extend(right._items)
96  else:
97  self._items.append(right)
def __init__(self, op, left, right)
def _checkIfBooleanLogicSequenceable(caller, v)
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger list("!*","!HLTx*"if it matches 2 triggers or more) will accept the event if all the matching triggers are FAIL.It will reject the event if any of the triggers are PASS or EXCEPTION(this matches the behavior of"!*"before the partial wildcard feature was incorporated).Triggers which are in the READY state are completely ignored.(READY should never be returned since the trigger paths have been run

Member Function Documentation

def SequenceTypes._BooleanLogicExpression._visitSubNodes (   self,
  visitor 
)
private

Definition at line 100 of file SequenceTypes.py.

References SequenceTypes._BooleanLogicExpression._items.

100  def _visitSubNodes(self,visitor):
101  for i in self._items:
102  i.visitNode(visitor)
def SequenceTypes._BooleanLogicExpression.dumpSequencePython (   self,
  options = PrintOptions() 
)

Definition at line 103 of file SequenceTypes.py.

References SequenceTypes._BooleanLogicExpression._items, and SequenceTypes._BooleanLogicExpression.operatorString().

103  def dumpSequencePython(self, options=PrintOptions()):
104  returnValue = ''
105  join = ''
106  operatorJoin =self.operatorString()
107  for m in self._items:
108  returnValue +=join
109  join = operatorJoin
110  if not isinstance(m,_BooleanLogicSequenceLeaf):
111  returnValue += '('+m.dumpSequencePython(options)+')'
112  else:
113  returnValue += m.dumpSequencePython(options)
114  return returnValue
def dumpSequencePython(self, options=PrintOptions())
def SequenceTypes._BooleanLogicExpression.isOperation (   self)

Definition at line 98 of file SequenceTypes.py.

98  def isOperation(self):
99  return True
def SequenceTypes._BooleanLogicExpression.operatorString (   self)

Member Data Documentation

SequenceTypes._BooleanLogicExpression._items
private
SequenceTypes._BooleanLogicExpression._op
private