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 121 of file SequenceVisitors.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 123 of file SequenceVisitors.py.

123  def __init__(self, validator, node, decorated, optional=None):
124  self._validator = validator
125  self._node = node
126  self._decorated = decorated
127  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 128 of file SequenceVisitors.py.

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

128  def enter(self, visitee):
129  self._validator.enter(visitee)
130  self._node.enter(visitee)
131  self._decorated.enter(visitee)
132  if self._optional:
133  self._optional.enter(visitee)

◆ leave()

def SequenceVisitors.CompositeVisitor.leave (   self,
  visitee 
)

Definition at line 134 of file SequenceVisitors.py.

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

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

Member Data Documentation

◆ _decorated

SequenceVisitors.CompositeVisitor._decorated
private

◆ _node

SequenceVisitors.CompositeVisitor._node
private

Definition at line 125 of file SequenceVisitors.py.

Referenced by SequenceVisitors.CompositeVisitor.enter().

◆ _optional

SequenceVisitors.CompositeVisitor._optional
private

◆ _validator

SequenceVisitors.CompositeVisitor._validator
private