22 #ifndef RAWDATA_RAWDIGIT_H
23 #define RAWDATA_RAWDIGIT_H
33 #include "RtypesCore.h"
78 typedef std::bitset<16> Flags_t;
142 short ADC(
int i)
const;
166 const Flags_t& Flags() const;
169 bool isSaturated() const;
171 // the unsigned long long thing is from std::bitset<> constructors
173 static const unsigned long long SaturationBit = 1ULL << fiSaturation;
176 static const unsigned long long DefaultFlags = 0ULL;
225 #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.
TString compression(pset.get< std::string >("CompressionType"))
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?