|
ATLAS Offline Software
|
Go to the documentation of this file.
33 #ifndef LARACCUMULATEDCALIBDIGIT_H
34 #define LARACCUMULATEDCALIBDIGIT_H
78 const std::vector < uint64_t >& sampleSum_value,
79 const std::vector < uint64_t >& sample2Sum_value,
156 std::vector<float>
mean()
const;
159 std::vector<float>
RMS()
const;
163 float mean(
const size_t i)
const;
166 float RMS(
const size_t i)
const;
179 bool setAddDigit(
const std::vector<short>& samples);
LArAccumulatedCalibDigit(HWIdentifier &channel_value, CaloGain::CaloGain gain_value, uint32_t nsamples=7, uint32_t DAC_value=0, uint16_t delay_value=0, uint16_t isPulsed_value=false, uint16_t nStep_value=0, uint16_t iStep_value=0)
Constructor (initialize for later accumulation)
Data class for calibration ADC samples preprocessed by the DSP.
bool setAddDigit(const std::vector< short > &samples)
Sum up with another (individual) LArCalibDigit.
std::vector< uint64_t > m_sample2Sum
vector of sample square sums
std::vector< uint64_t > m_sampleSum
vector of sample sums
size_t nsamples() const
return number of samples
const std::vector< uint64_t > & sampleSum() const
return a reference to a stl vector containing the sample-sums
LArAccumulatedCalibDigit(HWIdentifier &channel_value, CaloGain::CaloGain gain_value, const std::vector< uint64_t > &sampleSum_value, const std::vector< uint64_t > &sample2Sum_value, uint32_t nTrigger_value, uint32_t DAC_value=0, uint16_t delay_value=0, uint16_t isPulsed_value=false, uint16_t nStep_value=0, uint16_t iStep_value=0)
Constructor (initialize everything)
uint16_t stepIndex() const
CaloGain::CaloGain gain() const
return gain value
uint16_t getIsPulsedInt() const
get the four bit int that tells which lines pulsed
bool isPulsed(int n) const
Tell if calib line n was pulsed for this channel (n=1,2,3,4)
std::vector< float > RMS() const
Calculates and returns the RMS value of each ADC sample.
uint32_t m_nTriggers
number of samples
unsigned nTriggers() const
return the number of triggers
uint16_t m_delayPulsed
Delay-Value and isPulsed boolean encoded in this variable.
CaloGain::CaloGain m_gain
gain
const HWIdentifier & hardwareID() const
Return HWIdentifier.
std::vector< float > mean() const
Calculates and returns the Mean value of each ADC sample.
void setSample2Sum(const std::vector< uint64_t > &sample2Sum)
Set the sample2Sum.
virtual ~LArAccumulatedCalibDigit()
Destructor.
int delay() const
return the setting of the delay
LArAccumulatedCalibDigit()
default constructor for persistency
bool isPulsed() const
Tell if this channel was pulsed.
bool setAddSubStep(const std::vector< uint64_t > &sampleSum, const std::vector< uint64_t > &sample2Sum, const uint32_t nTriggerPerStep)
Sum up with another substep.
const HWIdentifier & channelID() const
Return channel ID.
void setSampleSum(const std::vector< uint64_t > &sampleSum)
Set the sampleSum.
const std::vector< uint64_t > & sample2Sum() const
return a reference to a stl vector containing the sum of the squares of the sample
HWIdentifier m_hardwareID
Online Identifier.
int DAC() const
return the number of samples