VADCMeasurement Class Reference

#include <TV792Data.hxx>

Collaboration diagram for VADCMeasurement:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

Class for each TDC measurement For the definition of obscure variables see the CAEN V792 manual.

Definition at line 10 of file TV792Data.hxx.


Constructor & Destructor Documentation

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]

Member Function Documentation

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);}

Here is the caller graph for this function:

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);}

Here is the caller graph for this function:

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);}


Friends And Related Function Documentation

friend class TV792Data [friend]

Definition at line 12 of file TV792Data.hxx.


Member Data Documentation

Fields to hold the header, measurement, trailer and error words.

Definition at line 37 of file TV792Data.hxx.

Referenced by GetCrate().

Definition at line 38 of file TV792Data.hxx.

Referenced by GetChannel(), GetGeoAddress(), GetMeasurement(), IsOverFlow(), and IsUnderThreshold().


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

Generated on 12 Feb 2016 for ROOT Analyzer by  doxygen 1.6.1