CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 117 of file geometry.py.

Constructor & Destructor Documentation

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

Definition at line 121 of file geometry.py.

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

Member Function Documentation

def geometry.Structure.contains_detid (   self,
  detid 
)

Definition at line 141 of file geometry.py.

References geometry.Structure.detids.

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

Definition at line 138 of file geometry.py.

References geometry.Structure.children.

139  def get_children(self):
140  return self.children
def geometry.Structure.get_name (   self)

Definition at line 135 of file geometry.py.

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

136  def get_name(self):
137  return self.name

Member Data Documentation

geometry.Structure.children

Definition at line 133 of file geometry.py.

Referenced by data_sources.node.__str__(), data_sources.node.child(), geometry.Structure.get_children(), data_sources.node.is_leaf(), data_sources.node.left_child(), and data_sources.node.right_child().

geometry.Structure.detids

Definition at line 131 of file geometry.py.

Referenced by geometry.Structure.contains_detid().

geometry.Structure.discriminator

Definition at line 127 of file geometry.py.

geometry.Structure.name

Definition at line 123 of file geometry.py.

Referenced by ElectronMVAID.ElectronMVAID.__call__(), FWLite.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__(), FWLite.WorkingPoints._reformat_cut_definitions(), 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(), primaryVertexResolution.PrimaryVertexResolution.getRepMap(), 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(), BeautifulSoup.SoupStrainer.searchTag(), python.rootplot.utilities.Hist.TGraph(), python.rootplot.utilities.Hist.TH1F(), crabFunctions.CrabTask.update(), crabFunctions.CrabTask.updateJobStats(), counter.Counter.write(), and average.Average.write().

geometry.Structure.ndiscriminator

Definition at line 129 of file geometry.py.

geometry.Structure.subdetid

Definition at line 125 of file geometry.py.