#include <FlatTable.h>
Classes | |
struct | Column |
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) |
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) | |
const std::string & | name () const |
unsigned int | nColumns () const |
unsigned int | nRows () 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 73 of file FlatTable.h.
References nanoaod::flatTableHelper::MaybeMantissaReduce< T >::bulk(), Exception, and findQualityFiles::size.
|
inline |
Definition at line 85 of file FlatTable.h.
References Exception, nanoaod::flatTableHelper::MaybeMantissaReduce< T >::one(), and electrons_cff::singleton.
Referenced by LHETablesProducer::fillLHEObjectTable().
|
inlineprivate |
Definition at line 112 of file FlatTable.h.
References begin, cuy::col, nanoaod::FlatTable::Column::firstIndex, and nanoaod::FlatTable::Column::type.
|
inlineprivate |
Definition at line 118 of file FlatTable.h.
References begin, cuy::col, nanoaod::FlatTable::Column::firstIndex, and nanoaod::FlatTable::Column::type.
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
Definition at line 154 of file FlatTable.h.
|
inlineprivate |
Definition at line 155 of file FlatTable.h.
|
inlineprivate |
Definition at line 159 of file FlatTable.h.
|
inlineprivate |
Definition at line 158 of file FlatTable.h.
|
inlineprivate |
Definition at line 156 of file FlatTable.h.
|
inlineprivate |
Definition at line 157 of file FlatTable.h.
|
inlinestaticprivate |
|
inlineprivate |
Definition at line 142 of file FlatTable.h.
References Exception, and FloatColumn.
|
inlineprivate |
Definition at line 145 of file FlatTable.h.
References Exception, and IntColumn.
|
inlineprivate |
Definition at line 148 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 TableOutputBranches::fillColumn().
|
inline |
|
inline |
Definition at line 49 of file FlatTable.h.
References cuy::col.
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, and gen::n.
Referenced by TableOutputBranches::fillColumn().
|
inline |
Definition at line 42 of file FlatTable.h.
References cuy::col, dataset::name, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by TableOutputBranches::defineBranchesFromFirstEvent().
|
inline |
Definition at line 45 of file FlatTable.h.
References cuy::col.
Referenced by TableOutputBranches::defineBranchesFromFirstEvent().
|
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 |
|
inline |
Definition at line 40 of file FlatTable.h.
Referenced by config.CFG::__str__(), 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 TableOutputBranches::defineBranchesFromFirstEvent().
|
inline |
Definition at line 36 of file FlatTable.h.
|
inline |
|
inline |
|
inline |
Definition at line 37 of file FlatTable.h.
Referenced by ntupleDataFormat._Collection::__iter__(), ntupleDataFormat._Collection::__len__(), and TableOutputBranches::fill().
|
private |
Definition at line 133 of file FlatTable.h.
Referenced by columnIndex().
|
private |
Definition at line 131 of file FlatTable.h.
|
private |
Definition at line 132 of file FlatTable.h.
|
private |
Definition at line 134 of file FlatTable.h.
|
private |
Definition at line 135 of file FlatTable.h.
|
private |
Definition at line 131 of file FlatTable.h.
|
private |
Definition at line 132 of file FlatTable.h.
|
private |
Definition at line 130 of file FlatTable.h.
|
private |
Definition at line 136 of file FlatTable.h.