22 #ifndef RAWDATA_RAWDIGIT_H 23 #define RAWDATA_RAWDIGIT_H 105 unsigned short samples,
106 ADCvector_t
const& adclist,
122 unsigned short samples,
123 ADCvector_t&& adclist,
135 const ADCvector_t&
ADCs()
const;
141 short ADC(
int i)
const;
147 unsigned short Samples()
const;
224 #endif // RAWDATA_RAWDIGIT_H float GetPedestal() const
std::vector< short > fADC
ADC readout per tick, before pedestal subtraction.
const ADCvector_t & ADCs() const
Reference to the compressed ADC count vector.
enum raw::_compress Compress_t
Collection of charge vs time digitized from a single readout channel.
short ADC(int i) const
ADC vector element number i; no decompression is applied.
float fSigma
sigma of the pedestal counts for this channel
ChannelID_t Channel() const
DAQ channel this raw data was read from.
std::vector< short > ADCvector_t
Type representing a (compressed) vector of ADC counts.
unsigned short Samples() const
Number of samples in the uncompressed ADC data.
size_t NADC() const
Number of elements in the compressed ADC sample vector.
Compress_t fCompression
compression scheme used for the ADC vector
RawDigit()
Default constructor: an empty raw digit.
raw::Compress_t Compression() const
Compression algorithm used to store the ADC counts.
void SetPedestal(float ped, float sigma=1.)
Set pedestal and its RMS (the latter is 0 by default)
float fPedestal
pedestal for this channel
ChannelID_t fChannel
channel number in the readout
unsigned int ChannelID_t
Type representing the ID of a readout channel.
float GetSigma() const
TODO RMS of the pedestal level?
unsigned short fSamples
number of ticks of the clock