CMS 3D CMS Logo

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

Public Member Functions

def __init__
 
def dumpSequencePython
 
def isOperation
 
def operatorString
 
- Public Member Functions inherited from SequenceTypes._BooleanLogicSequenceable
def __and__
 
def __init__
 
def __or__
 
- Public Member Functions inherited from SequenceTypes._Sequenceable
def __add__
 
def __init__
 
def __invert__
 
def __mul__
 
def isLeaf
 
def isOperation
 
def resolve
 
def visitNode
 

Static Public Attributes

int AND = 1
 
int OR = 0
 

Private Member Functions

def _visitSubNodes
 

Private Attributes

 _items
 
 _op
 

Detailed Description

Contains the operation of a boolean logic expression

Definition at line 73 of file SequenceTypes.py.

Constructor & Destructor Documentation

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

Definition at line 77 of file SequenceTypes.py.

References SequenceTypes._checkIfBooleanLogicSequenceable().

77 
78  def __init__(self,op,left,right):
81  self._op = op
82  self._items = list()
83  #if either the left or right side are the same kind of boolean expression
84  # then we can just add their items to our own. This keeps the expression
85  # tree more compact
86  if isinstance(left,_BooleanLogicExpression) and left._op == self._op:
87  self._items.extend(left._items)
88  else:
89  self._items.append(left)
90  if isinstance(right,_BooleanLogicExpression) and right._op == self._op:
91  self._items.extend(right._items)
92  else:
self._items.append(right)
def _checkIfBooleanLogicSequenceable
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 95 of file SequenceTypes.py.

References SequenceTypes._BooleanLogicExpression._items.

95 
96  def _visitSubNodes(self,visitor):
97  for i in self._items:
i.visitNode(visitor)
def SequenceTypes._BooleanLogicExpression.dumpSequencePython (   self)

Definition at line 98 of file SequenceTypes.py.

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

98 
99  def dumpSequencePython(self):
100  returnValue = ''
101  join = ''
102  operatorJoin =self.operatorString()
103  for m in self._items:
104  returnValue +=join
105  join = operatorJoin
106  if not isinstance(m,_BooleanLogicSequenceLeaf):
107  returnValue += '('+m.dumpSequencePython()+')'
108  else:
109  returnValue += m.dumpSequencePython()
return returnValue
def SequenceTypes._BooleanLogicExpression.isOperation (   self)

Definition at line 93 of file SequenceTypes.py.

93 
94  def isOperation(self):
return True
def SequenceTypes._BooleanLogicExpression.operatorString (   self)

Definition at line 110 of file SequenceTypes.py.

References SequenceTypes._BooleanLogicExpression._op, edm::DocFormatHelper.AND, SequenceTypes._BooleanLogicExpression.AND, dqmservices::TriggerSelector::TreeElement.AND, egHLT::EgObjTrigCut< T >.AND, and egHLT::EgEvtTrigCut< T >.AND.

Referenced by SequenceTypes._BooleanLogicExpression.dumpSequencePython().

111  def operatorString(self):
112  returnValue ='|'
113  if self._op == self.AND:
114  returnValue = '&'
115  return returnValue
116 

Member Data Documentation

SequenceTypes._BooleanLogicExpression._items
private

Definition at line 81 of file SequenceTypes.py.

Referenced by cfg-viewer.html.__init__(), SequenceTypes._BooleanLogicExpression._visitSubNodes(), and SequenceTypes._BooleanLogicExpression.dumpSequencePython().

SequenceTypes._BooleanLogicExpression._op
private

Definition at line 80 of file SequenceTypes.py.

Referenced by SequenceTypes._BooleanLogicExpression.operatorString().

int SequenceTypes._BooleanLogicExpression.AND = 1
static

Definition at line 76 of file SequenceTypes.py.

Referenced by SequenceTypes._BooleanLogicExpression.operatorString().

int SequenceTypes._BooleanLogicExpression.OR = 0
static

Definition at line 75 of file SequenceTypes.py.