CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
svgfig.Curve.Samples Class Reference

end Sample More...

Public Member Functions

def __init__ (self, left, right)
 
def __iter__ (self)
 
def __len__ (self)
 
def __repr__ (self)
 
def next (self)
 

Public Attributes

 current
 
 right
 

Detailed Description

end Sample

nested class Samples

Definition at line 1552 of file svgfig.py.

Constructor & Destructor Documentation

◆ __init__()

def svgfig.Curve.Samples.__init__ (   self,
  left,
  right 
)

Definition at line 1555 of file svgfig.py.

1555  def __init__(self, left, right): self.left, self.right = left, right
1556 
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

◆ __iter__()

def svgfig.Curve.Samples.__iter__ (   self)

Definition at line 1565 of file svgfig.py.

1565  def __iter__(self):
1566  self.current = self.left
1567  return self
1568 

◆ __len__()

def svgfig.Curve.Samples.__len__ (   self)

Definition at line 1557 of file svgfig.py.

References Random_struct.left, TkTrackingRegionsMargin< T >.left(), TkTrackingRegionsMargin< float >.left(), CandsGPU::BestCands< MaxCandsPerSeed, BlockSize >.left(), ShallowClustersProducer::NearDigis.left, JME::bimap< Binning, std::string >.left, JME::bimap< T, U >.left, BinaryOP.left, progressbar.Bar.left, ecaldqm::MESet::const_iterator.left(), and ecaldqm::MESet::iterator.left().

1557  def __len__(self):
1558  count = 0
1559  current = self.left
1560  while current != None:
1561  count += 1
1562  current = current.right
1563  return count
1564 

◆ __repr__()

def svgfig.Curve.Samples.__repr__ (   self)

Definition at line 1553 of file svgfig.py.

Referenced by data_sources.json_file.__str__(), and datamodel.Object.__str__().

1553  def __repr__(self): return "<Curve.Samples (%d samples)>" % len(self)
1554 

◆ next()

def svgfig.Curve.Samples.next (   self)

Definition at line 1569 of file svgfig.py.

References svgfig.Curve.Samples.current.

1569  def next(self):
1570  current = self.current
1571  if current == None: raise StopIteration
1572  self.current = self.current.right
1573  return current
1574 

Member Data Documentation

◆ current

svgfig.Curve.Samples.current

◆ right

svgfig.Curve.Samples.right

Definition at line 1555 of file svgfig.py.

Referenced by progressbar.Bar.update(), and progressbar.BouncingBar.update().