LDMX Software
Public Member Functions | List of all members
conditions::DoubleTableCondition Class Reference

Public Member Functions

 DoubleTableCondition (const std::string &name, const std::vector< std::string > &columns)
 
- Public Member Functions inherited from conditions::HomogenousTableCondition< double >
 HomogenousTableCondition (const std::string &name, const std::vector< std::string > &columns)
 
void clear ()
 Clear the contents.
 
void add (unsigned int id, const std::vector< double > &values)
 Add an entry to the table.
 
double get (unsigned int id, unsigned int col) const
 Get an entry by DetectorId and number.
 
std::pair< unsigned int, std::vector< double > > getRow (unsigned int irow) const
 Get a row by number Used primarily for persisting the SimpleTableCondition.
 
double 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.
 

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 columnCount_
 
std::vector< uint32_t > keys_
 
unsigned int idMask_
 

Detailed Description

Definition at line 209 of file SimpleTableCondition.h.

Constructor & Destructor Documentation

◆ DoubleTableCondition()

conditions::DoubleTableCondition::DoubleTableCondition ( const std::string &  name,
const std::vector< std::string > &  columns 
)
inline

Definition at line 211 of file SimpleTableCondition.h.

213 : HomogenousTableCondition<double>(name, columns) {}

◆ ~DoubleTableCondition()

virtual conditions::DoubleTableCondition::~DoubleTableCondition ( )
inlinevirtual

Definition at line 215 of file SimpleTableCondition.h.

215{}

The documentation for this class was generated from the following file: