BmnRoot
Loading...
Searching...
No Matches
BmnAbstractTDCDigit.h
Go to the documentation of this file.
1#ifndef BMNABSTRACTTDCDIGIT_H
2#define BMNABSTRACTTDCDIGIT_H
3
4#include "TObject.h"
5
6class BmnAbstractTDCDigit : public TObject
7{
8 public:
9 BmnAbstractTDCDigit() = default;
10 BmnAbstractTDCDigit(uint32_t serial,
11 uint32_t channel,
12 int64_t timeSec,
13 int64_t timeNsec,
14 int16_t toa,
15 uint16_t tot);
16
17 virtual ~BmnAbstractTDCDigit() = default;
18
19 uint32_t GetSerial() const { return fSerial; }
20 uint32_t GetChannel() const { return fChannel; }
21 int64_t GetTimeSec() const { return fTimeSec; }
22 int64_t GetTimeNsec() const { return fTimeNsec; }
23 int16_t GetToa() const { return fToa; }
24 uint16_t GetTot() const { return fTot; }
25
26 void SetSerial(uint32_t v) { fSerial = v; }
27 void SetChannel(uint32_t v) { fChannel = v; }
28 void SetTimeSec(int64_t v) { fTimeSec = v; }
29 void SetTimeNsec(int64_t v) { fTimeNsec = v; }
30 void SetToa(int16_t v) { fToa = v; }
31 void SetTot(uint16_t v) { fTot = v; }
32
33 private:
34 uint32_t fSerial = 0;
35 uint32_t fChannel = 0;
36 int64_t fTimeSec = 0;
37 int64_t fTimeNsec = 0;
38 int16_t fToa = 0;
39 uint16_t fTot = 0;
40
41 ClassDef(BmnAbstractTDCDigit, 1);
42};
43
44#endif // BMNABSTRACTTDCDIGIT_H
__m128 v
Definition P4_F32vec4.h:1
BmnAbstractTDCDigit()=default
int64_t GetTimeSec() const
int64_t GetTimeNsec() const
void SetTot(uint16_t v)
uint32_t GetChannel() const
void SetChannel(uint32_t v)
void SetSerial(uint32_t v)
uint16_t GetTot() const
void SetTimeSec(int64_t v)
virtual ~BmnAbstractTDCDigit()=default
void SetTimeNsec(int64_t v)
uint32_t GetSerial() const