1#ifndef TGenericData_hxx_seen
2#define TGenericData_hxx_seen
24 const uint16_t*
GetData16()
const {
return reinterpret_cast<const uint16_t*
>(
fData); }
27 const uint32_t*
GetData32()
const {
return reinterpret_cast<const uint32_t*
>(
fData); }
30 const uint64_t*
GetData64()
const {
return reinterpret_cast<const uint64_t*
>(
fData); }
33 const float*
GetFloat()
const {
return reinterpret_cast<const float*
>(
fData); }
36 const double*
GetDouble()
const {
return reinterpret_cast<const double*
>(
fData); }
39 const char*
GetChar()
const {
return reinterpret_cast<const char*
>(
fData); }
51 std::cout <<
"Generic decoder for bank named " <<
GetName().c_str() << std::endl;
52 for(
int i = 0; i <
GetSize(); i++){
53 std::cout << std::hex <<
"0x" <<
GetData32()[i] << std::dec << std::endl;
const char * GetChar() const
const uint64_t * GetData64() const
std::string fBankName
Bank name.
const uint16_t * GetData16() const
virtual void Print()
Print the bank contents in a structured way.
int fBankType
Bank data type (MIDAS TID_xxx).
const float * GetFloat() const
TGenericData(int bklen, int bktype, const char *name, void *pdata)
int fSize
Size of the bank (in what units?)
std::string GetName() const
void Dump()
Dump the bank contents in an unstructured way.
const uint32_t * GetData32() const
const double * GetDouble() const