#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, ColumnType::Int8 } |
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< int8_t > | int8s_ |
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 50 of file FlatTable.h.
|
inline |
Definition at line 51 of file FlatTable.h.
|
inline |
Definition at line 53 of file FlatTable.h.
|
inline |
Definition at line 113 of file FlatTable.h.
References columnIndex(), columns_, electrons_cff::docString, Exception, hgcalConcentratorProducer_cfi::mantissaBits, name(), size(), and contentValuesCheck::values.
|
inline |
Definition at line 125 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 |
|
inlineprivate |
|
inlineprivate |
Definition at line 180 of file FlatTable.h.
|
inlineprivate |
Definition at line 184 of file FlatTable.h.
|
inlinestaticprivate |
Definition at line 189 of file FlatTable.h.
References TableParser::table.
|
inline |
get a column by index (const)
Definition at line 73 of file FlatTable.h.
References size_.
Referenced by LumiOutputBranches::fillColumn(), and TableOutputBranches::fillColumn().
|
inline |
|
inline |
Definition at line 69 of file FlatTable.h.
References cuy::col, and columns_.
Referenced by LumiOutputBranches::defineBranchesFromFirstEvent(), and 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(), LumiOutputBranches::fillColumn(), TableOutputBranches::fillColumn(), and nanoaod::FlatTable::RowView::getAnyValue().
|
inline |
Definition at line 62 of file FlatTable.h.
References cuy::col, and columns_.
Referenced by LumiOutputBranches::defineBranchesFromFirstEvent(), and TableOutputBranches::defineBranchesFromFirstEvent().
|
inline |
Definition at line 65 of file FlatTable.h.
References cuy::col, and columns_.
Referenced by LumiOutputBranches::defineBranchesFromFirstEvent(), and TableOutputBranches::defineBranchesFromFirstEvent().
|
inline |
get a column value for singleton (const)
Definition at line 87 of file FlatTable.h.
References Exception, and singleton().
|
inlinestatic |
Definition at line 140 of file FlatTable.h.
References Bool, Double, Float, Int, Int8, UInt32, and UInt8.
|
inline |
Definition at line 68 of file FlatTable.h.
References doc_.
Referenced by LumiOutputBranches::fill(), TableOutputBranches::fill(), and setDoc().
|
inline |
Definition at line 59 of file FlatTable.h.
References extension_.
Referenced by LumiOutputBranches::fill(), and TableOutputBranches::fill().
double nanoaod::FlatTable::getAnyValue | ( | unsigned int | row, |
unsigned int | column | ||
) | const |
Definition at line 43 of file FlatTable.cc.
References Exception.
Referenced by nanoaod::FlatTable::RowView::getAnyValue().
|
inline |
Definition at line 60 of file FlatTable.h.
References name_.
Referenced by config.CFG::__str__(), addColumn(), addColumnValue(), columnIndex(), LumiOutputBranches::defineBranchesFromFirstEvent(), TableOutputBranches::defineBranchesFromFirstEvent(), validation.Sample::digest(), TableOutputBranches::fill(), LumiOutputBranches::fill(), and VIDSelectorBase.VIDSelectorBase::initialize().
|
inline |
Definition at line 55 of file FlatTable.h.
References columns_.
Referenced by LumiOutputBranches::defineBranchesFromFirstEvent(), and TableOutputBranches::defineBranchesFromFirstEvent().
|
inline |
|
inline |
Definition at line 110 of file FlatTable.h.
|
inline |
Definition at line 67 of file FlatTable.h.
|
inline |
Definition at line 58 of file FlatTable.h.
References singleton_.
Referenced by addColumnValue(), columValue(), LumiOutputBranches::fill(), and TableOutputBranches::fill().
|
inline |
Definition at line 57 of file FlatTable.h.
References size_.
Referenced by ntupleDataFormat._Collection::__iter__(), ntupleDataFormat._Collection::__len__(), addColumn(), LumiOutputBranches::fill(), TableOutputBranches::fill(), and TableOutputBranches::fillColumn().
|
private |
Definition at line 212 of file FlatTable.h.
Referenced by addColumn(), addColumnValue(), beginData(), columnDoc(), columnIndex(), columnName(), columnType(), and nColumns().
|
private |
Definition at line 210 of file FlatTable.h.
|
private |
Definition at line 218 of file FlatTable.h.
|
private |
Definition at line 211 of file FlatTable.h.
Referenced by extension().
|
private |
Definition at line 213 of file FlatTable.h.
|
private |
Definition at line 216 of file FlatTable.h.
|
private |
Definition at line 214 of file FlatTable.h.
|
private |
Definition at line 210 of file FlatTable.h.
Referenced by name().
|
private |
Definition at line 211 of file FlatTable.h.
Referenced by singleton().
|
private |
Definition at line 209 of file FlatTable.h.
Referenced by columnData(), nRows(), and size().
|
private |
Definition at line 217 of file FlatTable.h.
|
private |
Definition at line 215 of file FlatTable.h.