![]() |
ATLAS Offline Software
|
Data class for calibration ADC samples preprocessed by the DSP. More...
#include <LArAccumulatedCalibDigit.h>
Public Member Functions | |
| 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) More... | |
| 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) More... | |
| virtual | ~LArAccumulatedCalibDigit () |
| Destructor. More... | |
| LArAccumulatedCalibDigit () | |
| 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... | |
| size_t | nsamples () const |
| return number of samples More... | |
| const std::vector< uint64_t > & | sampleSum () const |
| return a reference to a stl vector containing the sample-sums More... | |
| const std::vector< uint64_t > & | sample2Sum () const |
| return a reference to a stl vector containing the sum of the squares of the sample More... | |
| unsigned | nTriggers () const |
| return the number of triggers More... | |
| int | DAC () const |
| return the number of samples More... | |
| int | delay () const |
| return the setting of the delay More... | |
| bool | isPulsed () const |
| Tell if this channel was pulsed. More... | |
| bool | isPulsed (int n) const |
| Tell if calib line n was pulsed for this channel (n=1,2,3,4) More... | |
| uint16_t | getIsPulsedInt () const |
| get the four bit int that tells which lines pulsed More... | |
| std::vector< float > | mean () const |
| Calculates and returns the Mean value of each ADC sample. More... | |
| std::vector< float > | RMS () const |
| Calculates and returns the RMS value of each ADC sample. More... | |
| float | mean (const size_t i) const |
| Calculates and returns the Mean value for one ADC sample. More... | |
| float | RMS (const size_t i) const |
| Calculates and returns the RMS value for one ADC sample. More... | |
| uint16_t | nSteps () const |
| uint16_t | stepIndex () const |
| void | setSampleSum (const std::vector< uint64_t > &sampleSum) |
| Set the sampleSum. More... | |
| void | setSample2Sum (const std::vector< uint64_t > &sample2Sum) |
| Set the sample2Sum. More... | |
| bool | setAddDigit (const std::vector< short > &samples) |
| Sum up with another (individual) LArCalibDigit. More... | |
| bool | setAddSubStep (const std::vector< uint64_t > &sampleSum, const std::vector< uint64_t > &sample2Sum, const uint32_t nTriggerPerStep) |
| Sum up with another substep. More... | |
Private Attributes | |
| HWIdentifier | m_hardwareID |
| Online Identifier. More... | |
| CaloGain::CaloGain | m_gain |
| gain More... | |
| std::vector< uint64_t > | m_sampleSum |
| vector of sample sums More... | |
| std::vector< uint64_t > | m_sample2Sum |
| vector of sample square sums More... | |
| uint32_t | m_nTriggers |
| number of samples More... | |
| uint32_t | m_DAC |
| DAC-Value. More... | |
| uint16_t | m_delayPulsed |
| Delay-Value and isPulsed boolean encoded in this variable. More... | |
| uint16_t | m_nStep |
| uint16_t | m_iStep |
Data class for calibration ADC samples preprocessed by the DSP.
Definition at line 42 of file LArAccumulatedCalibDigit.h.
|
inline |
Constructor (initialize everything)
Definition at line 77 of file LArAccumulatedCalibDigit.h.
|
inline |
Constructor (initialize for later accumulation)
Definition at line 89 of file LArAccumulatedCalibDigit.h.
|
virtualdefault |
Destructor.
|
inline |
|
inline |
|
inline |
return the number of samples
return the setting of the DAC
Definition at line 135 of file LArAccumulatedCalibDigit.h.
|
inline |
|
inline |
|
inline |
get the four bit int that tells which lines pulsed
Definition at line 153 of file LArAccumulatedCalibDigit.h.
|
inline |
|
inline |
|
inline |
Tell if calib line n was pulsed for this channel (n=1,2,3,4)
Definition at line 144 of file LArAccumulatedCalibDigit.h.
| std::vector< float > LArAccumulatedCalibDigit::mean | ( | ) | const |
Calculates and returns the Mean value of each ADC sample.
Definition at line 36 of file LArAccumulatedCalibDigit.cxx.
| float LArAccumulatedCalibDigit::mean | ( | const size_t | i | ) | const |
Calculates and returns the Mean value for one ADC sample.
Definition at line 15 of file LArAccumulatedCalibDigit.cxx.
|
inline |
|
inline |
Definition at line 168 of file LArAccumulatedCalibDigit.h.
|
inline |
| std::vector< float > LArAccumulatedCalibDigit::RMS | ( | ) | const |
Calculates and returns the RMS value of each ADC sample.
Definition at line 50 of file LArAccumulatedCalibDigit.cxx.
| float LArAccumulatedCalibDigit::RMS | ( | const size_t | i | ) | const |
Calculates and returns the RMS value for one ADC sample.
Definition at line 23 of file LArAccumulatedCalibDigit.cxx.
|
inline |
return a reference to a stl vector containing the sum of the squares of the sample
Definition at line 126 of file LArAccumulatedCalibDigit.h.
|
inline |
return a reference to a stl vector containing the sample-sums
Definition at line 123 of file LArAccumulatedCalibDigit.h.
| bool LArAccumulatedCalibDigit::setAddDigit | ( | const std::vector< short > & | samples | ) |
Sum up with another (individual) LArCalibDigit.
Definition at line 82 of file LArAccumulatedCalibDigit.cxx.
| bool LArAccumulatedCalibDigit::setAddSubStep | ( | const std::vector< uint64_t > & | sampleSum, |
| const std::vector< uint64_t > & | sample2Sum, | ||
| const uint32_t | nTriggerPerStep | ||
| ) |
| void LArAccumulatedCalibDigit::setSample2Sum | ( | const std::vector< uint64_t > & | sample2Sum | ) |
Set the sample2Sum.
Definition at line 77 of file LArAccumulatedCalibDigit.cxx.
| void LArAccumulatedCalibDigit::setSampleSum | ( | const std::vector< uint64_t > & | sampleSum | ) |
Set the sampleSum.
Definition at line 73 of file LArAccumulatedCalibDigit.cxx.
|
inline |
Definition at line 170 of file LArAccumulatedCalibDigit.h.
|
private |
DAC-Value.
Definition at line 65 of file LArAccumulatedCalibDigit.h.
|
private |
Delay-Value and isPulsed boolean encoded in this variable.
Definition at line 68 of file LArAccumulatedCalibDigit.h.
|
private |
gain
Definition at line 50 of file LArAccumulatedCalibDigit.h.
|
private |
Online Identifier.
Definition at line 47 of file LArAccumulatedCalibDigit.h.
|
private |
Definition at line 72 of file LArAccumulatedCalibDigit.h.
|
private |
Definition at line 70 of file LArAccumulatedCalibDigit.h.
|
private |
|
private |
vector of sample square sums
Definition at line 56 of file LArAccumulatedCalibDigit.h.
|
private |
vector of sample sums
Definition at line 53 of file LArAccumulatedCalibDigit.h.
1.8.18