CDCChannelData.
More...
#include <CDCChannelData.h>
|
| CDCChannelData (int board, int ch, int len, int tot, int adc, int tdc, int tdc2) |
| Constructor of the class of the "2 hits" event.
|
|
| CDCChannelData (int board, int ch, int len, int tot, int adc, int tdc) |
| Constructor of the class of the "1 hit" event.
|
|
void | setTDC2ndHit (int tdc) |
| Set 2nd hit timing.
|
|
unsigned short | getChannel () const |
| Get the channel ID.
|
|
unsigned short | getBoard () const |
| Get the board ID.
|
|
unsigned short | getTDCCount () const |
| Get the TDC.
|
|
unsigned short | getTDCCount2ndHit () const |
| Get the 2nd TDC.
|
|
unsigned short | getADCCount () const |
| Get the ADC.
|
|
bool | is2ndHit () const |
| Get the flag of 2nd hit.
|
|
unsigned short | getDataLength () const |
| Get data length.
|
|
unsigned short | getTOT () const |
| Get time over threshold.
|
|
|
unsigned short | m_board |
| Board ID (0-300).
|
|
unsigned short | m_channel |
| Channel ID (0-47).
|
|
unsigned short | m_length |
| Data length.
|
|
unsigned short | m_tot |
| Time over threshold.
|
|
unsigned short | m_adc |
| FADC count.
|
|
unsigned short | m_tdc |
| TDC count.
|
|
unsigned short | m_tdc2 |
| TDC count of 2nd hit.
|
|
bool | m_f2ndHit |
| Flag for 2nd hit.
|
|
CDCChannelData.
CDC channel data contains the real data for 1 hit channel.
Definition at line 26 of file CDCChannelData.h.
◆ CDCChannelData() [1/3]
Definition at line 29 of file CDCChannelData.h.
29 : m_board(0), m_channel(0), m_length(0), m_tot(0),
30 m_adc(0), m_tdc(0), m_tdc2(0), m_f2ndHit(false) {}
◆ CDCChannelData() [2/3]
CDCChannelData |
( |
int | board, |
|
|
int | ch, |
|
|
int | len, |
|
|
int | tot, |
|
|
int | adc, |
|
|
int | tdc, |
|
|
int | tdc2 ) |
|
inline |
Constructor of the class of the "2 hits" event.
Definition at line 37 of file CDCChannelData.h.
39 {
40 m_board = board;
41 m_channel = ch;
42 m_length = len;
43 m_tot = tot;
44 m_adc = adc;
45 m_tdc = tdc;
46 m_tdc2 = tdc2;
47 m_f2ndHit = true;
48 }
◆ CDCChannelData() [3/3]
CDCChannelData |
( |
int | board, |
|
|
int | ch, |
|
|
int | len, |
|
|
int | tot, |
|
|
int | adc, |
|
|
int | tdc ) |
|
inline |
Constructor of the class of the "1 hit" event.
Definition at line 53 of file CDCChannelData.h.
55 {
56 m_board = board;
57 m_channel = ch;
58 m_length = len;
59 m_tot = tot;
60 m_adc = adc;
61 m_tdc = tdc;
62 m_tdc2 = 0;
63 m_f2ndHit = false;
64 }
◆ getADCCount()
unsigned short getADCCount |
( |
| ) |
const |
|
inline |
◆ getBoard()
unsigned short getBoard |
( |
| ) |
const |
|
inline |
Get the board ID.
Definition at line 86 of file CDCChannelData.h.
87 {
88 return m_board;
89 }
◆ getChannel()
unsigned short getChannel |
( |
| ) |
const |
|
inline |
Get the channel ID.
Definition at line 78 of file CDCChannelData.h.
79 {
80 return m_channel;
81 }
◆ getDataLength()
unsigned short getDataLength |
( |
| ) |
const |
|
inline |
Get data length.
Definition at line 128 of file CDCChannelData.h.
129 {
130 return m_length;
131 }
◆ getTDCCount()
unsigned short getTDCCount |
( |
| ) |
const |
|
inline |
◆ getTDCCount2ndHit()
unsigned short getTDCCount2ndHit |
( |
| ) |
const |
|
inline |
Get the 2nd TDC.
Definition at line 103 of file CDCChannelData.h.
104 {
105 return m_tdc2;
106 }
◆ getTOT()
unsigned short getTOT |
( |
| ) |
const |
|
inline |
Get time over threshold.
Definition at line 136 of file CDCChannelData.h.
137 {
138 return m_tot;
139 }
◆ is2ndHit()
Get the flag of 2nd hit.
true : 2 hit event, false : 1 hit event.
Definition at line 120 of file CDCChannelData.h.
121 {
122 return m_f2ndHit;
123 }
◆ setTDC2ndHit()
void setTDC2ndHit |
( |
int | tdc | ) |
|
|
inline |
Set 2nd hit timing.
Definition at line 69 of file CDCChannelData.h.
70 {
71 m_length += 2;
72 m_tdc2 = tdc;
73 m_f2ndHit = true;
74 }
◆ m_adc
◆ m_board
◆ m_channel
◆ m_f2ndHit
◆ m_length
◆ m_tdc
◆ m_tdc2
◆ m_tot
The documentation for this class was generated from the following file: