CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
edmTracerCompactLogViewer.Counter Class Reference
Inheritance diagram for edmTracerCompactLogViewer.Counter:

Public Member Functions

def __init__ (self)
 
def finish (self, index)
 
def start (self)
 

Public Attributes

 activeSlots
 

Detailed Description

Definition at line 848 of file edmTracerCompactLogViewer.py.

Constructor & Destructor Documentation

◆ __init__()

def edmTracerCompactLogViewer.Counter.__init__ (   self)

Definition at line 849 of file edmTracerCompactLogViewer.py.

849  def __init__(self):
850  self.activeSlots = [False]
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

◆ finish()

def edmTracerCompactLogViewer.Counter.finish (   self,
  index 
)

Definition at line 859 of file edmTracerCompactLogViewer.py.

References edmTracerCompactLogViewer.Counter.activeSlots.

Referenced by progressbar.ProgressBar.__next__().

859  def finish(self, index):
860  self.activeSlots[index] = False
861 

◆ start()

def edmTracerCompactLogViewer.Counter.start (   self)

Definition at line 851 of file edmTracerCompactLogViewer.py.

References edmTracerCompactLogViewer.Counter.activeSlots, mps_setup.append, and submitPVResolutionJobs.count.

Referenced by progressbar.ProgressBar.__next__().

851  def start(self):
852  if 0 != self.activeSlots.count(False):
853  index = self.activeSlots.index(False)
854  self.activeSlots[index]=True
855  return index
856  index = len(self.activeSlots)
857  self.activeSlots.append(True)
858  return index

Member Data Documentation

◆ activeSlots

edmTracerCompactLogViewer.Counter.activeSlots