|
LDMX Software
|
Public Member Functions | |
| HomogenousTableCondition (const std::string &name, const std::vector< std::string > &columns) | |
| void | clear () |
| Clear the contents. | |
| void | add (unsigned int id, const std::vector< T > &values) |
| Add an entry to the table. | |
| T | get (unsigned int id, unsigned int col) const |
| Get an entry by DetectorId and number. | |
| std::pair< unsigned int, std::vector< T > > | getRow (unsigned int irow) const |
| Get a row by number Used primarily for persisting the SimpleTableCondition. | |
| T | getByName (unsigned int id, const std::string &colname) const |
| Get a column by DetectorId and name Throws an exception when. | |
| virtual std::ostream & | streamRow (std::ostream &s, int irow) const |
| Streams a given row of this table. | |
Public Member Functions inherited from conditions::BaseTableCondition | |
| 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. | |
Public Member Functions inherited from framework::ConditionsObject | |
| ConditionsObject (const std::string &name) | |
| Class constructor. | |
| virtual | ~ConditionsObject () |
| Destructor. | |
| std::string | getName () const |
| Get the name of this object. | |
Private Attributes | |
| std::vector< T > | values_ |
Additional Inherited Members | |
Protected Member Functions inherited from conditions::BaseTableCondition | |
| std::size_t | findKey (unsigned int id) const |
| std::size_t | findKeyInsert (unsigned int id) const |
Protected Attributes inherited from conditions::BaseTableCondition | |
| std::vector< std::string > | columns_ |
| unsigned int | column_count_ |
| std::vector< uint32_t > | keys_ |
| unsigned int | id_mask_ |
Definition at line 110 of file SimpleTableCondition.h.
|
inline |
Definition at line 112 of file SimpleTableCondition.h.
|
inlinevirtual |
Definition at line 116 of file SimpleTableCondition.h.
|
inline |
Add an entry to the table.
Definition at line 127 of file SimpleTableCondition.h.
References framework::ConditionsObject::getName(), and conditions::BaseTableCondition::getRowCount().
Referenced by conditions::SimpleCSVTableProvider::getCondition().
|
inline |
Clear the contents.
Definition at line 121 of file SimpleTableCondition.h.
|
inline |
Get an entry by DetectorId and number.
Throws an exception when id is unavailble
Definition at line 154 of file SimpleTableCondition.h.
References conditions::BaseTableCondition::getRowCount().
Referenced by ecal::EcalReconConditions::adcGain(), hcal::HcalReconConditions::adcGain(), ecal::EcalReconConditions::adcPedestal(), hcal::HcalReconConditions::adcPedestal(), ldmx::HgcrocTriggerConditions::adcPedestal(), ldmx::HgcrocTriggerConditions::adcThreshold(), conditions::HomogenousTableCondition< T >::getByName(), ldmx::HgcrocEmulator::getCondition(), hcal::HcalReconConditions::toaCalib(), hcal::HcalReconConditions::totCalib(), ecal::EcalReconConditions::totGain(), ldmx::HgcrocTriggerConditions::totGain(), ecal::EcalReconConditions::totPedestal(), ldmx::HgcrocTriggerConditions::totPedestal(), and ldmx::HgcrocTriggerConditions::totThreshold().
|
inline |
Get a column by DetectorId and name Throws an exception when.
Definition at line 184 of file SimpleTableCondition.h.
References conditions::HomogenousTableCondition< T >::get(), and conditions::BaseTableCondition::getColumnNumber().
|
inline |
Get a row by number Used primarily for persisting the SimpleTableCondition.
Definition at line 168 of file SimpleTableCondition.h.
References conditions::BaseTableCondition::getRowCount().
|
inlinevirtual |
Streams a given row of this table.
Reimplemented from conditions::BaseTableCondition.
Definition at line 191 of file SimpleTableCondition.h.
References conditions::BaseTableCondition::getRowCount().
|
private |
Definition at line 203 of file SimpleTableCondition.h.