#include <TV792Data.hxx>
Public Member Functions | |
uint32_t | GetMeasurement () const |
Get the ADC measurement. | |
uint32_t | GetGeoAddress () const |
Get GEO address. | |
uint32_t | GetCrate () const |
Get the crate number. | |
uint32_t | GetChannel () const |
Get the channel number. | |
bool | IsUnderThreshold () const |
Is Under Threshold? | |
bool | IsOverFlow () const |
Is OverFlow? | |
Private Member Functions | |
VADCMeasurement (uint32_t header, uint32_t measurement) | |
Constructor; need to pass in header and measurement. | |
VADCMeasurement () | |
Private Attributes | |
uint32_t | adc_header_word |
Fields to hold the header, measurement, trailer and error words. | |
uint32_t | adc_measurement_word |
Friends | |
class | TV792Data |
Class for each TDC measurement For the definition of obscure variables see the CAEN V792 manual.
Definition at line 10 of file TV792Data.hxx.
VADCMeasurement::VADCMeasurement | ( | uint32_t | header, | |
uint32_t | measurement | |||
) | [inline, private] |
Constructor; need to pass in header and measurement.
Definition at line 41 of file TV792Data.hxx.
00041 : 00042 adc_header_word(header), 00043 adc_measurement_word(measurement){ 00044 00045 }
VADCMeasurement::VADCMeasurement | ( | ) | [private] |
uint32_t VADCMeasurement::GetChannel | ( | ) | const [inline] |
Get the channel number.
Definition at line 26 of file TV792Data.hxx.
References adc_measurement_word.
Referenced by TComplicatedExampleCanvas::UpdateCanvasHistograms().
00026 {return ((adc_measurement_word & 0x1f0000) >> 16);}
uint32_t VADCMeasurement::GetCrate | ( | ) | const [inline] |
Get the crate number.
Definition at line 23 of file TV792Data.hxx.
References adc_header_word.
00023 {return ((adc_header_word & 0xff0000) >> 16);}
uint32_t VADCMeasurement::GetGeoAddress | ( | ) | const [inline] |
Get GEO address.
Definition at line 20 of file TV792Data.hxx.
References adc_measurement_word.
00020 {return ((adc_measurement_word & 0xf8000000) >> 27);}
uint32_t VADCMeasurement::GetMeasurement | ( | ) | const [inline] |
Get the ADC measurement.
Definition at line 17 of file TV792Data.hxx.
References adc_measurement_word.
Referenced by TComplicatedExampleCanvas::UpdateCanvasHistograms().
00017 {return (adc_measurement_word & 0xfff);}
bool VADCMeasurement::IsOverFlow | ( | ) | const [inline] |
Is OverFlow?
Definition at line 32 of file TV792Data.hxx.
References adc_measurement_word.
00032 {return ((adc_measurement_word & 0x1000) == 0x1000);}
bool VADCMeasurement::IsUnderThreshold | ( | ) | const [inline] |
Is Under Threshold?
Definition at line 29 of file TV792Data.hxx.
References adc_measurement_word.
00029 {return ((adc_measurement_word & 0x2000) == 0x2000);}
friend class TV792Data [friend] |
Definition at line 12 of file TV792Data.hxx.
uint32_t VADCMeasurement::adc_header_word [private] |
Fields to hold the header, measurement, trailer and error words.
Definition at line 37 of file TV792Data.hxx.
Referenced by GetCrate().
uint32_t VADCMeasurement::adc_measurement_word [private] |
Definition at line 38 of file TV792Data.hxx.
Referenced by GetChannel(), GetGeoAddress(), GetMeasurement(), IsOverFlow(), and IsUnderThreshold().