![]() |
ATLAS Offline Software
|
Class to store comments in BLOB without any data. More...
#include <TileCalibDrawerCmt.h>
Public Member Functions | |
| virtual | ~TileCalibDrawerCmt () |
| Dtor. | |
| virtual uint16_t | getType () const |
| Returns TileCalibType::CMT. | |
| void | init (const std::string &author, const std::string &comment="", uint64_t timeStamp=0) |
| Initializing a TileCalibDrawerCmt. | |
| virtual void | dump () const |
| Print the header to std::cout. | |
| virtual void | dump (std::ostream &stm) const |
| Print the header. | |
| virtual void | clone (const TileCalibDrawerBase &other) |
| Initialzes Blob with content of other Blob. | |
| long | getBlobSize () const |
| Returns the BLOB size in units of bytes. | |
| long | getBlobSize32 () const |
| Returns the BLOB size in units of uint32_t. | |
| uint16_t | getObjType () const |
| Returns the BLOB object type. | |
| uint16_t | getObjVersion () const |
| Returns the BLOB object version. | |
| uint32_t | getObjSizeUint32 () const |
| Returns the size of a data object in units of uint32_t. | |
| uint32_t | getObjSizeByte () const |
| Returns the size of a data object in units of bytes. | |
| uint32_t | getNObjs () const |
| Returns the number of data objects stored int the BLOB. | |
| uint16_t | getNChans () const |
| Returns the number of channels stored in the BLOB. | |
| uint16_t | getNGains () const |
| Returns the number of gains stored for each channel. | |
| uint32_t | getCommentSizeUint32 () const |
| Returns the space occupied by the comment fields in units of uint32_t. | |
| uint32_t | getCommentSizeChar () const |
| Returns the space occupied by the comment fields in units of chars. | |
| std::string | getAuthor () const |
| Returns the comment author. | |
| std::string | getComment () const |
| Returns the actual comment. | |
| uint64_t | getTimeStamp () const |
| Returns the unix timestamp of the comment (seconds since 1.1.1970). | |
| std::string | getDate () const |
| Returns the date of the comment as string (derived from timestamp). | |
| std::string | getFullComment () const |
| Returns a formated string build from all comment fields. | |
| const void * | getAddress (unsigned int iEle) const |
| Returns start address of iEle-th basic unit. | |
| void * | getAddress (unsigned int iEle) |
Static Public Member Functions | |
| static const TileCalibDrawerCmt * | getInstance (const coral::Blob &blob) |
| Returns a pointer to a const TileCalibDrawerCmt. | |
| static TileCalibDrawerCmt * | getInstance (coral::Blob &blob, const std::string &author, const std::string &comment="", uint64_t timeStamp=0) |
| Returns a pointer to a non-const TileCalibDrawerCmt. | |
Static Public Attributes | |
| static const unsigned int | m_hdrSize32 = 5 |
| The header size in units of uint32_t. | |
Protected Member Functions | |
| TileCalibDrawerCmt (const coral::Blob &blob) | |
| Ctor used when interpreting an already existing BLOB. | |
| TileCalibDrawerCmt (coral::Blob &blob) | |
| Ctor (non-const). | |
| uint32_t | createBlob (uint16_t objType, uint16_t objVersion, uint32_t objSizeUint32, uint32_t nObjs, uint16_t nChans, uint16_t nGains, std::string_view author="", std::string_view comment="", uint64_t timeStamp=0) |
| (re-)creation of the referenced BLOB object. | |
| void | dumpHeader (std::ostream &stm) const |
| Prints the BLOB header summary information. | |
Private Attributes | |
| coral::Blob * | m_blob_nc |
| Non-const reference to the BLOB. | |
| const coral::Blob * | m_blob |
| Const reference to the BLOB (always there). | |
| const uint32_t * | m_blobStart32 |
| Cache blob starting address as uint_32t*. | |
| const uint16_t * | m_blobStart16 |
| Cache blob starting address as uint_16t*. | |
| uint64_t | m_blobSize32 |
| Cache blob size in units of uint32_t. | |
| bool | m_isBlobOwner |
| Is this TileCalibDrawer owner of the BLOB. | |
Class to store comments in BLOB without any data.
This is a specialesed TileCalibDrawer class that holds only the comment fields but no calibration data. It should only be stored in the COOL comment channel (see TileCalibUtils class).
Definition at line 20 of file TileCalibDrawerCmt.h.
|
inlinevirtual |
|
protected |
Ctor used when interpreting an already existing BLOB.
| blob | A const reference to the coral::Blob to interpret. |
Definition at line 35 of file TileCalibDrawerCmt.cxx.
|
protected |
Ctor (non-const).
Definition at line 44 of file TileCalibDrawerCmt.cxx.
|
virtualinherited |
Initialzes Blob with content of other Blob.
| other | TileCalibDrawer used for initialization |
Definition at line 75 of file TileCalibDrawerBase.cxx.
|
protectedinherited |
(re-)creation of the referenced BLOB object.
| objType | Object type |
| objVersion | Object version |
| objSizeUint32 | Size of a data object (in uint32_t) |
| nObjs | Total number of data objects |
| nChans | number of stored channels |
| nGains | number of stored gains |
| author | comment author |
| comment | actual comment |
| timeStamp | unix time stamp (if 0, current time is used) |
Definition at line 88 of file TileCalibDrawerBase.cxx.
|
inlinevirtual |
Print the header to std::cout.
Reimplemented from TileCalibDrawerBase.
Definition at line 48 of file TileCalibDrawerCmt.h.
|
inlinevirtual |
Print the header.
| stm | The stream to print to |
Reimplemented from TileCalibDrawerBase.
Definition at line 51 of file TileCalibDrawerCmt.h.
|
protectedinherited |
Prints the BLOB header summary information.
| stm | output stream to use |
Definition at line 201 of file TileCalibDrawerBase.cxx.
|
inherited |
|
inherited |
Returns start address of iEle-th basic unit.
| iEle | sequential basic unit number |
|
inherited |
Returns the comment author.
Definition at line 148 of file TileCalibDrawerBase.cxx.
|
inlineinherited |
|
inlineinherited |
|
inherited |
Returns the actual comment.
Definition at line 162 of file TileCalibDrawerBase.cxx.
|
inlineinherited |
Returns the space occupied by the comment fields in units of chars.
Definition at line 114 of file TileCalibDrawerBase.h.
|
inherited |
Returns the space occupied by the comment fields in units of uint32_t.
|
inherited |
Returns the date of the comment as string (derived from timestamp).
Definition at line 177 of file TileCalibDrawerBase.cxx.
|
inherited |
Returns a formated string build from all comment fields.
Definition at line 191 of file TileCalibDrawerBase.cxx.
|
static |
Returns a pointer to a const TileCalibDrawerCmt.
Definition at line 24 of file TileCalibDrawerCmt.cxx.
|
static |
Returns a pointer to a non-const TileCalibDrawerCmt.
| blob | Reference to a coral::Blob |
| author | String containing the author user id |
| comment | String containing the actual comment |
| timeStamp | Unix time stamp (if 0, current time is used) |
Definition at line 11 of file TileCalibDrawerCmt.cxx.
|
inherited |
Returns the number of channels stored in the BLOB.
|
inherited |
Returns the number of gains stored for each channel.
|
inherited |
Returns the number of data objects stored int the BLOB.
|
inlineinherited |
Returns the size of a data object in units of bytes.
Definition at line 104 of file TileCalibDrawerBase.h.
|
inherited |
Returns the size of a data object in units of uint32_t.
|
inherited |
Returns the BLOB object type.
|
inherited |
Returns the BLOB object version.
|
inherited |
Returns the unix timestamp of the comment (seconds since 1.1.1970).
|
inlinevirtual |
Returns TileCalibType::CMT.
Reimplemented from TileCalibDrawerBase.
Definition at line 26 of file TileCalibDrawerCmt.h.
| void TileCalibDrawerCmt::init | ( | const std::string & | author, |
| const std::string & | comment = "", | ||
| uint64_t | timeStamp = 0 ) |
Initializing a TileCalibDrawerCmt.
| author | String containing the author user id |
| comment | String containing the actual comment |
| timeStamp | Unix time stamp (if 0, current time is used) |
Definition at line 54 of file TileCalibDrawerCmt.cxx.
|
privateinherited |
Const reference to the BLOB (always there).
Definition at line 178 of file TileCalibDrawerBase.h.
|
privateinherited |
Non-const reference to the BLOB.
(Only present if we were created with a non-const blob.)
Definition at line 176 of file TileCalibDrawerBase.h.
|
privateinherited |
Cache blob size in units of uint32_t.
Definition at line 184 of file TileCalibDrawerBase.h.
|
privateinherited |
Cache blob starting address as uint_16t*.
Definition at line 182 of file TileCalibDrawerBase.h.
|
privateinherited |
Cache blob starting address as uint_32t*.
Definition at line 180 of file TileCalibDrawerBase.h.
|
staticinherited |
The header size in units of uint32_t.
Definition at line 140 of file TileCalibDrawerBase.h.
|
privateinherited |
Is this TileCalibDrawer owner of the BLOB.
Definition at line 186 of file TileCalibDrawerBase.h.