Class for storing data from LeCroy 2249 module. More...
#include <TL2249Data.hxx>
Public Member Functions | |
TL2249Data (int bklen, int bktype, const char *name, void *pdata) | |
Constructor. | |
void | Print () |
Print the bank contents in a structured way. | |
std::vector< LADCMeasurement > & | GetMeasurements () |
Get the Vector of ADC Measurements. | |
const uint16_t * | GetData16 () const |
const uint32_t * | GetData32 () const |
const uint64_t * | GetData64 () const |
int | GetSize () const |
int | GetType () const |
std::string | GetName () const |
void | Dump () |
Dump the bank contents in an unstructured way. | |
Private Attributes | |
std::vector< LADCMeasurement > | fMeasurements |
Vector of ADC Measurements. |
Class for storing data from LeCroy 2249 module.
Definition at line 37 of file TL2249Data.hxx.
TL2249Data::TL2249Data | ( | int | bklen, | |
int | bktype, | |||
const char * | name, | |||
void * | pdata | |||
) |
Constructor.
Definition at line 5 of file TL2249Data.cxx.
References fMeasurements, TGenericData::GetData16(), and TGenericData::GetSize().
00005 : 00006 TGenericData(bklen, bktype, name, pdata) 00007 { 00008 00009 for(int i = 0; i < GetSize(); i++){ 00010 00011 uint32_t word = GetData16()[i]; 00012 fMeasurements.push_back(LADCMeasurement(i,word)); 00013 00014 } 00015 00016 }
void TGenericData::Dump | ( | ) | [inline, inherited] |
Dump the bank contents in an unstructured way.
Definition at line 39 of file TGenericData.hxx.
References TGenericData::GetData32(), TGenericData::GetName(), and TGenericData::GetSize().
Referenced by TGenericData::Print().
00039 { 00040 00041 std::cout << "Generic decoder for bank named " << GetName().c_str() << std::endl; 00042 for(int i = 0; i < GetSize(); i++){ 00043 std::cout << std::hex << "0x" << GetData32()[i] << std::dec << std::endl; 00044 } 00045 00046 }
const uint16_t* TGenericData::GetData16 | ( | ) | const [inline, inherited] |
Definition at line 24 of file TGenericData.hxx.
References TGenericData::fData.
Referenced by TL2249Data().
00024 { return reinterpret_cast<const uint16_t*>(fData); }
const uint32_t* TGenericData::GetData32 | ( | ) | const [inline, inherited] |
Definition at line 27 of file TGenericData.hxx.
References TGenericData::fData.
Referenced by TGenericData::Dump(), TV1720RawData::HandlUncompressedData(), TV1720RawData::HandlZLECompressedData(), TDT724RawData::TDT724RawData(), TMesytecData::TMesytecData(), TV1190Data::TV1190Data(), TV1720RawData::TV1720RawData(), TV1730DppData::TV1730DppData(), TV1730RawData::TV1730RawData(), and TV792Data::TV792Data().
00027 { return reinterpret_cast<const uint32_t*>(fData); }
const uint64_t* TGenericData::GetData64 | ( | ) | const [inline, inherited] |
Definition at line 30 of file TGenericData.hxx.
References TGenericData::fData.
Referenced by TAgilentHistograms::UpdateHistograms().
00030 { return reinterpret_cast<const uint64_t*>(fData); }
std::vector<LADCMeasurement>& TL2249Data::GetMeasurements | ( | ) | [inline] |
Get the Vector of ADC Measurements.
Definition at line 49 of file TL2249Data.hxx.
References fMeasurements.
Referenced by TL2249Histograms::UpdateHistograms().
00049 {return fMeasurements;}
std::string TGenericData::GetName | ( | ) | const [inline, inherited] |
Definition at line 36 of file TGenericData.hxx.
References TGenericData::fBankName.
Referenced by TGenericData::Dump(), TV792Data::Print(), TV1730RawData::Print(), TV1730DppData::Print(), TV1720RawData::Print(), TV1190Data::Print(), TMesytecData::Print(), Print(), and TDT724RawData::Print().
00036 {return fBankName;}
int TGenericData::GetSize | ( | ) | const [inline, inherited] |
Definition at line 32 of file TGenericData.hxx.
References TGenericData::fSize.
Referenced by TGenericData::Dump(), TL2249Data(), TMesytecData::TMesytecData(), TV1190Data::TV1190Data(), and TV792Data::TV792Data().
00032 {return fSize;}
int TGenericData::GetType | ( | ) | const [inline, inherited] |
Definition at line 34 of file TGenericData.hxx.
References TGenericData::fBankType.
00034 {return fBankType;}
void TL2249Data::Print | ( | ) | [virtual] |
Print the bank contents in a structured way.
Reimplemented from TGenericData.
Definition at line 18 of file TL2249Data.cxx.
References fMeasurements, and TGenericData::GetName().
00018 { 00019 00020 std::cout << "L2249 decoder for bank " << GetName().c_str() << std::endl; 00021 00022 for(int i = 0; i < (int)fMeasurements.size(); i++){ 00023 std::cout << "chan " << i << " meas = " << fMeasurements[i].GetMeasurement() << " " ; 00024 } 00025 std::cout << std::endl; 00026 00027 00028 00029 }
std::vector<LADCMeasurement> TL2249Data::fMeasurements [private] |
Vector of ADC Measurements.
Definition at line 55 of file TL2249Data.hxx.
Referenced by GetMeasurements(), Print(), and TL2249Data().