ROOTANA
TTRB3Data.cxx
Go to the documentation of this file.
1 #include "TTRB3Data.hxx"
2 
3 #include <iostream>
4 
5 
6 
7 TTRB3Data::TTRB3Data(int bklen, int bktype, const char* name, void *pdata):
8  TGenericData(bklen, bktype, name, pdata), decoder(bklen,pdata,std::string(name),bktype)
9 {
10 
11 
12 };
13 
15 
16  std::cout << "TRB3 decoder for bank " << GetName().c_str() << std::endl;
17  std::cout << "Packet size: " << GetPacketSize() << std::endl;
18  std::cout << "Seq Number/Run Number: " << GetSeqNr()
19  << "/" << GetRunNr() << std::endl;
20  std::cout << "Date: " << GetYear() << "/" << GetMonth() << "/" << GetDay() << std::endl;
21  std::cout << "Time: " << GetTime() << std::endl;
22  std::cout << "Number of measurements: " << GetNumberMeasurements()
23  << std::endl;
24 
25 }
std::string GetName() const
const uint32_t GetPacketSize()
Get Packet size.
Definition: TTRB3Data.hxx:27
const uint32_t GetRunNr()
Definition: TTRB3Data.hxx:31
const uint32_t GetSeqNr()
Definition: TTRB3Data.hxx:29
const uint32_t GetTime()
Definition: TTRB3Data.hxx:39
const uint32_t GetMonth()
Definition: TTRB3Data.hxx:35
TTRB3Data(int bklen, int bktype, const char *name, void *pdata)
Constructor.
Definition: TTRB3Data.cxx:7
const uint32_t GetYear()
Definition: TTRB3Data.hxx:33
const int GetNumberMeasurements()
Definition: TTRB3Data.hxx:21
const uint32_t GetDay()
Definition: TTRB3Data.hxx:37
void Print()
Print the bank contents in a structured way.
Definition: TTRB3Data.cxx:14