Belle II Software development
CDCChannelData Class Reference

CDCChannelData. More...

#include <CDCChannelData.h>

Public Member Functions

 CDCChannelData (int board, int ch, int len, int tot, int adc, int tdc, int tdc2)
 Constructor of the class fo the "2 hits" event.
 
 CDCChannelData (int board, int ch, int len, int tot, int adc, int tdc)
 Constructor of the class fo 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.
 

Private Attributes

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.
 

Detailed Description

CDCChannelData.

CDC channel data contains the real data for 1 hit channel.

Definition at line 26 of file CDCChannelData.h.

Constructor & Destructor Documentation

◆ CDCChannelData() [1/3]

CDCChannelData ( )
inline

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) {}
unsigned short m_length
Data length.
unsigned short m_tdc2
TDC count of 2nd hit.
unsigned short m_tdc
TDC count.
unsigned short m_adc
FADC count.
unsigned short m_channel
Channel ID (0-47).
bool m_f2ndHit
Flag for 2nd hit.
unsigned short m_tot
Time over threshold.
unsigned short m_board
Board ID (0-300).

◆ CDCChannelData() [2/3]

CDCChannelData ( int  board,
int  ch,
int  len,
int  tot,
int  adc,
int  tdc,
int  tdc2 
)
inline

Constructor of the class fo 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 fo 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 }

Member Function Documentation

◆ getADCCount()

unsigned short getADCCount ( ) const
inline

Get the ADC.

Definition at line 111 of file CDCChannelData.h.

112 {
113 return m_adc;
114 }

◆ 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

Get the TDC.

Definition at line 95 of file CDCChannelData.h.

96 {
97 return m_tdc;
98 }

◆ 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()

bool is2ndHit ( ) const
inline

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 }

Member Data Documentation

◆ m_adc

unsigned short m_adc
private

FADC count.

Definition at line 166 of file CDCChannelData.h.

◆ m_board

unsigned short m_board
private

Board ID (0-300).

Definition at line 146 of file CDCChannelData.h.

◆ m_channel

unsigned short m_channel
private

Channel ID (0-47).

Definition at line 151 of file CDCChannelData.h.

◆ m_f2ndHit

bool m_f2ndHit
private

Flag for 2nd hit.

Definition at line 181 of file CDCChannelData.h.

◆ m_length

unsigned short m_length
private

Data length.

Definition at line 156 of file CDCChannelData.h.

◆ m_tdc

unsigned short m_tdc
private

TDC count.

Definition at line 171 of file CDCChannelData.h.

◆ m_tdc2

unsigned short m_tdc2
private

TDC count of 2nd hit.

Definition at line 176 of file CDCChannelData.h.

◆ m_tot

unsigned short m_tot
private

Time over threshold.

Definition at line 161 of file CDCChannelData.h.


The documentation for this class was generated from the following file: