#include <LArRampBlob.h>
|
| std::vector< const float * > | m_pRamp |
Definition at line 17 of file LArRampBlob.h.
◆ anonymous enum
◆ LArRampBlob()
| LArRampBlob::LArRampBlob |
( |
| ) |
|
◆ ~LArRampBlob()
| LArRampBlob::~LArRampBlob |
( |
| ) |
|
◆ ADC2DACByHash()
Definition at line 28 of file LArRampBlob.h.
28 {
30 if (*start==
static_cast<float>(
ERRORCODE))
32 else
34 }
LArVectorProxy RampRef_t
This class defines the interface for accessing Ramp @stereotype Interface.
std::vector< const float * > m_pRamp
◆ readBlob()
Definition at line 18 of file LArRampBlob.cxx.
18 {
22
23 if (!attrList) return;
24
27
29 msg << MSG::DEBUG <<
"Found data for " << attrList->
size() <<
" gains." <<
endmsg;
30
31 int blobSize=0;
32
33 for(;gainIt!=gainIt_e;++gainIt) {
34 const unsigned gain=gainIt->first;
35 if (gain>=attrList->
size() || gain>2) {
36 msg << MSG::ERROR <<
"Found unexpected COOL-channel (=gain) number:" <<
gain <<
endmsg;
37 return;
38 }
39 const coral::AttributeList& attr=gainIt->second;
40 const coral::Blob& rampBlob = attr["RampVec"].data<coral::Blob>();
41 if (blobSize==0) blobSize=rampBlob.size();
43
44
45 if (blobSize!=rampBlob.size()) {
46 msg << MSG::ERROR <<
"Unequal blob size (" << blobSize <<
"/"
47 << rampBlob.size() <<
")" <<
endmsg;
48 return;
49 }
51 msg << MSG::ERROR <<
"Unequal polynom degree (" <<
m_nPoints <<
"/"
52 << attr[
"nPoints"].data<
unsigned>() <<
")" <<
endmsg;
53 return;
54 }
55
56 m_pRamp[
gain]=
static_cast<const float*
>(rampBlob.startingAddress());
57 }
58
59
61 msg << MSG::ERROR <<
"Number of points is zero!" <<
endmsg;
62 return;
63 }
66 return;
67}
char data[hepevt_bytes_allocation_ATLAS]
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
◆ m_nChannels
| unsigned LArRampBlob::m_nChannels |
|
protected |
◆ m_nPoints
| unsigned LArRampBlob::m_nPoints |
|
protected |
◆ m_pRamp
| std::vector<const float*> LArRampBlob::m_pRamp |
|
private |
The documentation for this class was generated from the following files: