#include <FlatTable.h>
Classes | |
struct | Column |
class | RowView |
Public Types | |
enum | ColumnType { FloatColumn, IntColumn, UInt8Column, BoolColumn } |
Public Member Functions | |
template<typename T , typename C = std::vector<T>> | |
void | addColumn (const std::string &name, const C &values, const std::string &docString, ColumnType type=defaultColumnType< T >(), int mantissaBits=-1) |
template<typename T , typename C > | |
void | addColumnValue (const std::string &name, const C &value, const std::string &docString, ColumnType type=defaultColumnType< T >(), int mantissaBits=-1) |
void | addExtension (const FlatTable &extension) |
template<typename T > | |
boost::sub_range< std::vector< T > > | columnData (unsigned int column) |
get a column by index (non-const) More... | |
template<typename T > | |
boost::sub_range< const std::vector< T > > | 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 T & | 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 > | |
std::vector< T >::iterator | beginData (unsigned int column) |
template<typename T > | |
std::vector< T >::const_iterator | beginData (unsigned int column) const |
template<typename T > | |
std::vector< T > & | bigVector () |
template<> | |
std::vector< int > & | bigVector () |
template<> | |
std::vector< float > & | bigVector () |
template<> | |
std::vector< uint8_t > & | bigVector () |
template<typename T > | |
const std::vector< T > & | bigVector () const |
template<> | |
const std::vector< float > & | bigVector () const |
template<> | |
const std::vector< uint8_t > & | bigVector () const |
template<> | |
const std::vector< int > & | bigVector () const |
Static Private Member Functions | |
template<typename T > | |
static void | check_type (FlatTable::ColumnType type) |
template<> | |
void | check_type (FlatTable::ColumnType type) |
template<> | |
void | check_type (FlatTable::ColumnType type) |
template<> | |
void | check_type (FlatTable::ColumnType type) |
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 36 of file FlatTable.h.
|
inline |
Definition at line 45 of file FlatTable.h.
|
inline |
Definition at line 46 of file FlatTable.h.
|
inline |
Definition at line 48 of file FlatTable.h.
|
inline |
Definition at line 108 of file FlatTable.h.
References nanoaod::flatTableHelper::MaybeMantissaReduce< T >::bulk(), columnIndex(), columns_, electrons_cff::docString, Exception, FloatColumn, hgcalConcentratorProducer_cfi::mantissaBits, name(), size(), and contentValuesCheck::values.
|
inline |
Definition at line 126 of file FlatTable.h.
References columnIndex(), columns_, electrons_cff::docString, Exception, FloatColumn, hgcalConcentratorProducer_cfi::mantissaBits, name(), and singleton().
void nanoaod::FlatTable::addExtension | ( | const FlatTable & | extension | ) |
Definition at line 11 of file FlatTable.cc.
References edmStreamStallGrapher::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 181 of file FlatTable.h.
References Exception.
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
Definition at line 177 of file FlatTable.h.
References Exception.
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlinestaticprivate |
Definition at line 194 of file FlatTable.h.
References Exception.
|
inlinestaticprivate |
Definition at line 200 of file FlatTable.h.
References Exception, and FloatColumn.
|
inlinestaticprivate |
Definition at line 205 of file FlatTable.h.
|
inlinestaticprivate |
|
inline |
|
inline |
get a column by index (const)
Definition at line 68 of file FlatTable.h.
Referenced by TableOutputBranches::fillColumn().
|
inline |
Definition at line 64 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 57 of file FlatTable.h.
References cuy::col, and columns_.
Referenced by TableOutputBranches::defineBranchesFromFirstEvent().
|
inline |
Definition at line 60 of file FlatTable.h.
References cuy::col, and columns_.
Referenced by TableOutputBranches::defineBranchesFromFirstEvent().
|
inline |
get a column value for singleton (const)
Definition at line 82 of file FlatTable.h.
References Exception, and singleton().
|
inlinestatic |
Definition at line 148 of file FlatTable.h.
References Exception.
|
inline |
Definition at line 63 of file FlatTable.h.
References doc_.
Referenced by TableOutputBranches::fill(), and setDoc().
|
inline |
Definition at line 54 of file FlatTable.h.
References extension_.
Referenced by TableOutputBranches::fill().
double nanoaod::FlatTable::getAnyValue | ( | unsigned int | row, |
unsigned int | column | ||
) | const |
Definition at line 30 of file FlatTable.cc.
References Exception.
Referenced by nanoaod::FlatTable::RowView::getAnyValue().
|
inline |
Definition at line 55 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 50 of file FlatTable.h.
References columns_.
Referenced by TableOutputBranches::defineBranchesFromFirstEvent().
|
inline |
|
inline |
Definition at line 105 of file FlatTable.h.
|
inline |
|
inline |
Definition at line 53 of file FlatTable.h.
References singleton_.
Referenced by addColumnValue(), columValue(), and TableOutputBranches::fill().
|
inline |
Definition at line 52 of file FlatTable.h.
References size_.
Referenced by ntupleDataFormat._Collection::__iter__(), ntupleDataFormat._Collection::__len__(), addColumn(), and TableOutputBranches::fill().
|
private |
Definition at line 188 of file FlatTable.h.
Referenced by addColumn(), addColumnValue(), beginData(), columnDoc(), columnIndex(), columnName(), columnType(), and nColumns().
|
private |
Definition at line 186 of file FlatTable.h.
|
private |
Definition at line 187 of file FlatTable.h.
Referenced by extension().
|
private |
Definition at line 189 of file FlatTable.h.
Referenced by bigVector().
|
private |
Definition at line 190 of file FlatTable.h.
Referenced by bigVector().
|
private |
Definition at line 186 of file FlatTable.h.
Referenced by name().
|
private |
Definition at line 187 of file FlatTable.h.
Referenced by singleton().
|
private |
Definition at line 185 of file FlatTable.h.
Referenced by columnData(), nRows(), and size().
|
private |
Definition at line 191 of file FlatTable.h.
Referenced by bigVector().