![]() |
ATLAS Offline Software
|
Public Member Functions | |
| __init__ (self, tableObj, underflowThreshold, overflowThreshold) | |
| getWarningMsgs (self) | |
| getHistogram (self, name) | |
| cacheHistograms (self, dirName, prefix) | |
| getXWeightedIntegral (self, histName, isLog=True) | |
| saveToFile (self, fileName) | |
| normalizeColumns (self, denominator) | |
| fillTable (self, prefix='') | |
| defineColumns (self) | |
| fillColumns (self, histName='') | |
| postProcessing (self) | |
Public Attributes | |
| tableObj = tableObj | |
| columns = OrderedDict() | |
| dict | histograms = {} |
| list | expectedHistograms = [] |
| underflowThreshold = underflowThreshold | |
| overflowThreshold = overflowThreshold | |
| list | warningMsg = [] |
@brief Class representing a single table
Base class trepresenting table. It defines basic behavior common for
all the tables like caching histograms or saving table to file.
Definition at line 61 of file TableConstructorBase.py.
| python.TableConstructorBase.TableConstructorBase.__init__ | ( | self, | |
| tableObj, | |||
| underflowThreshold, | |||
| overflowThreshold ) |
ROOT table directory object, storing subdirs with histograms
Definition at line 68 of file TableConstructorBase.py.
| python.TableConstructorBase.TableConstructorBase.cacheHistograms | ( | self, | |
| dirName, | |||
| prefix ) |
@brief Cache histograms in map for given directory Save histograms in the map by their short name as a key. If the histogram with a given name is not found function logs an error. @param[in] dirName Name of subdirectory to look for histograms @param[in] prefix Prefix of the histogram name
Definition at line 104 of file TableConstructorBase.py.
| python.TableConstructorBase.TableConstructorBase.defineColumns | ( | self | ) |
@brief Define the columns for the table Columns should be objects of class Column, added to the map self.columns.
Definition at line 226 of file TableConstructorBase.py.
| python.TableConstructorBase.TableConstructorBase.fillColumns | ( | self, | |
| histName = '' ) |
@brief Fill the columns with values
Definition at line 234 of file TableConstructorBase.py.
| python.TableConstructorBase.TableConstructorBase.fillTable | ( | self, | |
| prefix = '' ) |
@brief Fill the table based on ROOT directory's content.
Definition at line 213 of file TableConstructorBase.py.
| python.TableConstructorBase.TableConstructorBase.getHistogram | ( | self, | |
| name ) |
@brief Return cached histogram with given name
Definition at line 96 of file TableConstructorBase.py.
| python.TableConstructorBase.TableConstructorBase.getWarningMsgs | ( | self | ) |
@brief Raturn warning messages concerning histogram under/over flows
Definition at line 91 of file TableConstructorBase.py.
| python.TableConstructorBase.TableConstructorBase.getXWeightedIntegral | ( | self, | |
| histName, | |||
| isLog = True ) |
@brief Get "total" value by integrating over a histogram, weighting every entry by its x-axis mean. @param[in] histName Histogram name @param[in] isLog If histogram is log x-axis, modifies how x-axis mean is computed for each bin. @return Total value of the histogram.
Definition at line 146 of file TableConstructorBase.py.
| python.TableConstructorBase.TableConstructorBase.normalizeColumns | ( | self, | |
| denominator ) |
@brief Perform normalization on marked columns @param[in] denominator Value to normalize choosen columns
Definition at line 199 of file TableConstructorBase.py.
| python.TableConstructorBase.TableConstructorBase.postProcessing | ( | self | ) |
@brief Additional operations Normalization in performed separatly!
Definition at line 239 of file TableConstructorBase.py.
| python.TableConstructorBase.TableConstructorBase.saveToFile | ( | self, | |
| fileName ) |
@brief Function to save table content to csv file with specified fileName @param[in] fileName Name of the file to save the table
Definition at line 169 of file TableConstructorBase.py.
| python.TableConstructorBase.TableConstructorBase.columns = OrderedDict() |
Definition at line 73 of file TableConstructorBase.py.
| list python.TableConstructorBase.TableConstructorBase.expectedHistograms = [] |
Definition at line 79 of file TableConstructorBase.py.
| dict python.TableConstructorBase.TableConstructorBase.histograms = {} |
Definition at line 76 of file TableConstructorBase.py.
| python.TableConstructorBase.TableConstructorBase.overflowThreshold = overflowThreshold |
Definition at line 85 of file TableConstructorBase.py.
| python.TableConstructorBase.TableConstructorBase.tableObj = tableObj |
Definition at line 70 of file TableConstructorBase.py.
| python.TableConstructorBase.TableConstructorBase.underflowThreshold = underflowThreshold |
Definition at line 82 of file TableConstructorBase.py.
| list python.TableConstructorBase.TableConstructorBase.warningMsg = [] |
Definition at line 88 of file TableConstructorBase.py.