#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< const std::vector< T > > | columnData (unsigned int column) const |
get a column by index (const) More... | |
template<typename T > | |
boost::sub_range< std::vector< T > > | 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 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 >::const_iterator | beginData (unsigned int column) const |
template<typename T > | |
std::vector< T >::iterator | beginData (unsigned int column) |
template<typename T > | |
const std::vector< T > & | bigVector () const |
template<typename T > | |
std::vector< T > & | bigVector () |
template<> | |
const std::vector< float > & | bigVector () const |
template<> | |
const std::vector< int > & | bigVector () const |
template<> | |
std::vector< float > & | bigVector () |
template<> | |
std::vector< uint8_t > & | bigVector () |
template<> | |
const std::vector< uint8_t > & | bigVector () const |
template<> | |
std::vector< int > & | bigVector () |
template<> | |
void | check_type (FlatTable::ColumnType type) |
template<> | |
void | check_type (FlatTable::ColumnType type) |
template<> | |
void | check_type (FlatTable::ColumnType type) |
Static Private Member Functions | |
template<typename T > | |
static 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 27 of file FlatTable.h.
Enumerator | |
---|---|
FloatColumn | |
IntColumn | |
UInt8Column | |
BoolColumn |
Definition at line 29 of file FlatTable.h.
|
inline |
Definition at line 31 of file FlatTable.h.
|
inline |
Definition at line 32 of file FlatTable.h.
|
inline |
Definition at line 33 of file FlatTable.h.
|
inline |
Definition at line 89 of file FlatTable.h.
References nanoaod::flatTableHelper::MaybeMantissaReduce< T >::bulk(), Exception, and findQualityFiles::size.
|
inline |
Definition at line 101 of file FlatTable.h.
References Exception, electrons_cff::extension, nanoaod::flatTableHelper::MaybeMantissaReduce< T >::one(), and electrons_cff::singleton.
Referenced by LHETablesProducer::fillLHEObjectTable(), and NPUTablesProducer::fillNPUObjectTable().
void nanoaod::FlatTable::addExtension | ( | const FlatTable & | extension | ) |
Definition at line 10 of file FlatTable.cc.
References BoolColumn, columnData(), columnDoc(), columnName(), columnType(), extension(), FloatColumn, mps_fire::i, IntColumn, gen::n, name(), nColumns(), size(), and UInt8Column.
Referenced by NanoAODDQM::analyze().
|
inlineprivate |
Definition at line 130 of file FlatTable.h.
References begin, cuy::col, nanoaod::FlatTable::Column::firstIndex, and nanoaod::FlatTable::Column::type.
|
inlineprivate |
Definition at line 136 of file FlatTable.h.
References begin, cuy::col, nanoaod::FlatTable::Column::firstIndex, and nanoaod::FlatTable::Column::type.
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
Definition at line 172 of file FlatTable.h.
|
inlineprivate |
Definition at line 173 of file FlatTable.h.
|
inlineprivate |
Definition at line 174 of file FlatTable.h.
|
inlineprivate |
Definition at line 175 of file FlatTable.h.
|
inlineprivate |
Definition at line 176 of file FlatTable.h.
|
inlineprivate |
Definition at line 177 of file FlatTable.h.
|
inlinestaticprivate |
|
inlineprivate |
Definition at line 160 of file FlatTable.h.
References Exception, and FloatColumn.
|
inlineprivate |
Definition at line 163 of file FlatTable.h.
References Exception, and IntColumn.
|
inlineprivate |
Definition at line 166 of file FlatTable.h.
References BoolColumn, Exception, and UInt8Column.
|
inline |
get a column by index (const)
Definition at line 53 of file FlatTable.h.
References begin.
Referenced by addExtension(), TableOutputBranches::fillColumn(), and NanoAODDQM::Plot1D::vfill().
|
inline |
|
inline |
Definition at line 49 of file FlatTable.h.
References cuy::col.
Referenced by addExtension(), 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, and gen::n.
Referenced by NanoAODDQM::Plot1D::fill(), NanoAODDQM::Profile1D::fill(), and TableOutputBranches::fillColumn().
|
inline |
Definition at line 42 of file FlatTable.h.
References cuy::col, dataset::name, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by addExtension(), and TableOutputBranches::defineBranchesFromFirstEvent().
|
inline |
Definition at line 45 of file FlatTable.h.
References cuy::col.
Referenced by addExtension(), TableOutputBranches::defineBranchesFromFirstEvent(), NanoAODDQM::Plot1D::fill(), and getAnyValue().
|
inline |
get a column value for singleton (const)
Definition at line 67 of file FlatTable.h.
References Exception, and electrons_cff::singleton.
|
inlinestatic |
|
inline |
|
inline |
Definition at line 39 of file FlatTable.h.
Referenced by addExtension(), and TableOutputBranches::fill().
double nanoaod::FlatTable::getAnyValue | ( | unsigned int | row, |
unsigned int | column | ||
) | const |
Definition at line 28 of file FlatTable.cc.
References BoolColumn, columnType(), Exception, FloatColumn, IntColumn, nColumns(), and UInt8Column.
Referenced by NanoAODDQM::Profile1D::fill().
|
inline |
Definition at line 40 of file FlatTable.h.
Referenced by config.CFG::__str__(), addExtension(), TableOutputBranches::defineBranchesFromFirstEvent(), validation.Sample::digest(), TableOutputBranches::fill(), VIDSelectorBase.VIDSelectorBase::initialize(), and Vispa.Views.PropertyView.Property::valueChanged().
|
inline |
Definition at line 35 of file FlatTable.h.
Referenced by addExtension(), TableOutputBranches::defineBranchesFromFirstEvent(), and getAnyValue().
|
inline |
Definition at line 36 of file FlatTable.h.
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 37 of file FlatTable.h.
Referenced by ntupleDataFormat._Collection::__iter__(), ntupleDataFormat._Collection::__len__(), addExtension(), TableOutputBranches::fill(), NanoAODDQM::Profile1D::fill(), and NanoAODDQM::SelGroupConfig::fillSel().
|
private |
Definition at line 151 of file FlatTable.h.
Referenced by columnIndex().
|
private |
Definition at line 149 of file FlatTable.h.
|
private |
Definition at line 150 of file FlatTable.h.
|
private |
Definition at line 152 of file FlatTable.h.
|
private |
Definition at line 153 of file FlatTable.h.
|
private |
Definition at line 149 of file FlatTable.h.
|
private |
Definition at line 150 of file FlatTable.h.
|
private |
Definition at line 148 of file FlatTable.h.
|
private |
Definition at line 154 of file FlatTable.h.