#include <LArAutoCorrBlob.h>
Definition at line 17 of file LArAutoCorrBlob.h.
◆ anonymous enum
◆ LArAutoCorrBlob()
| LArAutoCorrBlob::LArAutoCorrBlob |
( |
| ) |
|
◆ ~LArAutoCorrBlob()
| LArAutoCorrBlob::~LArAutoCorrBlob |
( |
| ) |
|
◆ autocorrByHash()
Definition at line 28 of file LArAutoCorrBlob.h.
28 {
32 else
34 }
LArVectorProxy AutoCorrRef_t
std::vector< const float * > m_pAutoCorr
◆ readBlob()
Definition at line 18 of file LArAutoCorrBlob.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& acBlob = attr["AutoCorrVec"].data<coral::Blob>();
41 if (blobSize==0) blobSize=acBlob.size();
43
44
45 if (blobSize!=acBlob.size()) {
46 msg << MSG::ERROR <<
"Unequal blob size (" << blobSize <<
"/"
47 << acBlob.size() <<
")" <<
endmsg;
48 return;
49 }
51 msg << MSG::ERROR <<
"Unequal number of samples (" <<
m_nPoints <<
"/"
52 << attr[
"nPoints"].data<
unsigned>() <<
")" <<
endmsg;
53 return;
54 }
55
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 LArAutoCorrBlob::m_nChannels |
|
protected |
◆ m_nPoints
| unsigned LArAutoCorrBlob::m_nPoints |
|
protected |
◆ m_pAutoCorr
| std::vector<const float*> LArAutoCorrBlob::m_pAutoCorr |
|
private |
The documentation for this class was generated from the following files: