5#ifndef TILECALIBBLOBOBJS_TILECALIBDRAWERBASE_H
6#define TILECALIBBLOBOBJS_TILECALIBDRAWERBASE_H
54#include "CoralBase/Blob.h"
159 uint32_t objSizeUint32,
163 const std::string& author=
"",
164 const std::string& comment=
"",
165 uint64_t timeStamp=0);
250 throw TileCalib::IndexOutOfRange(
"TileCalibDrawerBase::getAddress", iEle,
getNObjs());
261 throw TileCalib::IndexOutOfRange(
"TileCalibDrawerBase::getAddress", iEle,
getNObjs());
__attribute__((always_inline)) inline uint16_t TileCalibDrawerBase
virtual uint16_t getType() const
Returns TileCalibDrawer::BASE.
uint32_t getCommentSizeUint32() const
Returns the space occupied by the comment fields in units of uint32_t.
uint16_t getNChans() const
Returns the number of channels stored in the BLOB.
TileCalibDrawerBase & operator=(const TileCalibDrawerBase &other)
Assignment operator.
virtual void clone(const TileCalibDrawerBase &other)
Initialzes Blob with content of other Blob.
uint64_t m_blobSize32
Cache blob size in units of uint32_t.
std::string getFullComment() const
Returns a formated string build from all comment fields.
std::string getComment() const
Returns the actual comment.
uint32_t createBlob(uint16_t objType, uint16_t objVersion, uint32_t objSizeUint32, uint32_t nObjs, uint16_t nChans, uint16_t nGains, const std::string &author="", const std::string &comment="", uint64_t timeStamp=0)
(re-)creation of the referenced BLOB object.
virtual void dump(std::ostream &stm) const
Prints the BLOB header summary information.
uint16_t getObjType() const
Returns the BLOB object type.
const uint32_t * m_blobStart32
Cache blob starting address as uint_32t*.
uint16_t getNGains() const
Returns the number of gains stored for each channel.
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)
const coral::Blob * m_blob
Const reference to the BLOB (always there)
long getBlobSize() const
Returns the BLOB size in units of bytes.
void * getAddress(unsigned int iEle)
virtual void dump() const
Prints the BLOB header summary information to std::cout.
void dumpHeader(std::ostream &stm) const
Prints the BLOB header summary information.
virtual ~TileCalibDrawerBase()
Dtor.
TileCalibDrawerBase(const TileCalibDrawerBase &other)
Copy Ctor.
uint32_t getNObjs() const
Returns the number of data objects stored int the BLOB.
const uint16_t * m_blobStart16
Cache blob starting address as uint_16t*.
std::string getAuthor() const
Returns the comment author.
static const unsigned int m_hdrSize32
The header size in units of uint32_t.
bool m_isBlobOwner
Is this TileCalibDrawer owner of the BLOB.
uint16_t getObjVersion() const
Returns the BLOB object version.
uint32_t getObjSizeByte() const
Returns the size of a data object in units of bytes.
coral::Blob * m_blob_nc
Non-const reference to the BLOB.
long getBlobSize32() const
Returns the BLOB size in units of uint32_t.
uint32_t getObjSizeUint32() const
Returns the size of a data object in units of uint32_t.
uint32_t getCommentSizeChar() const
Returns the space occupied by the comment fields in units of chars.
const void * getAddress(unsigned int iEle) const
Returns start address of iEle-th basic unit.
@ BASE
Enum for TileCalibDrawerBase class.