|
ATLAS Offline Software
|
Go to the documentation of this file.
21 #ifndef LARCALIBTRIGGERACCUMULATOR
22 #define LARCALIBTRIGGERACCUMULATOR
76 template<
class INTTYPE>
81 std::vector<float>
mean()
const;
84 std::vector<float>
RMS()
const;
88 double mean(
const size_t i)
const;
91 double RMS(
const size_t i)
const;
96 template<
class INTTYPE>
98 const std::vector<INTTYPE>& sample2Sum,
const uint32_t nTrigger) {
107 for (
size_t i=0;
i<nS;++
i) {
111 for (
size_t j=0;j<
i;++j) {
ERRTYPE add(const std::vector< short > &digits)
accumulated individual set of digits.
LArCalibTriggerAccumulator()
size_t nsamples() const
return number of samples
Helper class to accumulate calibration triggers.
std::vector< uint64_t > m_sample2Sum
sum of squares of samples
std::vector< float > mean() const
Calculates and returns the Mean value of each ADC sample.
uint32_t nTriggers() const
return the number of triggers
std::vector< uint64_t > m_sampleSum
sum of samples
const std::vector< uint64_t > & sample2Sum() const
return a reference to a stl vector containing the sum of the squares of the sample
const std::vector< uint64_t > & sampleSum() const
return a reference to a stl vector containing the sample-sums
uint32_t m_nTrigger
number of triggers
std::vector< float > RMS() const
Calculates and returns the RMS value of each ADC sample.