All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
sbnd::crt::FEBData Class Reference

#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...
 

Detailed Description

Definition at line 21 of file FEBData.hh.

Constructor & Destructor Documentation

sbnd::crt::FEBData::FEBData ( )

Default constructor.

Definition at line 11 of file FEBData.cxx.

11  :
12  fMac5(0)
13  , fTs0(0)
14  , fTs1(0)
15  , fADC()
16  , fCoinc(0)
17  {}
uint16_t fMac5
ID of the FEB.
Definition: FEBData.hh:23
uint32_t fTs1
T1 counter.
Definition: FEBData.hh:25
uint32_t fTs0
T0 counter.
Definition: FEBData.hh:24
uint32_t fCoinc
ID of SiPM that fired the trigger.
Definition: FEBData.hh:27
adc_array_t fADC
32 ADC values, one per SiPM
Definition: FEBData.hh:26
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.

Parameters
mac5The ID of the CRT module (FEB).
ts0The value of the t0 counter.
ts1The value of the t1 counter.
ADCThe 32-size array with ADC values.
coincThe ID of the strip that fired the trigger.

Definition at line 19 of file FEBData.cxx.

19  :
20  fMac5(mac5)
21  , fTs0(ts0)
22  , fTs1(ts1)
23  , fADC(ADC)
24  , fCoinc(coinc)
25  {}
uint16_t fMac5
ID of the FEB.
Definition: FEBData.hh:23
uint32_t fTs1
T1 counter.
Definition: FEBData.hh:25
uint32_t fTs0
T0 counter.
Definition: FEBData.hh:24
adc_array_t ADC() const
Definition: FEBData.cxx:44
uint32_t fCoinc
ID of SiPM that fired the trigger.
Definition: FEBData.hh:27
adc_array_t fADC
32 ADC values, one per SiPM
Definition: FEBData.hh:26
sbnd::crt::FEBData::~FEBData ( )
virtual

Definition at line 27 of file FEBData.cxx.

27 {}

Member Function Documentation

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.

Returns
The ADC array of size 32 of this FEB data.

Definition at line 44 of file FEBData.cxx.

45  {
46  return fADC;
47  }
adc_array_t fADC
32 ADC values, one per SiPM
Definition: FEBData.hh:26
uint16_t sbnd::crt::FEBData::ADC ( size_t  sipmID) const

Returns the ACD counts from a certain sipm in the FEB board.

Parameters
sipmIDThe index of the sipm (0-31)
Returns
The ADC value for that sipm.

Definition at line 49 of file FEBData.cxx.

50  {
51  if (sipmID >= N_CH) {
52  throw cet::exception("sbnd::crt::FEBData") << "sipmID is out of limits.\n";
53  }
54 
55  return fADC[sipmID];
56  }
constexpr int N_CH
Dataproduct to store raw FEB data from the CRT.
Definition: FEBData.hh:15
adc_array_t fADC
32 ADC values, one per SiPM
Definition: FEBData.hh:26
uint32_t sbnd::crt::FEBData::Coinc ( ) const

Returns the ID of the sipm that fired the trigger.

Returns
The Coinc variable of this FEB data.

Definition at line 58 of file FEBData.cxx.

59  {
60  return fCoinc;
61  }
uint32_t fCoinc
ID of SiPM that fired the trigger.
Definition: FEBData.hh:27
uint16_t sbnd::crt::FEBData::Mac5 ( ) const

Returns the ID of the CRT module.

Returns
The MAC5 ID of this FEB data.

Definition at line 29 of file FEBData.cxx.

30  {
31  return fMac5;
32  }
uint16_t fMac5
ID of the FEB.
Definition: FEBData.hh:23
void sbnd::crt::FEBData::SetADC ( size_t  sipmID,
uint16_t  adc 
)

Adds ADC values on a certain sipm.

Parameters
sipmIDThe ID of the sipm in the module (0-31).
adcThe ADC value for this sipm.

Definition at line 78 of file FEBData.cxx.

79  {
80  if (sipmID >= N_CH) {
81  throw cet::exception("sbnd::crt::FEBData") << "sipmID is out of limits.\n";
82  }
83 
84  fADC[sipmID] = adc;
85  }
constexpr int N_CH
Dataproduct to store raw FEB data from the CRT.
Definition: FEBData.hh:15
adc_array_t fADC
32 ADC values, one per SiPM
Definition: FEBData.hh:26
void sbnd::crt::FEBData::SetCoinc ( uint32_t  coinc)

Setter method for coinc

Parameters
coincThe coinc values to set

Definition at line 87 of file FEBData.cxx.

88  {
89  fCoinc = coinc;
90  }
uint32_t fCoinc
ID of SiPM that fired the trigger.
Definition: FEBData.hh:27
void sbnd::crt::FEBData::SetMac5 ( uint16_t  mac5)

Setter method for Mac5

Parameters
mac5The mac5 to set.

Definition at line 63 of file FEBData.cxx.

64  {
65  fMac5 = mac5;
66  }
uint16_t fMac5
ID of the FEB.
Definition: FEBData.hh:23
void sbnd::crt::FEBData::SetTs0 ( uint32_t  ts0)

Setter method for Ts0

Parameters
ts0The ts0 value to set

Definition at line 68 of file FEBData.cxx.

69  {
70  fTs0 = ts0;
71  }
uint32_t fTs0
T0 counter.
Definition: FEBData.hh:24
void sbnd::crt::FEBData::SetTs1 ( uint32_t  ts1)

Setter method for Ts1

Parameters
ts1The ts1 value to set

Definition at line 73 of file FEBData.cxx.

74  {
75  fTs1 = ts1;
76  }
uint32_t fTs1
T1 counter.
Definition: FEBData.hh:25
uint32_t sbnd::crt::FEBData::Ts0 ( ) const

Returns the T0 time from the T0 counter.

Returns
The Ts0 of this FEB data.

Definition at line 34 of file FEBData.cxx.

35  {
36  return fTs0;
37  }
uint32_t fTs0
T0 counter.
Definition: FEBData.hh:24
uint32_t sbnd::crt::FEBData::Ts1 ( ) const

Returns the T1 time from the T1 counter.

Returns
The Ts1 of this FEB data.

Definition at line 39 of file FEBData.cxx.

40  {
41  return fTs1;
42  }
uint32_t fTs1
T1 counter.
Definition: FEBData.hh:25

Member Data Documentation

adc_array_t sbnd::crt::FEBData::fADC
private

32 ADC values, one per SiPM

Definition at line 26 of file FEBData.hh.

uint32_t sbnd::crt::FEBData::fCoinc
private

ID of SiPM that fired the trigger.

Definition at line 27 of file FEBData.hh.

uint16_t sbnd::crt::FEBData::fMac5
private

ID of the FEB.

Definition at line 23 of file FEBData.hh.

uint32_t sbnd::crt::FEBData::fTs0
private

T0 counter.

Definition at line 24 of file FEBData.hh.

uint32_t sbnd::crt::FEBData::fTs1
private

T1 counter.

Definition at line 25 of file FEBData.hh.


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