CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
FWTableViewManager::TableHandle Class Reference

Public Member Functions

TableHandlecolumn (const char *formula, int precision, const char *name)
 
TableHandlecolumn (const char *label, int precision)
 
 TableHandle (const char *name, TableSpecs &specs)
 

Private Attributes

std::string m_name
 
TableSpecsm_specs
 

Detailed Description

Definition at line 104 of file FWTableViewManager.h.

Constructor & Destructor Documentation

◆ TableHandle()

FWTableViewManager::TableHandle::TableHandle ( const char *  name,
TableSpecs specs 
)
inline

Definition at line 109 of file FWTableViewManager.h.

109 : m_name(name), m_specs(specs) { m_specs[name].clear(); }

References m_specs, and Skims_PA_cff::name.

Member Function Documentation

◆ column() [1/2]

FWTableViewManager::TableHandle & FWTableViewManager::TableHandle::column ( const char *  name,
int  precision,
const char *  expression 
)

Define a column in the current table.

name to be used as header of the column.

precision specifying the number of significant digits in the fractional part.

expression to be used to retrieve the value from the object.

Definition at line 232 of file FWTableViewManager.cc.

234  {
235  TableEntry columnEntry;
236  columnEntry.name = name;
237  columnEntry.precision = precision;
238  columnEntry.expression = expression;
239 
240  m_specs[m_name].push_back(columnEntry);
241  return *this;
242 }

References FWTableViewManager::TableEntry::expression, m_name, m_specs, Skims_PA_cff::name, FWTableViewManager::TableEntry::name, boostedTaus_cff::precision, and FWTableViewManager::TableEntry::precision.

Referenced by FWTableViewManager::FWTableViewManager().

◆ column() [2/2]

TableHandle& FWTableViewManager::TableHandle::column ( const char *  label,
int  precision 
)
inline

Definition at line 107 of file FWTableViewManager.h.

107 { return column(label, precision, label); }

References column(), label, and boostedTaus_cff::precision.

Referenced by column().

Member Data Documentation

◆ m_name

std::string FWTableViewManager::TableHandle::m_name
private

Definition at line 112 of file FWTableViewManager.h.

Referenced by column().

◆ m_specs

TableSpecs& FWTableViewManager::TableHandle::m_specs
private

Definition at line 113 of file FWTableViewManager.h.

Referenced by column(), and TableHandle().

boostedTaus_cff.precision
precision
Definition: boostedTaus_cff.py:29
HistogramManager_cfi.specs
specs
Definition: HistogramManager_cfi.py:83
FWTableViewManager::TableHandle::column
TableHandle & column(const char *formula, int precision, const char *name)
Definition: FWTableViewManager.cc:232
FWTableViewManager::TableHandle::m_specs
TableSpecs & m_specs
Definition: FWTableViewManager.h:113
FWTableViewManager::TableHandle::m_name
std::string m_name
Definition: FWTableViewManager.h:112
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
label
const char * label
Definition: PFTauDecayModeTools.cc:11