CMS 3D CMS Logo

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

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 121 of file geometry.py.

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

◆ contains_detid()

def geometry.Structure.contains_detid (   self,
  detid 
)

Definition at line 141 of file geometry.py.

References geometry.Structure.detids.

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

◆ get_children()

def geometry.Structure.get_children (   self)

Definition at line 138 of file geometry.py.

References geometry.Structure.children.

138  def get_children(self):
139  return self.children
140 
def get_children(ppid)

◆ get_name()

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.

135  def get_name(self):
136  return self.name
137 
const char * get_name(const TEveElement *element)
Definition: eve_macros.cc:13

Member Data Documentation

◆ children

◆ detids

geometry.Structure.detids

Definition at line 131 of file geometry.py.

Referenced by geometry.Structure.contains_detid().

◆ discriminator

geometry.Structure.discriminator

Definition at line 127 of file geometry.py.

◆ name

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__(), 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__(), FWLite.WorkingPoints._reformat_cut_definitions(), core.autovars.NTupleObjectType.addSubObjects(), core.autovars.NTupleObjectType.addVariables(), core.autovars.NTupleObjectType.allVars(), dataset.CMSDataset.buildListOfFiles(), dataset.LocalDataset.buildListOfFiles(), dataset.CMSDataset.buildListOfFilesDBS(), 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(), crabFunctions.CrabTask.isData(), 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(), python.rootplot.utilities.Hist.TGraph(), python.rootplot.utilities.Hist.TH1F(), crabFunctions.CrabTask.update(), crabFunctions.CrabTask.updateJobStats(), counter.Counter.write(), and average.Average.write().

◆ ndiscriminator

geometry.Structure.ndiscriminator

Definition at line 129 of file geometry.py.

◆ subdetid

geometry.Structure.subdetid

Definition at line 125 of file geometry.py.