#include <FlatTable.h>
Classes | |
struct | Column |
struct | dependent_false |
class | RowView |
Public Types | |
enum | ColumnType { ColumnType::UInt8, ColumnType::Int16, ColumnType::UInt16, ColumnType::Int32, ColumnType::UInt32, ColumnType::Bool, ColumnType::Float, 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) const |
get a column by index (const) More... | |
template<typename T > | |
auto | columnData (unsigned int column) |
get a column by index (non-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) const |
template<typename T > | |
auto | beginData (unsigned int column) |
template<typename T > | |
auto const & | bigVector () const |
template<typename T > | |
auto & | bigVector () |
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< int16_t > | int16s_ |
std::vector< int32_t > | int32s_ |
std::string | name_ |
bool | singleton_ |
unsigned int | size_ |
std::vector< uint16_t > | uint16s_ |
std::vector< uint32_t > | uint32s_ |
std::vector< uint8_t > | uint8s_ |
Definition at line 38 of file FlatTable.h.
|
strong |
Enumerator | |
---|---|
UInt8 | |
Int16 | |
UInt16 | |
Int32 | |
UInt32 | |
Bool | |
Float | |
Double |
Definition at line 41 of file FlatTable.h.
|
inline |
Definition at line 52 of file FlatTable.h.
|
inline |
Definition at line 53 of file FlatTable.h.
|
inline |
Definition at line 55 of file FlatTable.h.
|
inline |
Definition at line 115 of file FlatTable.h.
References columnIndex(), columns_, electrons_cff::docString, Exception, l1tHGCalConcentratorProducer_cfi::mantissaBits, name(), size(), and contentValuesCheck::values.
|
inline |
Definition at line 127 of file FlatTable.h.
References columnIndex(), columns_, electrons_cff::docString, Exception, l1tHGCalConcentratorProducer_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, and trackingPlots::other.
Referenced by NanoAODDQM::analyze().
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
Definition at line 184 of file FlatTable.h.
|
inlineprivate |
Definition at line 188 of file FlatTable.h.
|
inlinestaticprivate |
Definition at line 193 of file FlatTable.h.
References ALPAKA_ACCELERATOR_NAMESPACE::brokenline::constexpr(), and TableParser::table.
|
inline |
get a column by index (const)
Definition at line 75 of file FlatTable.h.
References size_.
Referenced by TableOutputBranches::fillColumn(), and LumiOutputBranches::fillColumn().
|
inline |
|
inline |
Definition at line 71 of file FlatTable.h.
References cuy::col, and columns_.
Referenced by TableOutputBranches::defineBranchesFromFirstEvent(), and LumiOutputBranches::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(), LumiOutputBranches::fillColumn(), and nanoaod::FlatTable::RowView::getAnyValue().
|
inline |
Definition at line 64 of file FlatTable.h.
References cuy::col, and columns_.
Referenced by TableOutputBranches::defineBranchesFromFirstEvent(), and LumiOutputBranches::defineBranchesFromFirstEvent().
|
inline |
Definition at line 67 of file FlatTable.h.
References cuy::col, and columns_.
Referenced by TableOutputBranches::defineBranchesFromFirstEvent(), and LumiOutputBranches::defineBranchesFromFirstEvent().
|
inline |
get a column value for singleton (const)
Definition at line 89 of file FlatTable.h.
References Exception, and singleton().
|
inlinestatic |
Definition at line 142 of file FlatTable.h.
References Bool, ALPAKA_ACCELERATOR_NAMESPACE::brokenline::constexpr(), Double, Float, Int16, Int32, UInt16, UInt32, and UInt8.
|
inline |
Definition at line 70 of file FlatTable.h.
References doc_.
Referenced by TableOutputBranches::fill(), LumiOutputBranches::fill(), and setDoc().
|
inline |
Definition at line 61 of file FlatTable.h.
References extension_.
Referenced by TableOutputBranches::fill(), and LumiOutputBranches::fill().
double nanoaod::FlatTable::getAnyValue | ( | unsigned int | row, |
unsigned int | column | ||
) | const |
Definition at line 46 of file FlatTable.cc.
References Exception.
Referenced by nanoaod::FlatTable::RowView::getAnyValue().
|
inline |
Definition at line 62 of file FlatTable.h.
References name_.
Referenced by config.CFG::__str__(), addColumn(), addColumnValue(), columnIndex(), TableOutputBranches::defineBranchesFromFirstEvent(), LumiOutputBranches::defineBranchesFromFirstEvent(), validation.Sample::digest(), TableOutputBranches::fill(), LumiOutputBranches::fill(), and VIDSelectorBase.VIDSelectorBase::initialize().
|
inline |
Definition at line 57 of file FlatTable.h.
References columns_.
Referenced by TableOutputBranches::defineBranchesFromFirstEvent(), and LumiOutputBranches::defineBranchesFromFirstEvent().
|
inline |
|
inline |
Definition at line 112 of file FlatTable.h.
|
inline |
Definition at line 69 of file FlatTable.h.
|
inline |
Definition at line 60 of file FlatTable.h.
References singleton_.
Referenced by addColumnValue(), columValue(), TableOutputBranches::fill(), and LumiOutputBranches::fill().
|
inline |
Definition at line 59 of file FlatTable.h.
References size_.
Referenced by ntupleDataFormat._Collection::__iter__(), ntupleDataFormat._Collection::__len__(), addColumn(), TableOutputBranches::fill(), LumiOutputBranches::fill(), and TableOutputBranches::fillColumn().
|
private |
Definition at line 218 of file FlatTable.h.
Referenced by addColumn(), addColumnValue(), beginData(), columnDoc(), columnIndex(), columnName(), columnType(), and nColumns().
|
private |
Definition at line 216 of file FlatTable.h.
|
private |
Definition at line 225 of file FlatTable.h.
|
private |
Definition at line 217 of file FlatTable.h.
Referenced by extension().
|
private |
Definition at line 224 of file FlatTable.h.
|
private |
Definition at line 220 of file FlatTable.h.
|
private |
Definition at line 222 of file FlatTable.h.
|
private |
Definition at line 216 of file FlatTable.h.
Referenced by name().
|
private |
Definition at line 217 of file FlatTable.h.
Referenced by singleton().
|
private |
Definition at line 215 of file FlatTable.h.
Referenced by columnData(), nRows(), and size().
|
private |
Definition at line 221 of file FlatTable.h.
|
private |
Definition at line 223 of file FlatTable.h.
|
private |
Definition at line 219 of file FlatTable.h.