LDMX Software
|
Public Member Functions | |
BaseTableCondition (const std::string &name, const std::vector< std::string > &columns) | |
Create table with given set of columns. | |
unsigned int | getColumnNumber (const std::string &colname) const |
Get a the column number for the given column name. | |
unsigned int | getColumnCount () const |
Get the number of columns. | |
const std::string & | getColumnName (unsigned int icol) const |
Get the name of the given column. | |
unsigned int | getRowId (unsigned int irow) const |
Get the id for the given row. | |
const std::vector< std::string > & | getColumnNames () const |
Get the names of the columns. | |
std::size_t | getRowCount () const |
Get the number of rows. | |
void | setIdMask (unsigned int mask) |
Set an AND mask to be applied to the id. | |
unsigned int | getIdMask () const |
Get the AND mask to be applied to the id. | |
virtual std::ostream & | streamRow (std::ostream &s, int irow) const |
Streams a given row of this table. | |
![]() | |
ConditionsObject (const std::string &name) | |
Class constructor. | |
virtual | ~ConditionsObject () |
Destructor. | |
std::string | getName () const |
Get the name of this object. | |
Protected Member Functions | |
std::size_t | findKey (unsigned int id) const |
std::size_t | findKeyInsert (unsigned int id) const |
Protected Attributes | |
std::vector< std::string > | columns_ |
unsigned int | columnCount_ |
std::vector< uint32_t > | keys_ |
unsigned int | idMask_ |
Definition at line 22 of file SimpleTableCondition.h.
|
inline |
Create table with given set of columns.
Definition at line 25 of file SimpleTableCondition.h.
|
protected |
Definition at line 23 of file BaseTableCondition.cxx.
|
protected |
Definition at line 33 of file BaseTableCondition.cxx.
|
inline |
Get the number of columns.
Definition at line 45 of file SimpleTableCondition.h.
Referenced by ecal::EcalReconConditions::EcalReconConditions(), and ldmx::HgcrocTriggerConditions::HgcrocTriggerConditions().
|
inline |
Get the name of the given column.
Definition at line 50 of file SimpleTableCondition.h.
References framework::ConditionsObject::getName().
|
inline |
Get the names of the columns.
Definition at line 72 of file SimpleTableCondition.h.
Referenced by ecal::EcalReconConditions::EcalReconConditions(), and ldmx::HgcrocTriggerConditions::HgcrocTriggerConditions().
|
inline |
Get a the column number for the given column name.
Definition at line 36 of file SimpleTableCondition.h.
Referenced by conditions::HomogenousTableCondition< T >::getByName(), and ldmx::HgcrocEmulator::getCondition().
|
inline |
Get the AND mask to be applied to the id.
Typically used to "flatten" a table in some manner.
Definition at line 89 of file SimpleTableCondition.h.
|
inline |
Get the number of rows.
Definition at line 77 of file SimpleTableCondition.h.
Referenced by conditions::HomogenousTableCondition< T >::add(), conditions::HomogenousTableCondition< T >::get(), conditions::HomogenousTableCondition< T >::getRow(), getRowId(), and conditions::HomogenousTableCondition< T >::streamRow().
|
inline |
Get the id for the given row.
Definition at line 61 of file SimpleTableCondition.h.
References getRowCount().
|
inline |
Set an AND mask to be applied to the id.
Typically used to "flatten" a table in some manner.
Definition at line 83 of file SimpleTableCondition.h.
Referenced by conditions::SimpleCSVTableProvider::getCondition().
|
inlinevirtual |
Streams a given row of this table.
Reimplemented in conditions::HomogenousTableCondition< T >, conditions::HomogenousTableCondition< double >, and conditions::HomogenousTableCondition< int >.
Definition at line 94 of file SimpleTableCondition.h.
|
protected |
Definition at line 104 of file SimpleTableCondition.h.
|
protected |
Definition at line 103 of file SimpleTableCondition.h.
|
protected |
Definition at line 106 of file SimpleTableCondition.h.
|
protected |
Definition at line 105 of file SimpleTableCondition.h.