CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
geometry.Structure Class Reference

Public Member Functions

def __init__ (self, name, subdetid, discriminator=[], ndiscriminator=[], detids=[])
 
def contains_detid (self, detid)
 
def get_children (self)
 
def get_name (self)
 

Public Attributes

 children
 
 detids
 
 discriminator
 
 name
 
 ndiscriminator
 
 subdetid
 

Detailed Description

A object represents a physical strucutre

Definition at line 116 of file geometry.py.

Constructor & Destructor Documentation

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

Definition at line 120 of file geometry.py.

120  def __init__(self, name, subdetid, discriminator=[], ndiscriminator=[], detids=[]):
121  # name of the structure
122  self.name = name
123  # fields to identify the DetIds which belong to the structure
124  self.subdetid = subdetid
125  # fields which allow to discriminate the parts of the structure
126  self.discriminator = discriminator
127  # number per discriminator
128  self.ndiscriminator = ndiscriminator
129  # all DetIds which belong to this structure
130  self.detids = detids
131  # fieldss of all parts of the structure
132  self.children = []
133 
def __init__(self, name, subdetid, discriminator=[], ndiscriminator=[], detids=[])
Definition: geometry.py:120

Member Function Documentation

def geometry.Structure.contains_detid (   self,
  detid 
)

Definition at line 140 of file geometry.py.

References geometry.Structure.detids.

140  def contains_detid(self, detid):
141  if detid in self.detids:
142  return True
143  return False
144 
def contains_detid(self, detid)
Definition: geometry.py:140
def geometry.Structure.get_children (   self)

Definition at line 137 of file geometry.py.

References geometry.Structure.children.

137  def get_children(self):
138  return self.children
139 
def get_children(self)
Definition: geometry.py:137
def geometry.Structure.get_name (   self)

Member Data Documentation

geometry.Structure.children

Definition at line 132 of file geometry.py.

