![]() |
ATLAS Offline Software
|
DetCondCFloat is a class to hold sets of Identifiers and arrays of floats for detector element specific information Richard Hawkings, started 29/1/04 formerly DetCondFloat but renamed to DetCondCFloat to allow DetCondFloat to be a parallel virtual class with no CLASS_DEF Latter is inherited by specialised TRT conditions data classes. More...
#include <DetCondCFloat.h>
Public Member Functions | |
DetCondCFloat () | |
DetCondCFloat (const int size, const std::string &tag) | |
virtual | ~DetCondCFloat () |
int | size () const |
const std::string & | tag () const |
int | add (const Identifier &ident, const float *f) |
void | share (const Identifier &ident, const int index) |
const float * | find (const Identifier &ident) const |
int | findindex (const Identifier &ident) const |
float | get (const Identifier &ident, int k) const |
void | print () const |
void | print2 () const |
Private Types | |
typedef std::less< Identifier > | lessp |
typedef std::map< Identifier, int, lessp > | BufferMap |
Private Attributes | |
int | m_size |
std::string | m_tag |
BufferMap | m_bufmap |
std::vector< float > | m_buf |
Friends | |
class | DetCondCFloatCnv_p1 |
DetCondCFloat is a class to hold sets of Identifiers and arrays of floats for detector element specific information Richard Hawkings, started 29/1/04 formerly DetCondFloat but renamed to DetCondCFloat to allow DetCondFloat to be a parallel virtual class with no CLASS_DEF Latter is inherited by specialised TRT conditions data classes.
Based on AlignableTransform but with vectors of floats of arbitrary size (at initialisation time). These objects are designed to reside in the detector store and be kept in the conditionsDB.
Methods are provided to create a new object with a float vector of a specified size, add an Identifier and associated array of floats, and to associate a new Identifier with some already stored set of floats This sharing mechanism can be used to tranparently associate one set of constants to a large number of identifiers (i.e. detector elements) and then increase the granularity later
Access to the data is provided by the find method, which returns a pointer to the floats associated with a particular identifier (or a null pointer if the identifier is not known. The index within the internal storage of a particular identifier's data can also be retrieved, for use in a subsequent call to the share method (this index is also returned by the add method). print and print2 methods print the data with varying amounts of detail
Definition at line 45 of file DetCondCFloat.h.
|
private |
Definition at line 68 of file DetCondCFloat.h.
|
private |
Definition at line 67 of file DetCondCFloat.h.
|
inline |
Definition at line 78 of file DetCondCFloat.h.
|
inlinevirtual |
Definition at line 83 of file DetCondCFloat.h.
int DetCondCFloat::add | ( | const Identifier & | ident, |
const float * | f | ||
) |
const float * DetCondCFloat::find | ( | const Identifier & | ident | ) | const |
int DetCondCFloat::findindex | ( | const Identifier & | ident | ) | const |
Definition at line 40 of file DetCondCFloat.cxx.
float DetCondCFloat::get | ( | const Identifier & | ident, |
int | k | ||
) | const |
void DetCondCFloat::print | ( | ) | const |
void DetCondCFloat::print2 | ( | ) | const |
Definition at line 61 of file DetCondCFloat.cxx.
void DetCondCFloat::share | ( | const Identifier & | ident, |
const int | index | ||
) |
Definition at line 24 of file DetCondCFloat.cxx.
|
inline |
Definition at line 85 of file DetCondCFloat.h.
|
inline |
Definition at line 87 of file DetCondCFloat.h.
|
friend |
Definition at line 63 of file DetCondCFloat.h.
|
private |
Definition at line 70 of file DetCondCFloat.h.
|
private |
Definition at line 69 of file DetCondCFloat.h.
|
private |
Definition at line 65 of file DetCondCFloat.h.
|
private |
Definition at line 66 of file DetCondCFloat.h.