CMS 3D CMS Logo

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

Public Member Functions

def __add__ (self, other)
 
def __init__ (self, integer)
 
def __str__ (self)
 

Public Attributes

 integer
 

Detailed Description

Definition at line 5 of file rltinfo.py.

Constructor & Destructor Documentation

◆ __init__()

def rltinfo.MyInteger.__init__ (   self,
  integer 
)

Definition at line 6 of file rltinfo.py.

6  def __init__(self, integer ):
7  self.integer = integer
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

◆ __add__()

def rltinfo.MyInteger.__add__ (   self,
  other 
)

Definition at line 8 of file rltinfo.py.

References rltinfo.MyInteger.integer.

Referenced by counter.Counter.__iadd__(), and average.Average.__iadd__().

8  def __add__(self, other):
9  if hasattr(other, 'integer'):
10  self.integer += other.integer
11  else:
12  self.integer += other
13  return self

◆ __str__()

def rltinfo.MyInteger.__str__ (   self)

Definition at line 14 of file rltinfo.py.

References rltinfo.MyInteger.integer, and str.

14  def __str__(self):
15  return str(self.integer)
16 
17 
#define str(s)

Member Data Documentation

◆ integer

rltinfo.MyInteger.integer

Definition at line 7 of file rltinfo.py.

Referenced by rltinfo.MyInteger.__add__(), and rltinfo.MyInteger.__str__().