ROOTANA
Loading...
Searching...
No Matches
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
14public:
15
16 /// Get the ADC measurement
17 uint32_t GetMeasurement() const {return (adc_measurement_word & 0xfff);}
18
19
20private:
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
37class TL2249Data: public TGenericData {
38
39
40public:
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
52private:
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.
LADCMeasurement(uint32_t header, uint32_t measurement)
Constructor; need to pass in header and measurement.
uint32_t adc_measurement_word
Fields to hold the header, measurement, trailer and error words.
Class for storing data from LeCroy 2249 module.
std::vector< LADCMeasurement > fMeasurements
Vector of ADC Measurements.
std::vector< LADCMeasurement > & GetMeasurements()
Get the Vector of ADC Measurements.
void Print()
Print the bank contents in a structured way.