ROOTANA
Loading...
Searching...
No Matches
TTRB3Data.hxx
Go to the documentation of this file.
1#ifndef TTRB3Data_hxx_seen
2#define TTRB3Data_hxx_seen
3
4#include <vector>
5
6#include "TGenericData.hxx"
7#include "TRB3Decoder.hxx"
8
9
10/// Container for data packets from TRB3.
11/// Uses the TRB3Decoder class.
12class TTRB3Data: public TGenericData {
13
14public:
15
16 /// Constructor
17 TTRB3Data(int bklen, int bktype, const char* name, void *pdata);
18
19 void Print();
20
22
23 /// Get the Vector of TDC Measurements.
24 std::vector<TrbTdcMeas>& GetMeasurements() {return decoder.GetMeasurements();}
25
26 /// Get Packet size
27 const uint32_t GetPacketSize(){return decoder.GetPacketSize();}
28 // Get sequence number
29 const uint32_t GetSeqNr(){return decoder.GetSeqNr();}
30 // Get run number
31 const uint32_t GetRunNr(){return decoder.GetRunNr();};
32 // Get year
33 const uint32_t GetYear(){return decoder.GetYear();};
34 // Get month
35 const uint32_t GetMonth(){return decoder.GetMonth();};
36 // Get day
37 const uint32_t GetDay(){return decoder.GetDay();};
38 // Get time; seconds since when???
39 const uint32_t GetTime(){return decoder.GetTime();};;
40
41 /// Get decoder
43
44
45private:
46
47 /// Vector of TDC Measurements.
48 std::vector<TrbTdcMeas> fMeasurements;
49
51
52};
53
54#endif
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
const uint32_t GetYear()
Definition TTRB3Data.hxx:33
TrbDecoder decoder
Definition TTRB3Data.hxx:50
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
std::vector< TrbTdcMeas > & GetMeasurements()
Get the Vector of TDC Measurements.
Definition TTRB3Data.hxx:24
TrbDecoder & GetDecoder()
Get decoder.
Definition TTRB3Data.hxx:42
std::vector< TrbTdcMeas > fMeasurements
Vector of TDC Measurements.
Definition TTRB3Data.hxx:48
Decoder for data packets from TRB3.
const uint32_t GetRunNr()
const uint32_t GetMonth()
const int GetNumberMeasurements()
const uint32_t GetTime()
std::vector< TrbTdcMeas > & GetMeasurements()
Get the Vector of TDC Measurements.
const uint32_t GetYear()
const uint32_t GetSeqNr()
const uint32_t GetPacketSize()
Get Packet size.
const uint32_t GetDay()