12#ifndef O2_MCH_CALIBRATION_PEDESTAL_DATA_H_
13#define O2_MCH_CALIBRATION_PEDESTAL_DATA_H_
21#include <unordered_map>
66 static constexpr int MAXDS = 40;
77 void fill(
const gsl::span<const PedestalDigit>
digits);
87 uint32_t
size()
const;
119 if (mData && mData->
size() == 0) {
123 mMapIt = mData->mPedestals.begin();
129 return mMapIt->second[mRow][mCol];
133 return &mMapIt->second[mRow][mCol];
138 if (mMapIt != mData->mPedestals.end()) {
151 if (mMapIt != mData->mPedestals.end()) {
163 if ((*this)->isValid()) {
173 return mData == rhs.mData &&
174 mMapIt == rhs.mMapIt &&
190 PedestalData::PedestalsMap::iterator mMapIt;
Compute and store the mean and RMS of the pedestal digit amplitudes.
static constexpr int MAXDS
static constexpr int MAXCHANNEL
std::unordered_map< int, PedestalMatrix > PedestalsMap
const_iterator cend() const
const_iterator cbegin() const
std::array< std::array< PedestalChannel, MAXCHANNEL >, MAXDS > PedestalMatrix
void fill(const gsl::span< const PedestalDigit > digits)
void merge(const PedestalData *other)
pointer operator->() const
std::forward_iterator_tag iterator_category
std::ptrdiff_t difference_type
PedestalDataIterator & operator++()
PedestalDataIterator()=default
PedestalDataIterator(PedestalData *data)
PedestalDataIterator operator++(int)
bool operator!=(const PedestalDataIterator &rhs)
reference operator*() const
bool operator==(const PedestalDataIterator &rhs)
std::function< std::optional< DsDetId >(DsElecId)> Elec2DetMapper
std::function< std::optional< FeeLinkId >(uint16_t solarId)> Solar2FeeLinkMapper
From solarId to (feeId,linkId)
VectorOfTObjectPtrs other
std::vector< Digit > digits