![]() |
ATLAS Offline Software
|
Data class for ADC samples and autocorr preprocessed by the DSP. More...
#include <LArAccumulatedDigit.h>
Public Member Functions | |
| LArAccumulatedDigit (HWIdentifier &channel_value, CaloGain::CaloGain gain_value, const std::vector< uint64_t > &sampleSum_value, const std::vector< uint64_t > &sampleSquare_value, uint32_t nTrigger_value) | |
| Constructor (first type) More... | |
| LArAccumulatedDigit (HWIdentifier &channel_value) | |
| Constructor (second type) More... | |
| ~LArAccumulatedDigit ()=default | |
| Destructor. More... | |
| LArAccumulatedDigit () | |
| default constructor for persistency More... | |
| const HWIdentifier & | hardwareID () const |
| Return HWIdentifier. More... | |
| const HWIdentifier & | channelID () const |
| Return channel ID. More... | |
| CaloGain::CaloGain | gain () const |
| return gain value More... | |
| int | nsample () const |
| return number of samples More... | |
| const std::vector< uint64_t > & | sampleSum () const |
| return the sample-sums More... | |
| const std::vector< uint64_t > & | sampleSquare () const |
| return a reference to a stl vector containing the sum of the squares of the sample More... | |
| unsigned | nTrigger () const |
| return the number of triggers More... | |
| float | mean (int n_min=-1, int n_max=-1) const |
| Calculates and returns the Mean value of ADC samples. More... | |
| float | RMS (int n_min=-1, int n_max=-1) const |
| Calculates and returns the RMS value of ADC samples More... | |
| void | getCov (std::vector< float > &cov, int normalize) const |
| Compute the autocorrelation elements. More... | |
| bool | setAddDigit (const std::vector< short > &digit) |
| Accumulate single digit. More... | |
| bool | setAddSubStep (const CaloGain::CaloGain gain_value, const HWIdentifier chid, const std::vector< uint64_t > &sampleSum, const std::vector< uint64_t > &sampleSquare, const unsigned nTrigger) |
| Accumulate new values More... | |
| void | setAddSubStep (CaloGain::CaloGain gain_value, const std::vector< uint64_t > &sampleSum, const std::vector< uint64_t > &sampleSquare, unsigned nTrigger) |
| void | setAddSubStep (CaloGain::CaloGain gain_value, const std::vector< int64_t > &sampleSum, const std::vector< int64_t > &sampleSquare, unsigned nTrigger, int32_t base) |
| bool | setAddSubStep (const LArAccumulatedDigit &ad) |
Private Attributes | |
| HWIdentifier | m_hardwareID |
| Online Identifier. More... | |
| CaloGain::CaloGain | m_gain |
| gain More... | |
| std::vector< uint64_t > | m_sampleSum |
| sampleSum over ntrigger*nsamples More... | |
| std::vector< uint64_t > | m_sampleSquare |
| vector(index: j from s_i*s_{i+j}) More... | |
| uint32_t | m_nTrigger |
| number of total triggers More... | |
Data class for ADC samples and autocorr preprocessed by the DSP.
Contains sum of ADC counts and the sum of the s_i*s_{i+j} adc counts plus gain, number of triggers and samples
Modifications: Walter Lampl, 27 Aug 2009: Remove storage of individual substeps. The class represents now exactly one substep or the sum of many substeps.
Definition at line 32 of file LArAccumulatedDigit.h.
| LArAccumulatedDigit::LArAccumulatedDigit | ( | HWIdentifier & | channel_value, |
| CaloGain::CaloGain | gain_value, | ||
| const std::vector< uint64_t > & | sampleSum_value, | ||
| const std::vector< uint64_t > & | sampleSquare_value, | ||
| uint32_t | nTrigger_value | ||
| ) |
| LArAccumulatedDigit::LArAccumulatedDigit | ( | HWIdentifier & | channel_value | ) |
Constructor (second type)
Definition at line 34 of file LArAccumulatedDigit.cxx.
|
default |
Destructor.
| LArAccumulatedDigit::LArAccumulatedDigit | ( | ) |
default constructor for persistency
Definition at line 10 of file LArAccumulatedDigit.cxx.
|
inline |
|
inline |
| void LArAccumulatedDigit::getCov | ( | std::vector< float > & | cov, |
| int | normalize | ||
| ) | const |
|
inline |
| float LArAccumulatedDigit::mean | ( | int | n_min = -1, |
| int | n_max = -1 |
||
| ) | const |
Calculates and returns the Mean value of ADC samples.
Definition at line 41 of file LArAccumulatedDigit.cxx.
|
inline |
|
inline |
| float LArAccumulatedDigit::RMS | ( | int | n_min = -1, |
| int | n_max = -1 |
||
| ) | const |
Calculates and returns the RMS value of ADC samples
Definition at line 64 of file LArAccumulatedDigit.cxx.
|
inline |
return a reference to a stl vector containing the sum of the squares of the sample
Definition at line 85 of file LArAccumulatedDigit.h.
|
inline |
| bool LArAccumulatedDigit::setAddDigit | ( | const std::vector< short > & | digit | ) |
| void LArAccumulatedDigit::setAddSubStep | ( | CaloGain::CaloGain | gain_value, |
| const std::vector< int64_t > & | sampleSum, | ||
| const std::vector< int64_t > & | sampleSquare, | ||
| unsigned | nTrigger, | ||
| int32_t | base | ||
| ) |
Definition at line 188 of file LArAccumulatedDigit.cxx.
| void LArAccumulatedDigit::setAddSubStep | ( | CaloGain::CaloGain | gain_value, |
| const std::vector< uint64_t > & | sampleSum, | ||
| const std::vector< uint64_t > & | sampleSquare, | ||
| unsigned | nTrigger | ||
| ) |
Definition at line 149 of file LArAccumulatedDigit.cxx.
| bool LArAccumulatedDigit::setAddSubStep | ( | const CaloGain::CaloGain | gain_value, |
| const HWIdentifier | chid, | ||
| const std::vector< uint64_t > & | sampleSum, | ||
| const std::vector< uint64_t > & | sampleSquare, | ||
| const unsigned | nTrigger | ||
| ) |
|
inline |
Definition at line 117 of file LArAccumulatedDigit.h.
|
private |
gain
Definition at line 40 of file LArAccumulatedDigit.h.
|
private |
Online Identifier.
Definition at line 37 of file LArAccumulatedDigit.h.
|
private |
number of total triggers
Definition at line 49 of file LArAccumulatedDigit.h.
|
private |
vector(index: j from s_i*s_{i+j})
Definition at line 46 of file LArAccumulatedDigit.h.
|
private |
sampleSum over ntrigger*nsamples
Definition at line 43 of file LArAccumulatedDigit.h.
1.8.18