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 uint16_t * | GetData16 () const |
| const uint32_t * | GetData32 () const |
| const uint32_t * | GetData32 () const |
| const uint64_t * | GetData64 () const |
| const uint64_t * | GetData64 () const |
| int | GetSize () const |
| int | GetSize () const |
| int | GetType () const |
| int | GetType () const |
| std::string | GetName () const |
| std::string | GetName () const |
| void | Dump () |
| Dump the bank contents in an unstructured way. | |
| 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().
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 }

| 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.
00024 { return reinterpret_cast<const uint16_t*>(fData); }
| 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.
00027 { return reinterpret_cast<const uint32_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(), TMesytecData::TMesytecData(), TV1190Data::TV1190Data(), 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.
00030 { return reinterpret_cast<const uint64_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.
00036 {return fBankName;}
| std::string TGenericData::GetName | ( | ) | const [inline, inherited] |
Definition at line 36 of file TGenericData.hxx.
References TGenericData::fBankName.
Referenced by TGenericData::Dump(), TV792Data::Print(), TV1190Data::Print(), TMesytecData::Print(), and Print().
00036 {return fBankName;}

| int TGenericData::GetSize | ( | ) | const [inline, inherited] |
Definition at line 32 of file TGenericData.hxx.
References TGenericData::fSize.
00032 {return fSize;}
| 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;}
| 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().
1.6.1