1 #ifndef TV1720RawData_hxx_seen
2 #define TV1720RawData_hxx_seen
33 if(i >= 0 && i < (
int)
fSamples.size())
140 TV1720RawData(
int bklen,
int bktype,
const char* name,
void *pdata);
TV1720RawChannel(int channel, bool iscompressed)
constructor
int GetNSamples() const
Get the ADC sample for a particular bin (for uncompressed data).
int IsEmpty() const
Returns true for objects with no ADC samples or ZLE pulses.
int fChannelNumber
Channel number.
std::vector< uint32_t > fWaveform
int GetNZlePulses() const
Get the number of ZLE pulses (for compressed data)
void AddADCSample(uint32_t sample)
bool IsZLECompressed() const
int GetADCSample(int i) const
Get the ADC sample for a particular bin (for uncompressed data).
TV1720RawZlePulse GetZlePulse(int i) const
Get the ZLE pulse (for compressed data.
std::vector< TV1720RawZlePulse > fZlePulses
int GetChannelNumber() const
bool fIsZLECompressed
Is ZLE compressed.
void AddZlePulse(TV1720RawZlePulse pulse)
void Print()
Print the bank contents in a structured way.
void HandlUncompressedData()
Helper method to handle uncompressed data.
uint32_t GetEventSize() const
Get the number of 32-bit words in bank.
void HandlZLECompressedData()
Helper method to handle ZLE compressed data.
std::vector< TV1720RawChannel > fMeasurements
Vector of V1720 measurements.
TV1720RawChannel GetChannelData(int i)
Get Channel Data.
TV1720RawData(int bklen, int bktype, const char *name, void *pdata)
Constructor.
int GetNChannels() const
Get Number of channels in this bank.
uint32_t fGlobalHeader0
The overall global headers.
uint32_t GetChannelMask() const
uint32_t GetEventCounter() const
Get event counter.
uint32_t GetTriggerTag() const
Get trigger tag.
bool IsZLECompressed() const
Is the V1720 data ZLE compressed?
Class to store information from a single V1720 ZLE pulse.
int GetSample(int i) const
Get the first bin for this pulse.
int GetNSamples() const
Get the number of samples.
int GetFirstBin() const
Get the first bin for this pulse.
std::vector< uint32_t > fSamples
The set of samples for this ZLE pulse.
int fFirstBin
The first bin for this ZLE pulse.
TV1720RawZlePulse(int firstBin, std::vector< uint32_t > samples)
Constructor.