CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes
geometry.Structure Class Reference

Public Member Functions

def __init__
 
def contains_detid
 
def get_children
 
def get_name
 

Public Attributes

 children
 
 detids
 
 discriminator
 
 name
 
 ndiscriminator
 
 subdetid
 

Detailed Description

A object represents a physical strucutre

Definition at line 131 of file geometry.py.

Constructor & Destructor Documentation

def geometry.Structure.__init__ (   self,
  name,
  subdetid,
  discriminator = [],
  ndiscriminator = [],
  detids = [] 
)

Definition at line 135 of file geometry.py.

136  def __init__(self, name, subdetid, discriminator=[], ndiscriminator=[], detids=[]):
137  # name of the structure
138  self.name = name
139  # fields to identify the DetIds which belong to the structure
140  self.subdetid = subdetid
141  # fields which allow to discriminate the parts of the structure
142  self.discriminator = discriminator
143  # number per discriminator
144  self.ndiscriminator = ndiscriminator
145  # all DetIds which belong to this structure
146  self.detids = detids
147  # fieldss of all parts of the structure
148  self.children = []

Member Function Documentation

def geometry.Structure.contains_detid (   self,
  detid 
)

Definition at line 155 of file geometry.py.

References geometry.Structure.detids.

156  def contains_detid(self, detid):
157  if detid in self.detids:
158  return True
159  return False
def geometry.Structure.get_children (   self)

Definition at line 152 of file geometry.py.

References geometry.Structure.children.

153  def get_children(self):
154  return self.children
def geometry.Structure.get_name (   self)

Definition at line 149 of file geometry.py.

References entry.name, TrackerSectorStruct.name, classes.MonitorData.name, classes.OutputData.name, and geometry.Structure.name.

150  def get_name(self):
151  return self.name

Member Data Documentation

geometry.Structure.children

Definition at line 147 of file geometry.py.

Referenced by Vispa.Share.BasicDataAccessor.BasicDataAccessor.allChildren(), Vispa.Views.WidgetView.WidgetView.clear(), Vispa.Gui.ConnectableWidgetOwner.ConnectableWidgetOwner.deleteSelectedConnections(), geometry.Structure.get_children(), Vispa.Gui.ConnectableWidgetOwner.ConnectableWidgetOwner.getWidgetByName(), Vispa.Gui.ConnectableWidgetOwner.ConnectableWidgetOwner.hideMenuWidgets(), Vispa.Gui.ConnectableWidgetOwner.ConnectableWidgetOwner.portConnection(), Vispa.Gui.ConnectableWidgetOwner.ConnectableWidgetOwner.propagateEventUnderConnectionWidget(), Vispa.Gui.ZoomableWidget.ZoomableWidget.setZoom(), and Vispa.Gui.ConnectableWidgetOwner.ConnectableWidgetOwner.updateConnections().

geometry.Structure.detids

Definition at line 145 of file geometry.py.

Referenced by geometry.Structure.contains_detid().

geometry.Structure.discriminator

Definition at line 141 of file geometry.py.

geometry.Structure.name

Definition at line 137 of file geometry.py.

Referenced by ElectronMVAID.ElectronMVAID.__call__(), counter.Counter.__str__(), average.Average.__str__(), trackSplittingValidation.TrackSplittingValidation.createConfiguration(), monteCarloValidation.MonteCarloValidation.createConfiguration(), primaryVertexValidation.PrimaryVertexValidation.createConfiguration(), zMuMuValidation.ZMuMuValidation.createConfiguration(), geometry.Structure.get_name(), primaryVertexValidation.PrimaryVertexValidation.getRepMap(), zMuMuValidation.ZMuMuValidation.getRepMap(), VIDSelectorBase.VIDSelectorBase.initialize(), counter.Counter.write(), and average.Average.write().

geometry.Structure.ndiscriminator

Definition at line 143 of file geometry.py.

geometry.Structure.subdetid

Definition at line 139 of file geometry.py.