Referenced by data_sources.node.__str__(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._scheduleRecursive(), Vispa.Share.BasicDataAccessor.BasicDataAccessor.allChildren(), Vispa.Views.LineDecayView.LineDecayView.autolayout(), Vispa.Views.BoxDecayView.BoxDecayContainer.autolayoutAlgorithm(), Vispa.Gui.WidgetContainer.WidgetContainer.autolayoutChildren(), Vispa.Gui.WidgetContainer.WidgetContainer.autosize(), data_sources.node.child(), Vispa.Views.LineDecayView.LineDecayContainer.childContainer(), Vispa.Views.WidgetView.WidgetView.clear(), Vispa.Views.LineDecayView.LineDecayContainer.createDecayObjectsFromPxlObject(), Vispa.Gui.ConnectableWidgetOwner.ConnectableWidgetOwner.deleteSelectedConnections(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner.deselectAllWidgets(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.foundIn(), geometry.Structure.get_children(), Vispa.Gui.ConnectableWidgetOwner.ConnectableWidgetOwner.getWidgetByName(), Vispa.Gui.ConnectableWidgetOwner.ConnectableWidgetOwner.hideMenuWidgets(), data_sources.node.is_leaf(), data_sources.node.left_child(), Vispa.Views.LineDecayView.LineDecayView.lineDecayContainer(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner.mouseReleaseEvent(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.nonSequenceChildren(), Vispa.Gui.ConnectableWidgetOwner.ConnectableWidgetOwner.portConnection(), Vispa.Gui.ConnectableWidgetOwner.ConnectableWidgetOwner.propagateEventUnderConnectionWidget(), data_sources.node.right_child(), Vispa.Views.LineDecayView.LineDecayContainer.scheduleUpdateVisibleList(), Vispa.Views.LineDecayView.LineDecayView.scrollBarValueChanged(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner.selectedWidgets(), Vispa.Views.LineDecayView.LineDecayContainer.setAcceptDrops(), Vispa.Gui.VispaWidget.VispaWidget.setDragable(), Vispa.Views.LineDecayView.LineDecayView.setEditable(), Vispa.Gui.ZoomableWidget.ZoomableWidget.setZoom(), Vispa.Gui.WidgetContainer.WidgetContainer.toggleCollapse(), Vispa.Gui.ConnectableWidgetOwner.ConnectableWidgetOwner.updateConnections(), and Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner.widgetDragged().

geometry.Structure.detids

Definition at line 130 of file geometry.py.

Referenced by geometry.Structure.contains_detid().

geometry.Structure.discriminator

Definition at line 126 of file geometry.py.

geometry.Structure.name

Definition at line 122 of file geometry.py.

Referenced by ElectronMVAID.ElectronMVAID.__call__(), dirstructure.Directory.__create_pie_image(), DisplayManager.DisplayManager.__del__(), dqm_interfaces.DirID.__eq__(), BeautifulSoup.Tag.__eq__(), dirstructure.Directory.__get_full_path(), dirstructure.Comparison.__get_img_name(), dataset.Dataset.__getDataType(), dataset.Dataset.__getFileInfoList(), dirstructure.Comparison.__make_image(), core.autovars.NTupleVariable.__repr__(), core.autovars.NTupleObjectType.__repr__(), core.autovars.NTupleObject.__repr__(), core.autovars.NTupleCollection.__repr__(), dirstructure.Directory.__repr__(), dqm_interfaces.DirID.__repr__(), dirstructure.Comparison.__repr__(), config.Service.__setattr__(), config.CFG.__str__(), counter.Counter.__str__(), average.Average.__str__(), BeautifulSoup.Tag.__str__(), BeautifulSoup.SoupStrainer.__str__(), core.autovars.NTupleObjectType.addSubObjects(), core.autovars.NTupleObjectType.addVariables(), core.autovars.NTupleObjectType.allVars(), dirstructure.Directory.calcStats(), genericValidation.GenericValidationData.cfgName(), crabFunctions.CrabTask.crabConfig(), crabFunctions.CrabTask.crabFolder(), genericValidation.GenericValidationData.createCrabCfg(), geometryComparison.GeometryComparison.createScript(), genericValidation.GenericValidationData.createScript(), validation.Sample.digest(), python.rootplot.utilities.Hist.divide(), python.rootplot.utilities.Hist.divide_wilson(), DisplayManager.DisplayManager.Draw(), TreeCrawler.Package.dump(), core.autovars.NTupleVariable.fillBranch(), core.autovars.NTupleObject.fillBranches(), core.autovars.NTupleCollection.fillBranchesScalar(), core.autovars.NTupleCollection.fillBranchesVector(), core.autovars.NTupleCollection.get_cpp_declaration(), core.autovars.NTupleCollection.get_cpp_wrapper_class(), geometry.Structure.get_name(), core.autovars.NTupleCollection.get_py_wrapper_class(), utils.StatisticalTest.get_status(), production_tasks.Task.getname(), dataset.CMSDataset.getPrimaryDatasetEntries(), dataset.PrivateDataset.getPrimaryDatasetEntries(), primaryVertexValidation.PrimaryVertexValidation.getRepMap(), zMuMuValidation.ZMuMuValidation.getRepMap(), alignment.Alignment.getRepMap(), genericValidation.GenericValidationData.getRepMap(), crabFunctions.CrabTask.handleNoState(), VIDSelectorBase.VIDSelectorBase.initialize(), personalPlayback.Applet.log(), core.autovars.NTupleVariable.makeBranch(), core.autovars.NTupleObject.makeBranches(), core.autovars.NTupleCollection.makeBranchesScalar(), core.autovars.NTupleCollection.makeBranchesVector(), plotscripts.SawTeethFunction.pp(), dirstructure.Directory.print_report(), dataset.BaseDataset.printInfo(), dataset.Dataset.printInfo(), crabFunctions.CrabTask.resubmit_failed(), production_tasks.MonitorJobs.run(), validateAlignments.ParallelMergeJob.runJob(), BeautifulSoup.SoupStrainer.searchTag(), python.rootplot.utilities.Hist.TGraph(), python.rootplot.utilities.Hist.TH1F(), crabFunctions.CrabTask.update(), crabFunctions.CrabTask.updateJobStats(), Vispa.Views.PropertyView.Property.valueChanged(), counter.Counter.write(), and average.Average.write().

geometry.Structure.ndiscriminator

Definition at line 128 of file geometry.py.

geometry.Structure.subdetid

Definition at line 124 of file geometry.py.