CMS 3D CMS Logo

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

Public Member Functions

def __init__ (self, libname="", module="", submodule="", depends=None, areDependent=None, weight=1, srvqueue=None)
 
def __setattr__ (self, name, value)
 
def __str__ (self, topDown=False)
 

Public Attributes

 AreDependent
 
 BThread
 
 DependsOn
 
 LibName
 
 Module
 
 State
 
 SubModule
 

Detailed Description

Definition at line 144 of file psClasses.py.

Constructor & Destructor Documentation

◆ __init__()

def psClasses.BuildTreeNode.__init__ (   self,
  libname = "",
  module = "",
  submodule = "",
  depends = None,
  areDependent = None,
  weight = 1,
  srvqueue = None 
)

Definition at line 146 of file psClasses.py.

146  def __init__(self,libname="",module="",submodule="",depends=None,areDependent=None,weight=1,srvqueue=None):
147  if depends==None:
148  self.DependsOn = BuildTreeNodeList()
149  else:
150  self.DependsOn = depends
151  if areDependent==None:
152  self.AreDependent = BuildTreeNodeList()
153  else:
154  self.AreDependent = areDependent
155  self.Module = module
156  self.LibName = libname
157  self.SubModule = submodule
158  self.BThread = srvqueue is not None and BuildThread(self,srvqueue,weight) or None
159  self.State = STATE_CREATED
160 
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

◆ __setattr__()

def psClasses.BuildTreeNode.__setattr__ (   self,
  name,
  value 
)

Definition at line 161 of file psClasses.py.

Referenced by Config.Process._findPreferred(), Config.Process.extend(), and GenObject.GenObject.setValue().

161  def __setattr__(self,name,value):
162  if name is "DependsOn" or name is "AreDependent":
163  if not value.__class__ == BuildTreeNodeList:
164  raise TypeError("Expected BuildTreeNodeList")
165  elif name is "State" or name is "ModulesToDo":
166  if not value.__class__ == int:
167  raise TypeError("Expected int")
168  elif name is "Module" or name is "SubModule" or name is "LibName":
169  if not value.__class__ == str:
170  raise TypeError("Expected str")
171  object.__setattr__(self,name,value)
172 

◆ __str__()

def psClasses.BuildTreeNode.__str__ (   self,
  topDown = False 
)

Definition at line 173 of file psClasses.py.

References psClasses.BuildTreeNode.AreDependent, psClasses.BuildTreeNode.BThread, psClasses.BuildTreeNode.DependsOn, psClasses.BuildTreeNode.LibName, SiStripQualityHistory.Module, SiPixelQualityHistory.Module, psClasses.BuildTreeNode.Module, python.rootplot.root2matplotlib.replace(), psClasses.BuildTreeNode.State, and psClasses.BuildTreeNode.SubModule.

Referenced by edmStreamStallGrapher.Point.__repr__().

173  def __str__(self,topDown=False):
174  if not topDown:
175  return "'%s':'%s'\n...State = %d , Is it Done = %s \n...AreDependent : %s " % (self.LibName,self.SubModule or self.Module,self.State,self.BThread.IsComplete,self.AreDependent)
176  else:
177  if len(self.AreDependent)== 0:
178  return "'%s':'%s'\n---State = %d \n---DependsOn : %s " % (self.LibName,self.SubModule or self.Module,self.State,self.DependsOn.__str__(True,True).replace("---","------"))
179  else:
180  return self.AreDependent.__str__(topDown=True)
def replace(string, replacements)

Member Data Documentation

◆ AreDependent

psClasses.BuildTreeNode.AreDependent

Definition at line 152 of file psClasses.py.

Referenced by psClasses.BuildTreeNode.__str__().

◆ BThread

psClasses.BuildTreeNode.BThread

Definition at line 158 of file psClasses.py.

Referenced by psClasses.BuildTreeNode.__str__().

◆ DependsOn

psClasses.BuildTreeNode.DependsOn

Definition at line 148 of file psClasses.py.

Referenced by psClasses.BuildTreeNode.__str__().

◆ LibName

psClasses.BuildTreeNode.LibName

Definition at line 156 of file psClasses.py.

Referenced by psClasses.BuildTreeNode.__str__().

◆ Module

psClasses.BuildTreeNode.Module

Definition at line 155 of file psClasses.py.

Referenced by psClasses.BuildTreeNode.__str__().

◆ State

psClasses.BuildTreeNode.State

Definition at line 159 of file psClasses.py.

Referenced by psClasses.BuildTreeNode.__str__().

◆ SubModule

psClasses.BuildTreeNode.SubModule

Definition at line 157 of file psClasses.py.

Referenced by psClasses.BuildTreeNode.__str__().