![]() |
Project
|
Exchange container between PedestalProcessorDevice and PedestalAggregatorDevice. More...
#include <PedestalProcessorData.h>
Classes | |
class | ChannelIndexException |
Handling access to invalid channel index (out-of-bounds) More... | |
Public Types | |
using | ProfileHistFEC = std::array< o2::math_utils::StatAccumulator, 17664 > |
using | ProfileHistLEDMON = std::array< o2::math_utils::StatAccumulator, 480 > |
using | PedestalValue = std::tuple< double, double > |
Public Member Functions | |
PedestalProcessorData ()=default | |
Constructor. | |
~PedestalProcessorData ()=default | |
Destructor. | |
PedestalProcessorData & | operator+= (const PedestalProcessorData &other) |
Accumulation operator. | |
void | fillADC (unsigned short adc, unsigned short tower, bool lowGain, bool LEDMON) |
Fill ADC value for certain channel. | |
PedestalValue | getValue (unsigned short tower, bool lowGain, bool LEDMON) const |
Get mean ADC and RMS for a certain channel. | |
int | getEntriesForChannel (unsigned short tower, bool lowGain, bool LEDMON) const |
Get number of entries for a certain channel. | |
void | reset () |
Reset object. | |
const ProfileHistFEC & | accessFECData (bool lowGain) const |
Provide access to accumulated data for FEC channels. | |
const ProfileHistLEDMON & | accessLEDMONData (bool lowGain) const |
Provide access to accumulated data for LEDMON channels. | |
Exchange container between PedestalProcessorDevice and PedestalAggregatorDevice.
Object containing arrays of stat accumulators that behave like flat profile histograms calculating mean and RMS of a set of ADC values. Corresponding arrays are used for both FEC and LEDMON channels, and in both cases for high and low gain. Distinction between channel and gain type is done via arguments in the fill and get functions, always defining the true cases with LEDMON and low gain.
Definition at line 36 of file PedestalProcessorData.h.
using o2::emcal::PedestalProcessorData::PedestalValue = std::tuple<double, double> |
Definition at line 76 of file PedestalProcessorData.h.
using o2::emcal::PedestalProcessorData::ProfileHistFEC = std::array<o2::math_utils::StatAccumulator, 17664> |
Definition at line 74 of file PedestalProcessorData.h.
using o2::emcal::PedestalProcessorData::ProfileHistLEDMON = std::array<o2::math_utils::StatAccumulator, 480> |
Definition at line 75 of file PedestalProcessorData.h.
|
default |
Constructor.
|
default |
Destructor.
|
inline |
Provide access to accumulated data for FEC channels.
lowGain | Low gain data |
Definition at line 124 of file PedestalProcessorData.h.
|
inline |
Provide access to accumulated data for LEDMON channels.
lowGain | Low gain data |
Definition at line 129 of file PedestalProcessorData.h.
void PedestalProcessorData::fillADC | ( | unsigned short | adc, |
unsigned short | tower, | ||
bool | lowGain, | ||
bool | LEDMON | ||
) |
Fill ADC value for certain channel.
adc | ADC value |
tower | Absolute tower ID |
lowGain | Switch between low and high gain (true = low gain) |
LEDMON | Switch between LEDMON and FEE data (true = LEDMON) |
ChannelIndexException | for channel index out-of-range |
Definition at line 30 of file PedestalProcessorData.cxx.
int PedestalProcessorData::getEntriesForChannel | ( | unsigned short | tower, |
bool | lowGain, | ||
bool | LEDMON | ||
) | const |
Get number of entries for a certain channel.
tower | Absolute tower ID |
lowGain | Switch between low and high gain (true = low gain) |
LEDMON | Switch between LEDMON and FEE data (true = LEDMON) |
ChannelIndexException | for channel index out-of-range |
Definition at line 73 of file PedestalProcessorData.cxx.
PedestalProcessorData::PedestalValue PedestalProcessorData::getValue | ( | unsigned short | tower, |
bool | lowGain, | ||
bool | LEDMON | ||
) | const |
Get mean ADC and RMS for a certain channel.
tower | Absolute tower ID |
lowGain | Switch between low and high gain (true = low gain) |
LEDMON | Switch between LEDMON and FEE data (true = LEDMON) |
ChannelIndexException | for channel index out-of-range |
Definition at line 51 of file PedestalProcessorData.cxx.
PedestalProcessorData & PedestalProcessorData::operator+= | ( | const PedestalProcessorData & | other | ) |
Accumulation operator.
other | Object to add to this object |
Adding stat. accumulators for all channels to this object. The state of this object is modified.
Definition at line 17 of file PedestalProcessorData.cxx.
void PedestalProcessorData::reset | ( | ) |
Reset object.
Set all stat accumulators to 0.
Definition at line 95 of file PedestalProcessorData.cxx.