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

Constructor & Destructor Documentation

◆ __init__()

def SequenceVisitors.NodeVisitor.__init__ (   self)

Definition at line 103 of file SequenceVisitors.py.

103  def __init__(self):
104  self.modules = set()
105  self.esProducers = set()
106  self.esSources = set()
107  self.services = set()
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.NodeVisitor.enter (   self,
  visitee 
)

Definition at line 108 of file SequenceVisitors.py.

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

108  def enter(self,visitee):
109  if visitee.isLeaf():
110  if isinstance(visitee, _Module):
111  self.modules.add(visitee)
112  elif isinstance(visitee, ESProducer):
113  self.esProducers.add(visitee)
114  elif isinstance(visitee, ESSource):
115  self.esSources.add(visitee)
116  elif isinstance(visitee, Service):
117  self.services.add(visitee)
void add(std::map< std::string, TH1 *> &h, TH1 *hist)

◆ leave()

def SequenceVisitors.NodeVisitor.leave (   self,
  visitee 
)

Definition at line 118 of file SequenceVisitors.py.

118  def leave(self,visitee):
119  pass
120 

Member Data Documentation

◆ esProducers

SequenceVisitors.NodeVisitor.esProducers

Definition at line 105 of file SequenceVisitors.py.

Referenced by SequenceVisitors.NodeVisitor.enter().

◆ esSources

SequenceVisitors.NodeVisitor.esSources

Definition at line 106 of file SequenceVisitors.py.

Referenced by SequenceVisitors.NodeVisitor.enter().

◆ modules

SequenceVisitors.NodeVisitor.modules

Definition at line 104 of file SequenceVisitors.py.

Referenced by SequenceVisitors.NodeVisitor.enter().

◆ services

SequenceVisitors.NodeVisitor.services