#include <LArPedestalBlob.h>
Definition at line 16 of file LArPedestalBlob.h.
◆ LArPedestalBlob()
| LArPedestalBlob::LArPedestalBlob |
( |
| ) |
|
◆ ~LArPedestalBlob()
| LArPedestalBlob::~LArPedestalBlob |
( |
| ) |
|
◆ pedestalByHash()
| float LArPedestalBlob::pedestalByHash |
( |
const IdentifierHash & | hs, |
|
|
const unsigned | gain ) const |
|
inlineprotected |
Definition at line 26 of file LArPedestalBlob.h.
26 {
27
29 }
std::vector< const float * > m_pPedestal
◆ pedestalRMSByHash()
| float LArPedestalBlob::pedestalRMSByHash |
( |
const IdentifierHash & | hs, |
|
|
const unsigned | gain ) const |
|
inlineprotected |
Definition at line 31 of file LArPedestalBlob.h.
31 {
32
34 }
std::vector< const float * > m_pPedestalRMS
◆ readBlob()
Definition at line 18 of file LArPedestalBlob.cxx.
18 {
22
23 if (!attrList) return;
24
27
30 msg << MSG::DEBUG <<
"Found data for " << attrList->
size() <<
" gains." <<
endmsg;
31
32 int blobSize=0;
33
34 for(;gainIt!=gainIt_e;++gainIt) {
35 const unsigned gain=gainIt->first;
36 if (gain>=attrList->
size()) {
37 msg << MSG::ERROR <<
"Found unexpected COOL-channel (=gain) number:" <<
gain <<
endmsg;
38 return;
39 }
40 const coral::AttributeList& attr=gainIt->second;
41 const coral::Blob& pedBlob = attr["Pedestal"].data<coral::Blob>();
42 const coral::Blob& rmsBlob = attr["PedestalRMS"].data<coral::Blob>();
43 if (blobSize==0) blobSize=pedBlob.size();
44
45
46 if (blobSize!=pedBlob.size() || blobSize!=rmsBlob.size()) {
47 msg << MSG::ERROR <<
"Unequal blob size (" << blobSize <<
"/"
48 << pedBlob.size() <<
"/" << rmsBlob.size() <<
")" <<
endmsg;
49 return;
50 }
53 }
54
55
58 return;
59}
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 LArPedestalBlob::m_nChannels |
|
protected |
◆ m_pPedestal
| std::vector<const float*> LArPedestalBlob::m_pPedestal |
|
private |
◆ m_pPedestalRMS
| std::vector<const float*> LArPedestalBlob::m_pPedestalRMS |
|
private |
The documentation for this class was generated from the following files: