CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
SequenceVisitors.CompositeVisitor Class Reference
Inheritance diagram for SequenceVisitors.CompositeVisitor:

Public Member Functions

def __init__ (self, validator, node, decorated, optional=None)
 
def enter (self, visitee)
 
def leave (self, visitee)
 

Private Attributes

 _decorated
 
 _node
 
 _optional
 
 _validator
 

Detailed Description

Combines 3 different visitor classes in 1 so we only have to visit all the paths and endpaths once

Definition at line 118 of file SequenceVisitors.py.

Constructor & Destructor Documentation

◆ __init__()

def SequenceVisitors.CompositeVisitor.__init__ (   self,
  validator,
  node,
  decorated,
  optional = None 
)

Definition at line 120 of file SequenceVisitors.py.

120  def __init__(self, validator, node, decorated, optional=None):
121  self._validator = validator
122  self._node = node
123  self._decorated = decorated
124  self._optional = optional
def __init__(self, dataset, job_number, job_id, job_name, isDA, isMC, applyBOWS, applyEXTRACOND, extraconditions, runboundary, lumilist, intlumi, maxevents, gt, allFromGT, alignmentDB, alignmentTAG, apeDB, apeTAG, bowDB, bowTAG, vertextype, tracktype, refittertype, ttrhtype, applyruncontrol, ptcut, CMSSW_dir, the_dir)

Member Function Documentation

◆ enter()

def SequenceVisitors.CompositeVisitor.enter (   self,
  visitee 
)

Definition at line 125 of file SequenceVisitors.py.

References SequenceVisitors.CompositeVisitor._decorated, SequenceVisitors.CompositeVisitor._node, SequenceVisitors.CompositeVisitor._optional, and SequenceVisitors.CompositeVisitor._validator.

125  def enter(self, visitee):
126  self._validator.enter(visitee)
127  self._node.enter(visitee)
128  self._decorated.enter(visitee)
129  if self._optional:
130  self._optional.enter(visitee)

◆ leave()

def SequenceVisitors.CompositeVisitor.leave (   self,
  visitee 
)

Definition at line 131 of file SequenceVisitors.py.

References SequenceVisitors.CompositeVisitor._decorated, SequenceVisitors.CompositeVisitor._optional, and SequenceVisitors.CompositeVisitor._validator.

131  def leave(self, visitee):
132  self._validator.leave(visitee)
133  # The node visitor leave function does nothing
134  #self._node.leave(visitee)
135  self._decorated.leave(visitee)
136  if self._optional:
137  self._optional.leave(visitee)
138 

Member Data Documentation

◆ _decorated

SequenceVisitors.CompositeVisitor._decorated
private

◆ _node

SequenceVisitors.CompositeVisitor._node
private

Definition at line 122 of file SequenceVisitors.py.

Referenced by SequenceVisitors.CompositeVisitor.enter().

◆ _optional

SequenceVisitors.CompositeVisitor._optional
private

◆ _validator

SequenceVisitors.CompositeVisitor._validator
private