|
ATLAS Offline Software
|
Go to the documentation of this file.
7 #include "CoralBase/Blob.h"
25 if (!attrList)
return;
39 for(;gainIt!=gainIt_e;++gainIt) {
40 const unsigned gain=gainIt->first;
49 if (blobSize==0) blobSize=ofcaBlob.size();
53 if (blobSize!=ofcaBlob.size() || blobSize!=ofcbBlob.size()) {
55 << ofcaBlob.size() <<
"/" << ofcbBlob.size() <<
")" );
58 if (
m_nSamples!=attr[
"nSamples"].data<unsigned>()) {
60 << attr[
"nSamples"].data<unsigned>() <<
")" );
65 m_pOFCa[
gain]=
static_cast<const float*
>(ofcaBlob.startingAddress());
66 m_pOFCb[
gain]=
static_cast<const float*
>(ofcbBlob.startingAddress());
79 if (tbin!=0)
return OFCRef_t(
nullptr,
nullptr);
84 if (tbin!=0)
return OFCRef_t(
nullptr,
nullptr);
const_iterator end() const
IdentifierHash channel_Hash(HWIdentifier channelId) const
Create channel_hash from channel_Id.
std::vector< const float * > m_pTimeOffset
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
std::vector< const float * > m_pOFCb
const_iterator begin() const
Access to Chan/AttributeList pairs via iterators.
virtual OFCRef_t OFC_b(const HWIdentifier &CellID, int gain, int tbin=0) const
const LArOnlineID * m_onlineHelper
This class is a collection of AttributeLists where each one is associated with a channel number....
virtual unsigned nTimeBins(const HWIdentifier &CellID, int gain) const
std::vector< const float * > m_pOFCa
virtual float timeBinWidth(const HWIdentifier &CellID, int gain) const
ILArOFC::OFCRef_t OFCRef_t
size_type size() const
number of Chan/AttributeList pairs
ChanAttrListMap::const_iterator const_iterator
StatusCode initializeBase()
virtual float timeOffset(const HWIdentifier &CellID, int gain) const
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
Proxy for accessing a range of float values like a vector.
virtual OFCRef_t OFC_a(const HWIdentifier &CellID, int gain, int tbin=0) const
access to OFCs by online ID, gain, and tbin (!=0 for testbeam)