CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions
Vispa.Plugins.EdmBrowser.EdmDataAccessor Namespace Reference

Classes

class  BranchDummy
 
class  EdmDataAccessor
 

Functions

def all
 
def eq
 
def ne
 

Function Documentation

def Vispa.Plugins.EdmBrowser.EdmDataAccessor.all (   container)

Definition at line 18 of file EdmDataAccessor.py.

Referenced by Vispa.Plugins.EdmBrowser.EdmDataAccessor.EdmDataAccessor.getDaughterObjects().

18 
19 def all(container):
20  # loop over ROOT::TTree and similar
21  if hasattr(container,'GetEntries'):
22  try:
23  entries = container.GetEntries()
24  for entry in xrange(entries):
25  yield entry
26  except:
27  raise cmserror("Looping of %s failed" %container)
28  # loop over std::vectors and similar
29  elif hasattr(container, 'size'):
30  # convert std::map to std::vector<std::pair>
31  if hasattr(container, 'ids'):
32  container = container.ids()
33  try:
34  entries = container.size()
35  for entry in xrange(entries):
36  yield container[entry]
37  except:
38  pass
39  # loop over c buffer
40  #elif hasattr(container,'begin') and hasattr(container,'end'):
41  # begin=container.begin()
42  # end=container.end()
43  # while (begin!=end):
44  # yield begin.__deref__()
45  # begin.__preinc__()
def Vispa.Plugins.EdmBrowser.EdmDataAccessor.eq (   self,
  other 
)

Definition at line 13 of file EdmDataAccessor.py.

Referenced by DEutils< T >.DEDigi(), KinematicConstrainedVertexFitter.fit(), KinematicConstrainedVertexFitterT< nTrk, nConstraint >.fit(), HelixBarrelCylinderCrossing.HelixBarrelCylinderCrossing(), DTBtiChip.keepTrigPatt(), StraightLineBarrelCylinderCrossing.pathLength(), StraightLineCylinderCrossing.pathLength(), DTBtiTrigData.print(), HcalTB04Analysis.qieAnalysis(), DTTracoTrigData.setEqIn(), DTTracoTrigData.setEqOut(), and HcalTB04Analysis.xtalAnalysis().

13 
14 def eq(self,other):
return id(self)==id(other)
def Vispa.Plugins.EdmBrowser.EdmDataAccessor.ne (   self,
  other 
)

Definition at line 15 of file EdmDataAccessor.py.

Referenced by L1TGCT.analyze(), L1RCTElectronIsolationCard.calcElectronCandidates(), FWOverlapTableManager.cellRenderer(), DumpGctDigis.doEM(), TwoVBGenFilter.filter(), LQGenFilter.filter(), MultipleKinematicConstraint.numberOfEquations(), SoftPFElectronTagInfoProducer.produce(), SiPixelDQMRocLevelAnalyzer.RocSumOneModule(), L1RCTRegion.setNEEt(), L1RCTRegion.setNEHE_FG(), L1RCT.shareNeighbors(), and cscdqm::Utility.SignificanceLevelHigh().

15 
16 def ne(self,other):
17  return id(self)!=id(other)
# PhysicsTools.PythonAnalysis.cmstools