22 #ifndef RAWDATA_RAWDIGIT_H 23 #define RAWDATA_RAWDIGIT_H 33 #include "RtypesCore.h" 105 ADCvector_t
const& adclist,
122 ADCvector_t&& adclist,
134 const ADCvector_t&
ADCs()
const;
140 short ADC(
int i)
const;
240 #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
ULong64_t Samples() const
Number of samples in the uncompressed ADC data.
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.
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.
ULong64_t fSamples
number of ticks of the clock
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?