CMS 3D CMS Logo

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

Public Member Functions

def __init__ (self)
 
def enter (self, visitee)
 
def leave (self, visitee)
 

Public Attributes

 esProducers
 
 esSources
 
 modules
 
 services
 

Detailed Description

Form sets of all modules, ESProducers, ESSources and Services in visited objects. Can be used
to visit Paths, EndPaths, Sequences or Tasks. Includes in sets objects on sub-Sequences and sub-Tasks

Definition at line 71 of file SequenceVisitors.py.

Constructor & Destructor Documentation

◆ __init__()

def SequenceVisitors.NodeVisitor.__init__ (   self)

Definition at line 74 of file SequenceVisitors.py.

74  def __init__(self):
75  self.modules = set()
76  self.esProducers = set()
77  self.esSources = set()
78  self.services = set()

Member Function Documentation

◆ enter()

def SequenceVisitors.NodeVisitor.enter (   self,
  visitee 
)

Definition at line 79 of file SequenceVisitors.py.

79  def enter(self,visitee):
80  if visitee.isLeaf():
81  if isinstance(visitee, _Module):
82  self.modules.add(visitee)
83  elif isinstance(visitee, ESProducer):
84  self.esProducers.add(visitee)
85  elif isinstance(visitee, ESSource):
86  self.esSources.add(visitee)
87  elif isinstance(visitee, Service):
88  self.services.add(visitee)

References PVValHelper.add(), SequenceVisitors.NodeVisitor.esProducers, SequenceVisitors.NodeVisitor.esSources, SequenceVisitors.NodeVisitor.modules, EcalABAnalyzer.modules, EcalTestPulseAnalyzer.modules, EcalLaserAnalyzer2.modules, ClusterSummary.modules, EcalLaserAnalyzer.modules, SequenceVisitors.NodeVisitor.services, and Config.Process.services.

◆ leave()

def SequenceVisitors.NodeVisitor.leave (   self,
  visitee 
)

Definition at line 89 of file SequenceVisitors.py.

89  def leave(self,visitee):
90  pass
91 

Member Data Documentation

◆ esProducers

SequenceVisitors.NodeVisitor.esProducers

Definition at line 76 of file SequenceVisitors.py.

Referenced by SequenceVisitors.NodeVisitor.enter().

◆ esSources

SequenceVisitors.NodeVisitor.esSources

Definition at line 77 of file SequenceVisitors.py.

Referenced by SequenceVisitors.NodeVisitor.enter().

◆ modules

SequenceVisitors.NodeVisitor.modules

Definition at line 75 of file SequenceVisitors.py.

Referenced by SequenceVisitors.NodeVisitor.enter().

◆ services

SequenceVisitors.NodeVisitor.services
PVValHelper::add
void add(std::map< std::string, TH1 * > &h, TH1 *hist)
Definition: PVValidationHelpers.cc:12