#include <FlatTable.h>
Classes | |
struct | Column |
struct | dependent_false |
class | RowView |
Public Types | |
enum | ColumnType { ColumnType::Float, ColumnType::Int, ColumnType::UInt8, ColumnType::Bool, ColumnType::UInt32, ColumnType::Double } |
Public Member Functions | |
template<typename T , typename C > | |
void | addColumn (const std::string &name, const C &values, const std::string &docString, int mantissaBits=-1) |
template<typename T , typename C > | |
void | addColumnValue (const std::string &name, const C &value, const std::string &docString, int mantissaBits=-1) |
void | addExtension (const FlatTable &extension) |
template<typename T > | |
auto | columnData (unsigned int column) |
get a column by index (non-const) More... | |
template<typename T > | |
auto | columnData (unsigned int column) const |
get a column by index (const) More... | |
const std::string & | columnDoc (unsigned int col) const |
int | columnIndex (const std::string &name) const |
const std::string & | columnName (unsigned int col) const |
ColumnType | columnType (unsigned int col) const |
template<typename T > | |
const auto & | columValue (unsigned int column) const |
get a column value for singleton (const) More... | |
const std::string & | doc () const |
bool | extension () const |
FlatTable () | |
FlatTable (unsigned int size, const std::string &name, bool singleton, bool extension=false) | |
double | getAnyValue (unsigned int row, unsigned int column) const |
const std::string & | name () const |
unsigned int | nColumns () const |
unsigned int | nRows () const |
RowView | row (unsigned int row) const |
void | setDoc (const std::string &doc) |
bool | singleton () const |
unsigned int | size () const |
~FlatTable () | |
Static Public Member Functions | |
template<typename T > | |
static ColumnType | defaultColumnType () |
Private Member Functions | |
template<typename T > | |
auto | beginData (unsigned int column) |
template<typename T > | |
auto | beginData (unsigned int column) const |
template<typename T > | |
auto & | bigVector () |
template<typename T > | |
const auto & | bigVector () const |
Static Private Member Functions | |
template<typename T , class This > | |
static auto & | bigVectorImpl (This &table) |
Private Attributes | |
std::vector< Column > | columns_ |
std::string | doc_ |
std::vector< double > | doubles_ |
bool | extension_ |
std::vector< float > | floats_ |
std::vector< int > | ints_ |
std::string | name_ |
bool | singleton_ |
unsigned int | size_ |
std::vector< uint32_t > | uint32s_ |
std::vector< uint8_t > | uint8s_ |
Definition at line 38 of file FlatTable.h.
|
strong |
|
inline |
Definition at line 49 of file FlatTable.h.
|
inline |
Definition at line 50 of file FlatTable.h.
|
inline |
Definition at line 52 of file FlatTable.h.
|
inline |
Definition at line 112 of file FlatTable.h.
References nanoaod::flatTableHelper::MaybeMantissaReduce< T >::bulk(), columnIndex(), columns_, electrons_cff::docString, Exception, hgcalConcentratorProducer_cfi::mantissaBits, name(), size(), and contentValuesCheck::values.
|
inline |
Definition at line 124 of file FlatTable.h.
References columnIndex(), columns_, electrons_cff::docString, Exception, hgcalConcentratorProducer_cfi::mantissaBits, name(), SiPixelPI::one, and singleton().
void nanoaod::FlatTable::addExtension | ( | const FlatTable & | extension | ) |
Definition at line 11 of file FlatTable.cc.
References Exception, runGCPTkAlMap::extension, mps_fire::i, dqmiodumpmetadata::n, Skims_PA_cff::name, trackingPlots::other, and findQualityFiles::size.
Referenced by NanoAODDQM::analyze().
|
inlineprivate |
Definition at line 172 of file FlatTable.h.
References columns_.
|
inlineprivate |
Definition at line 168 of file FlatTable.h.
References columns_.
|
inlineprivate |
Definition at line 181 of file FlatTable.h.
|
inlineprivate |
Definition at line 177 of file FlatTable.h.
|
inlinestaticprivate |
Definition at line 186 of file FlatTable.h.
References TableParser::table.
|
inline |
|
inline |
get a column by index (const)
Definition at line 72 of file FlatTable.h.
References size_.
Referenced by TableOutputBranches::fillColumn().
|
inline |
Definition at line 68 of file FlatTable.h.
References cuy::col, and columns_.
Referenced by TableOutputBranches::defineBranchesFromFirstEvent().
int nanoaod::FlatTable::columnIndex | ( | const std::string & | name | ) | const |
Definition at line 3 of file FlatTable.cc.
References columns_, mps_fire::i, dqmiodumpmetadata::n, and name().
Referenced by addColumn(), addColumnValue(), TableOutputBranches::fillColumn(), and nanoaod::FlatTable::RowView::getAnyValue().
|
inline |
Definition at line 61 of file FlatTable.h.
References cuy::col, and columns_.
Referenced by TableOutputBranches::defineBranchesFromFirstEvent().
|
inline |
Definition at line 64 of file FlatTable.h.
References cuy::col, and columns_.
Referenced by TableOutputBranches::defineBranchesFromFirstEvent().
|
inline |
get a column value for singleton (const)
Definition at line 86 of file FlatTable.h.
References Exception, and singleton().
|
inlinestatic |
Definition at line 139 of file FlatTable.h.
|
inline |
Definition at line 67 of file FlatTable.h.
References doc_.
Referenced by TableOutputBranches::fill(), and setDoc().
|
inline |
Definition at line 58 of file FlatTable.h.
References extension_.
Referenced by TableOutputBranches::fill().
double nanoaod::FlatTable::getAnyValue | ( | unsigned int | row, |
unsigned int | column | ||
) | const |
Definition at line 40 of file FlatTable.cc.
References Exception.
Referenced by nanoaod::FlatTable::RowView::getAnyValue().
|
inline |
Definition at line 59 of file FlatTable.h.
References name_.
Referenced by config.CFG::__str__(), addColumn(), addColumnValue(), columnIndex(), TableOutputBranches::defineBranchesFromFirstEvent(), validation.Sample::digest(), TableOutputBranches::fill(), and VIDSelectorBase.VIDSelectorBase::initialize().
|
inline |
Definition at line 54 of file FlatTable.h.
References columns_.
Referenced by TableOutputBranches::defineBranchesFromFirstEvent().
|
inline |
|
inline |
Definition at line 109 of file FlatTable.h.
|
inline |
|
inline |
Definition at line 57 of file FlatTable.h.
References singleton_.
Referenced by addColumnValue(), columValue(), and TableOutputBranches::fill().
|
inline |
Definition at line 56 of file FlatTable.h.
References size_.
Referenced by ntupleDataFormat._Collection::__iter__(), ntupleDataFormat._Collection::__len__(), addColumn(), and TableOutputBranches::fill().
|
private |
Definition at line 207 of file FlatTable.h.
Referenced by addColumn(), addColumnValue(), beginData(), columnDoc(), columnIndex(), columnName(), columnType(), and nColumns().
|
private |
Definition at line 205 of file FlatTable.h.
|
private |
Definition at line 212 of file FlatTable.h.
|
private |
Definition at line 206 of file FlatTable.h.
Referenced by extension().
|
private |
Definition at line 208 of file FlatTable.h.
|
private |
Definition at line 209 of file FlatTable.h.
|
private |
Definition at line 205 of file FlatTable.h.
Referenced by name().
|
private |
Definition at line 206 of file FlatTable.h.
Referenced by singleton().
|
private |
Definition at line 204 of file FlatTable.h.
Referenced by columnData(), nRows(), and size().
|
private |
Definition at line 211 of file FlatTable.h.
|
private |
Definition at line 210 of file FlatTable.h.