ROOTANA
TL2249Data.hxx
Go to the documentation of this file.
1 #ifndef TL2249Data_hxx_seen
2 #define TL2249Data_hxx_seen
3 
4 #include <vector>
5 
6 #include "TGenericData.hxx"
7 
8 /// Class for each ADC measurement
9 /// For the definition of obscure variables see the LeCroy2249 manual.
11 
12  friend class TL2249Data;
13 
14 public:
15 
16  /// Get the ADC measurement
17  uint32_t GetMeasurement() const {return (adc_measurement_word & 0xfff);}
18 
19 
20 private:
21 
22  /// Fields to hold the header, measurement, trailer and error words.
24 
25  /// Constructor; need to pass in header and measurement.
26  LADCMeasurement(uint32_t header, uint32_t measurement):
27  adc_measurement_word(measurement){
28 
29  }
30 
31 
33 };
34 
35 
36 /// Class for storing data from LeCroy 2249 module
37 class TL2249Data: public TGenericData {
38 
39 
40 public:
41 
42  /// Constructor
43  TL2249Data(int bklen, int bktype, const char* name, void *pdata);
44 
45 
46  void Print();
47 
48  /// Get the Vector of ADC Measurements.
49  std::vector<LADCMeasurement>& GetMeasurements() {return fMeasurements;}
50 
51 
52 private:
53 
54  /// Vector of ADC Measurements.
55  std::vector<LADCMeasurement> fMeasurements;
56 
57 
58  /// Fields to hold the measurement
59 
60 };
61 
62 #endif
uint32_t GetMeasurement() const
Get the ADC measurement.
Definition: TL2249Data.hxx:17
LADCMeasurement(uint32_t header, uint32_t measurement)
Constructor; need to pass in header and measurement.
Definition: TL2249Data.hxx:26
uint32_t adc_measurement_word
Fields to hold the header, measurement, trailer and error words.
Definition: TL2249Data.hxx:23
Class for storing data from LeCroy 2249 module.
Definition: TL2249Data.hxx:37
std::vector< LADCMeasurement > & GetMeasurements()
Get the Vector of ADC Measurements.
Definition: TL2249Data.hxx:49
TL2249Data(int bklen, int bktype, const char *name, void *pdata)
Constructor.
Definition: TL2249Data.cxx:5
std::vector< LADCMeasurement > fMeasurements
Vector of ADC Measurements.
Definition: TL2249Data.hxx:55
void Print()
Print the bank contents in a structured way.
Definition: TL2249Data.cxx:18