|
ATLAS Offline Software
|
Go to the documentation of this file.
15 m_blobStart32(static_cast<
const uint32_t*>(m_blob->startingAddress())),
16 m_blobStart16(static_cast<
const uint16_t*>(m_blob->startingAddress())),
27 m_blobStart32(static_cast<
const uint32_t*>(m_blob->startingAddress())),
28 m_blobStart16(static_cast<
const uint16_t*>(m_blob->startingAddress())),
47 m_blobStart32(static_cast<
const uint32_t*>(m_blob->startingAddress())),
48 m_blobStart16(static_cast<
const uint16_t*>(m_blob->startingAddress())),
60 if(&
other ==
this) {
return *
this;}
105 commentSizeChar += (commentSizeChar %
sizeof(
uint32_t)) ?
110 uint32_t blobSizeInBytes = dataSizeByte+commentSizeChar;
120 blobStart16[0] = objType;
122 blobStart32[1] = objSizeUint32;
123 blobStart32[2] =
nObjs;
124 blobStart16[6] = nChans;
125 blobStart16[7] = nGains;
126 blobStart32[4] = commentSizeChar/
sizeof(
uint32_t);
133 char* pChar =
reinterpret_cast<char*
>(++pTimeStamp);
134 std::string::const_iterator iStr =
author.begin();
135 for(; iStr!=
author.end(); ++iStr){ *pChar = *iStr; ++pChar; }
137 for(iStr=
comment.begin(); iStr!=
comment.end(); ++iStr){ *(++pChar) = *iStr; }
141 return (blobSizeInBytes/
sizeof(
uint32_t));
154 return std::string(iBeg);
170 return std::string(++iBeg);
183 while(*iEnd!=
'\n'){++iEnd;}
184 return std::string(iBeg,iEnd-iBeg);
203 stm <<
"ObjType : " <<
getObjType() << std::endl;
206 stm <<
"NObjs : " <<
getNObjs() << std::endl;
207 stm <<
"NChannels : " <<
getNChans() << std::endl;
208 stm <<
"NGains : " <<
getNGains() << std::endl;
210 stm <<
"=== No comment available ===" << std::endl;
213 stm <<
"Author : " <<
getAuthor() << std::endl;
215 stm <<
"Comment: : " <<
getComment() << std::endl;
std::string getAuthor() const
Returns the comment author.
uint16_t getNGains() const
Returns the number of gains stored for each channel.
const uint32_t * m_blobStart32
Cache blob starting address as uint_32t*.
std::string find(const std::string &s)
return a remapped string
coral::Blob * m_blob_nc
Non-const reference to the BLOB.
static const unsigned int m_hdrSize32
The header size in units of uint32_t.
bool m_isBlobOwner
Is this TileCalibDrawer owner of the BLOB.
uint32_t getCommentSizeUint32() const
Returns the space occupied by the comment fields in units of uint32_t.
static std::string getClassName(TileCalibType::TYPE type)
Returns the class name.
uint32_t getCommentSizeChar() const
Returns the space occupied by the comment fields in units of chars.
void dumpHeader(std::ostream &stm) const
Prints the BLOB header summary information.
bool const RAWDATA *ch2 const
uint16_t getObjVersion() const
Returns the BLOB object version.
uint64_t getTimeStamp() const
Returns the unix timestamp of the comment (seconds since 1.1.1970)
uint32_t getObjSizeByte() const
Returns the size of a data object in units of bytes.
virtual void clone(const TileCalibDrawerBase &other)
Initialzes Blob with content of other Blob.
This class provides the core BLOB infrastructure.
uint16_t getNChans() const
Returns the number of channels stored in the BLOB.
std::string getDate() const
Returns the date of the comment as string (derived from timestamp)
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.
std::string getComment() const
Returns the actual comment.
uint64_t m_blobSize32
Cache blob size in units of uint32_t.
uint16_t getObjType() const
Returns the BLOB object type.
def time(flags, cells_name, *args, **kw)
virtual ~TileCalibDrawerBase()
Dtor.
TileCalibDrawerBase(const TileCalibDrawerBase &other)
Copy Ctor.
const coral::Blob * m_blob
Const reference to the BLOB (always there)
TileCalibDrawerBase & operator=(const TileCalibDrawerBase &other)
Assignment operator.
uint32_t getObjSizeUint32() const
Returns the size of a data object in units of uint32_t.
const uint16_t * m_blobStart16
Cache blob starting address as uint_16t*.
uint32_t getNObjs() const
Returns the number of data objects stored int the BLOB.
std::string getFullComment() const
Returns a formated string build from all comment fields.