#include <FEBData.hh>
Public Member Functions | |
FEBData () | |
FEBData (uint16_t mac5, uint32_t ts0, uint32_t ts1, adc_array_t ADC, uint32_t coinc) | |
virtual | ~FEBData () |
uint16_t | Mac5 () const |
uint32_t | Ts0 () const |
uint32_t | Ts1 () const |
adc_array_t | ADC () const |
uint16_t | ADC (size_t sipmID) const |
uint32_t | Coinc () const |
void | SetMac5 (uint16_t mac5) |
void | SetTs0 (uint32_t ts0) |
void | SetTs1 (uint32_t ts1) |
void | SetADC (size_t sipmID, uint16_t adc) |
void | SetCoinc (uint32_t coinc) |
Private Attributes | |
uint16_t | fMac5 |
ID of the FEB. More... | |
uint32_t | fTs0 |
T0 counter. More... | |
uint32_t | fTs1 |
T1 counter. More... | |
adc_array_t | fADC |
32 ADC values, one per SiPM More... | |
uint32_t | fCoinc |
ID of SiPM that fired the trigger. More... | |
Definition at line 21 of file FEBData.hh.
sbnd::crt::FEBData::FEBData | ( | ) |
Default constructor.
Definition at line 11 of file FEBData.cxx.
sbnd::crt::FEBData::FEBData | ( | uint16_t | mac5, |
uint32_t | ts0, | ||
uint32_t | ts1, | ||
adc_array_t | ADC, | ||
uint32_t | coinc | ||
) |
Returns the ID of the CRT module.
mac5 | The ID of the CRT module (FEB). |
ts0 | The value of the t0 counter. |
ts1 | The value of the t1 counter. |
ADC | The 32-size array with ADC values. |
coinc | The ID of the strip that fired the trigger. |
Definition at line 19 of file FEBData.cxx.
|
virtual |
Definition at line 27 of file FEBData.cxx.
adc_array_t sbnd::crt::FEBData::ADC | ( | ) | const |
Returns the array of ACD counts from the FEB board. 32 values are returned, one for each of the 32 SiPMs in one CRT module.
Definition at line 44 of file FEBData.cxx.
uint16_t sbnd::crt::FEBData::ADC | ( | size_t | sipmID | ) | const |
Returns the ACD counts from a certain sipm in the FEB board.
sipmID | The index of the sipm (0-31) |
Definition at line 49 of file FEBData.cxx.
uint32_t sbnd::crt::FEBData::Coinc | ( | ) | const |
Returns the ID of the sipm that fired the trigger.
Definition at line 58 of file FEBData.cxx.
uint16_t sbnd::crt::FEBData::Mac5 | ( | ) | const |
Returns the ID of the CRT module.
Definition at line 29 of file FEBData.cxx.
void sbnd::crt::FEBData::SetADC | ( | size_t | sipmID, |
uint16_t | adc | ||
) |
Adds ADC values on a certain sipm.
sipmID | The ID of the sipm in the module (0-31). |
adc | The ADC value for this sipm. |
Definition at line 78 of file FEBData.cxx.
void sbnd::crt::FEBData::SetCoinc | ( | uint32_t | coinc | ) |
Setter method for coinc
coinc | The coinc values to set |
Definition at line 87 of file FEBData.cxx.
void sbnd::crt::FEBData::SetMac5 | ( | uint16_t | mac5 | ) |
void sbnd::crt::FEBData::SetTs0 | ( | uint32_t | ts0 | ) |
void sbnd::crt::FEBData::SetTs1 | ( | uint32_t | ts1 | ) |
uint32_t sbnd::crt::FEBData::Ts0 | ( | ) | const |
Returns the T0 time from the T0 counter.
Definition at line 34 of file FEBData.cxx.
uint32_t sbnd::crt::FEBData::Ts1 | ( | ) | const |
Returns the T1 time from the T1 counter.
Definition at line 39 of file FEBData.cxx.
|
private |
32 ADC values, one per SiPM
Definition at line 26 of file FEBData.hh.
|
private |
ID of SiPM that fired the trigger.
Definition at line 27 of file FEBData.hh.
|
private |
ID of the FEB.
Definition at line 23 of file FEBData.hh.
|
private |
T0 counter.
Definition at line 24 of file FEBData.hh.
|
private |
T1 counter.
Definition at line 25 of file FEBData.hh.