7#include "CoralBase/Blob.h"
8#include "GaudiKernel/MsgStream.h"
18 if (!attrList)
return;
24 msg << MSG::DEBUG <<
"Found data for " << attrList->
size() <<
" gains." <<
endmsg;
28 for(;gainIt!=gainIt_e;++gainIt) {
29 unsigned gain=gainIt->first;
31 if (gain==1 && attrList->
size()==1) gain=0;
33 if (gain>=attrList->
size() || gain>2) {
34 msg << MSG::ERROR <<
"Found unexpected COOL-channel (=gain) number:" << gain <<
endmsg;
38 const coral::AttributeList& attr=gainIt->second;
39 const coral::Blob& myBlob = attr[attrName].data<coral::Blob>();
40 m_pValues[gain]=
static_cast<const float*
>(myBlob.startingAddress());
42 blobSize=myBlob.size();
45 if (blobSize!=myBlob.size())
46 msg << MSG::ERROR <<
"Unequal blob size (" << blobSize <<
"/" << myBlob.size() <<
")" <<
endmsg;
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
This class is a collection of AttributeLists where each one is associated with a channel number.
const_iterator end() const
const_iterator begin() const
Access to Chan/AttributeList pairs via iterators.
size_type size() const
number of Chan/AttributeList pairs
ChanAttrListMap::const_iterator const_iterator
void readBlob(const CondAttrListCollection *attrList, const char *attrName, MsgStream &msg)
std::vector< const float * > m_pValues