ROOTANA
TL2249Data.cxx
Go to the documentation of this file.
1 #include "TL2249Data.hxx"
2 
3 
4 /// Constructor
5 TL2249Data::TL2249Data(int bklen, int bktype, const char* name, void *pdata):
6  TGenericData(bklen, bktype, name, pdata)
7 {
8 
9  for(int i = 0; i < GetSize(); i++){
10 
11  uint32_t word = GetData16()[i];
12  fMeasurements.push_back(LADCMeasurement(i,word));
13 
14  }
15 
16 }
17 
19 
20  std::cout << "L2249 decoder for bank " << GetName().c_str() << std::endl;
21 
22  for(int i = 0; i < (int)fMeasurements.size(); i++){
23  std::cout << "chan " << i << " meas = " << fMeasurements[i].GetMeasurement() << " " ;
24  }
25  std::cout << std::endl;
26 
27 
28 
29 }
int GetSize() const
const uint16_t * GetData16() const
std::string GetName() const
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