#include <FlatTable.h>
Classes | |
struct | Column |
struct | dependent_false |
class | RowView |
Public Types | |
enum | ColumnType { ColumnType::Float, ColumnType::Int, ColumnType::UInt8, ColumnType::Bool } |
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_ |
bool | extension_ |
std::vector< float > | floats_ |
std::vector< int > | ints_ |
std::string | name_ |
bool | singleton_ |
unsigned int | size_ |
std::vector< uint8_t > | uint8s_ |
Definition at line 38 of file FlatTable.h.
|
strong |
Enumerator | |
---|---|
Float | |
Int | |
UInt8 | |
Bool |
Definition at line 40 of file FlatTable.h.
|
inline |
Definition at line 47 of file FlatTable.h.
|
inline |
Definition at line 48 of file FlatTable.h.
|
inline |
Definition at line 50 of file FlatTable.h.
|
inline |
Definition at line 110 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 122 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 166 of file FlatTable.h.
References columns_.
|
inlineprivate |
Definition at line 162 of file FlatTable.h.
References columns_.
|
inlineprivate |
Definition at line 175 of file FlatTable.h.
|
inlineprivate |
Definition at line 171 of file FlatTable.h.
|
inlinestaticprivate |
Definition at line 180 of file FlatTable.h.
References TableParser::table.
|
inline |
|
inline |
get a column by index (const)
Definition at line 70 of file FlatTable.h.
References size_.
Referenced by TableOutputBranches::fillColumn().
|
inline |
Definition at line 66 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 59 of file FlatTable.h.
References cuy::col, and columns_.
Referenced by TableOutputBranches::defineBranchesFromFirstEvent().
|
inline |
Definition at line 62 of file FlatTable.h.
References cuy::col, and columns_.
Referenced by TableOutputBranches::defineBranchesFromFirstEvent().
|
inline |
get a column value for singleton (const)
Definition at line 84 of file FlatTable.h.
References Exception, and singleton().
|
inlinestatic |
Definition at line 137 of file FlatTable.h.
|
inline |
Definition at line 65 of file FlatTable.h.
References doc_.
Referenced by TableOutputBranches::fill(), and setDoc().
|
inline |
Definition at line 56 of file FlatTable.h.
References extension_.
Referenced by TableOutputBranches::fill().
double nanoaod::FlatTable::getAnyValue | ( | unsigned int | row, |
unsigned int | column | ||
) | const |
Definition at line 34 of file FlatTable.cc.
References Exception.
Referenced by nanoaod::FlatTable::RowView::getAnyValue().
|
inline |
Definition at line 57 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 52 of file FlatTable.h.
References columns_.
Referenced by TableOutputBranches::defineBranchesFromFirstEvent().
|
inline |
|
inline |
Definition at line 107 of file FlatTable.h.
|
inline |
|
inline |
Definition at line 55 of file FlatTable.h.
References singleton_.
Referenced by addColumnValue(), columValue(), and TableOutputBranches::fill().
|
inline |
Definition at line 54 of file FlatTable.h.
References size_.
Referenced by ntupleDataFormat._Collection::__iter__(), ntupleDataFormat._Collection::__len__(), addColumn(), and TableOutputBranches::fill().
|
private |
Definition at line 197 of file FlatTable.h.
Referenced by addColumn(), addColumnValue(), beginData(), columnDoc(), columnIndex(), columnName(), columnType(), and nColumns().
|
private |
Definition at line 195 of file FlatTable.h.
|
private |
Definition at line 196 of file FlatTable.h.
Referenced by extension().
|
private |
Definition at line 198 of file FlatTable.h.
|
private |
Definition at line 199 of file FlatTable.h.
|
private |
Definition at line 195 of file FlatTable.h.
Referenced by name().
|
private |
Definition at line 196 of file FlatTable.h.
Referenced by singleton().
|
private |
Definition at line 194 of file FlatTable.h.
Referenced by columnData(), nRows(), and size().
|
private |
Definition at line 200 of file FlatTable.h.