TV1720RawChannel Class Reference

#include <TV1720RawData.h>

Collaboration diagram for TV1720RawChannel:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 TV1720RawChannel (int channel, bool iscompressed)
 constructor
int GetChannelNumber () const
bool IsZLECompressed () const
int GetNSamples () const
 Get the ADC sample for a particular bin (for uncompressed data).
int GetADCSample (int i) const
 Get the ADC sample for a particular bin (for uncompressed data).
int GetNZlePulses () const
 Get the number of ZLE pulses (for compressed data).
TV1720RawZlePulse GetZlePulse (int i) const
 Get the ZLE pulse (for compressed data.
int IsEmpty () const
 Returns true for objects with no ADC samples or ZLE pulses.
void AddADCSample (uint32_t sample)
void AddZlePulse (TV1720RawZlePulse pulse)

Private Attributes

int fChannelNumber
 Channel number.
bool fIsZLECompressed
 Is ZLE compressed.
std::vector< TV1720RawZlePulsefZlePulses
std::vector< uint32_t > fWaveform

Detailed Description

Class to store information from a single V1720 channel. Class will store either the full ADC waveform (if not compressed) or a vector of TV1720RawZlePulse (if compressed).

Definition at line 53 of file TV1720RawData.h.


Constructor & Destructor Documentation

TV1720RawChannel::TV1720RawChannel ( int  channel,
bool  iscompressed 
) [inline]

constructor

Definition at line 58 of file TV1720RawData.h.

00058                                                  : 
00059   fChannelNumber(channel),fIsZLECompressed(iscompressed){
00060       
00061   }


Member Function Documentation

void TV1720RawChannel::AddADCSample ( uint32_t  sample  )  [inline]

Add an ADC sample Warning: this method just adds an ADC sample to the back of the vector. Must add in order and must not add any sample twice.

Definition at line 106 of file TV1720RawData.h.

References fWaveform.

Referenced by TV1720RawData::HandlUncompressedData().

00106 { fWaveform.push_back(sample);};

Here is the caller graph for this function:

void TV1720RawChannel::AddZlePulse ( TV1720RawZlePulse  pulse  )  [inline]

Add an ZLE pulse Warning: this method just adds a ZLE pulse to the back of the vector. Must add in order and must not add any pulse twice.

Definition at line 111 of file TV1720RawData.h.

Referenced by TV1720RawData::HandlZLECompressedData().

00111 { fZlePulses.push_back(pulse);};

Here is the caller graph for this function:

int TV1720RawChannel::GetADCSample ( int  i  )  const [inline]

Get the ADC sample for a particular bin (for uncompressed data).

Definition at line 74 of file TV1720RawData.h.

References fWaveform.

Referenced by TV1720Waveform::UpdateHistograms().

00074                                {
00075     if(i >= 0 && i < (int)fWaveform.size())
00076       return fWaveform[i];
00077 
00078     // otherwise, return error value.
00079     return -1;
00080   }

Here is the caller graph for this function:

int TV1720RawChannel::GetChannelNumber (  )  const [inline]

Definition at line 64 of file TV1720RawData.h.

References fChannelNumber.

Referenced by TV1720RawData::Print().

00064 {return fChannelNumber;};

Here is the caller graph for this function:

int TV1720RawChannel::GetNSamples (  )  const [inline]

Get the ADC sample for a particular bin (for uncompressed data).

Definition at line 71 of file TV1720RawData.h.

References fWaveform.

Referenced by TV1720Waveform::UpdateHistograms().

00071 {return fWaveform.size();};

Here is the caller graph for this function:

int TV1720RawChannel::GetNZlePulses (  )  const [inline]

Get the number of ZLE pulses (for compressed data).

Definition at line 83 of file TV1720RawData.h.

References fZlePulses.

Referenced by TV1720RawData::Print(), and TV1720Waveform::UpdateHistograms().

00083 {return fZlePulses.size();};

Here is the caller graph for this function:

TV1720RawZlePulse TV1720RawChannel::GetZlePulse ( int  i  )  const [inline]

Get the ZLE pulse (for compressed data.

Definition at line 87 of file TV1720RawData.h.

References fZlePulses.

Referenced by TV1720RawData::Print(), and TV1720Waveform::UpdateHistograms().

00087                                              { 
00088     if(i >= 0 && i < (int)fZlePulses.size())
00089       return fZlePulses[i];
00090 
00091     // otherwise, return error value.
00092     return TV1720RawZlePulse();
00093 
00094   }

Here is the caller graph for this function:

int TV1720RawChannel::IsEmpty (  )  const [inline]

Returns true for objects with no ADC samples or ZLE pulses.

Definition at line 97 of file TV1720RawData.h.

References fWaveform, and fZlePulses.

00097                       {
00098     if(fZlePulses.size()==0 && fWaveform.size()==0)
00099       return true;
00100     return false;
00101   }

bool TV1720RawChannel::IsZLECompressed (  )  const [inline]

Definition at line 67 of file TV1720RawData.h.

References fIsZLECompressed.

00067 {return fIsZLECompressed;};


Member Data Documentation

Channel number.

Definition at line 111 of file TV1720RawData.h.

Referenced by GetChannelNumber().

Is ZLE compressed.

Definition at line 120 of file TV1720RawData.h.

Referenced by IsZLECompressed().

std::vector<uint32_t> TV1720RawChannel::fWaveform [private]

Definition at line 123 of file TV1720RawData.h.

Referenced by AddADCSample(), GetADCSample(), GetNSamples(), and IsEmpty().

Definition at line 122 of file TV1720RawData.h.

Referenced by GetNZlePulses(), GetZlePulse(), and IsEmpty().


The documentation for this class was generated from the following file:

Generated on 12 Feb 2016 for ROOT Analyzer by  doxygen 1.6.1