Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Member Functions | Public Attributes | List of all members
python.TableConstructorBase.Column Class Reference
Collaboration diagram for python.TableConstructorBase.Column:

Public Member Functions

def __init__ (self, header="Unknown", headerDesc="Unknown", needNormalizing=False)
 
def addValue (self, value, index=-1)
 
def updateValue (self, value, index=-1)
 
def getValue (self, index)
 

Public Attributes

 header
 
 headerDesc
 
 content
 
 needNormalizing
 

Detailed Description

@brief Class representing a single csv column

Used in TableConstructor to store header description and values of csv column

Definition at line 18 of file TableConstructorBase.py.

Constructor & Destructor Documentation

◆ __init__()

def python.TableConstructorBase.Column.__init__ (   self,
  header = "Unknown",
  headerDesc = "Unknown",
  needNormalizing = False 
)
Column header

Definition at line 24 of file TableConstructorBase.py.

24  def __init__(self, header = "Unknown", headerDesc = "Unknown", needNormalizing = False):
25  '''Column header'''
26  self.header = header
27 
28  '''Column description'''
29  self.headerDesc = headerDesc
30 
31  '''The list storing column content'''
32  self.content = []
33 
34  '''Flag if column needs normalization'''
35  self.needNormalizing = needNormalizing
36 
37 

Member Function Documentation

◆ addValue()

def python.TableConstructorBase.Column.addValue (   self,
  value,
  index = -1 
)
@brief Add value to the column 

Definition at line 38 of file TableConstructorBase.py.

38  def addValue(self, value, index=-1):
39  ''' @brief Add value to the column '''
40  if index < 0 or index >= len(self.content):
41  self.content.append(value)
42  else:
43  self.content[index] += value
44 

◆ getValue()

def python.TableConstructorBase.Column.getValue (   self,
  index 
)
@brief Get value from column with given index

Definition at line 52 of file TableConstructorBase.py.

52  def getValue(self, index):
53  ''' @brief Get value from column with given index'''
54  if index >= len(self.content):
55  log.error("Index out of range")
56  return None
57  else:
58  return self.content[index]
59 
60 

◆ updateValue()

def python.TableConstructorBase.Column.updateValue (   self,
  value,
  index = -1 
)
@brief Add value to the column 

Definition at line 45 of file TableConstructorBase.py.

45  def updateValue(self, value, index=-1):
46  ''' @brief Add value to the column '''
47  if index < 0 or index >= len(self.content):
48  self.content.append(value)
49  else:
50  self.content[index] = value
51 

Member Data Documentation

◆ content

python.TableConstructorBase.Column.content

Definition at line 32 of file TableConstructorBase.py.

◆ header

python.TableConstructorBase.Column.header

Definition at line 26 of file TableConstructorBase.py.

◆ headerDesc

python.TableConstructorBase.Column.headerDesc

Definition at line 29 of file TableConstructorBase.py.

◆ needNormalizing

python.TableConstructorBase.Column.needNormalizing

Definition at line 35 of file TableConstructorBase.py.


The documentation for this class was generated from the following file:
dumpHVPathFromNtuple.append
bool append
Definition: dumpHVPathFromNtuple.py:91
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18