|
ATLAS Offline Software
|
Go to the documentation of this file.
23 #ifndef LARACCUMULATEDDIGIT_H
24 #define LARACCUMULATEDDIGIT_H
56 const std::vector<uint64_t>& sampleSum_value,
57 const std::vector<uint64_t>& sampleSquare_value,
91 float mean(
int n_min=-1,
int n_max=-1)
const;
94 float RMS(
int n_min=-1,
int n_max=-1)
const;
122 #endif //LARACCUMULATEDDIGIT_H
CaloGain::CaloGain gain() const
return gain value
HWIdentifier m_hardwareID
Online Identifier.
CaloGain::CaloGain m_gain
gain
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
const std::vector< uint64_t > & sampleSquare() const
return a reference to a stl vector containing the sum of the squares of the sample
float mean(int n_min=-1, int n_max=-1) const
Calculates and returns the Mean value of ADC samples.
bool setAddDigit(const std::vector< short > &digit)
Accumulate single digit.
const HWIdentifier & hardwareID() const
Return HWIdentifier.
uint32_t m_nTrigger
number of total triggers
Data class for ADC samples and autocorr preprocessed by the DSP.
~LArAccumulatedDigit()=default
Destructor.
bool setAddSubStep(const LArAccumulatedDigit &ad)
int nsample() const
return number of samples
void getCov(std::vector< float > &cov, int normalize) const
Compute the autocorrelation elements.
std::vector< uint64_t > m_sampleSum
sampleSum over ntrigger*nsamples
float RMS(int n_min=-1, int n_max=-1) const
Calculates and returns the RMS value of ADC samples
unsigned nTrigger() const
return the number of triggers
const std::vector< uint64_t > & sampleSum() const
return the sample-sums
LArAccumulatedDigit()
default constructor for persistency
std::vector< uint64_t > m_sampleSquare
vector(index: j from s_i*s_{i+j})
const HWIdentifier & channelID() const
Return channel ID.