21 #ifndef GAR_RAWDATA_RAWDIGIT_H 22 #define GAR_RAWDATA_RAWDIGIT_H 29 #include "RtypesCore.h" 76 typedef std::bitset<16> Flags_t;
106 ADCvector_t
const& adclist,
122 ADCvector_t&& adclist,
133 const ADCvector_t&
ADCs()
const;
139 short ADC(
int i)
const;
158 ULong64_t
Time()
const;
164 #endif // !__GCCXML__ 197 #endif // !__GCCXML__ 199 #endif // gar_RAWDATA_RAWDIGIT_H float Sigma() const
TODO: RMS of the pedestal level?
Channel_t Channel() const
DAQ channel this raw data was read from.
enum gar::raw::_compress Compress_t
size_t NADC() const
Number of elements in the compressed ADC sample vector.
float fPedestal
pedestal for this channel
gar::raw::Compress_t Compression() const
Compression algorithm selector.
float fSigma
sigma of the pedestal counts for this channel
ULong64_t Time() const
Timestmap.
const ADCvector_t & ADCs() const
Reference to the compressed ADC count vector.
short ADC(int i) const
ADC vector element number i; no decompression is applied.
void SetPedestal(float ped, float sigma=1.)
Set pedestal and its RMS (the latter is 0 by default)
std::vector< short > ADCvector_t
Type representing a (compressed) vector of ADC counts.
General GArSoft Utilities.
gar::raw::Compress_t fCompression
compression scheme used for the ADC vector
Channel_t fChannel
channel number in the readout
ULong64_t fSamples
number of ticks of the clock
RawDigit()
Default constructor: an empty raw digit with zeros put in for paraneters and an invalid channel...
std::vector< short > fADC
ADC readout per tick, before pedestal subtraction.
ULong64_t Samples() const
Number of samples in the uncompressed ADC data.
Collection of charge vs time digitized from a single readout channel.