![]() |
Project
|
Information stored in the RCU trailer. More...
#include <RCUTrailer.h>
Classes | |
class | Error |
Error handling of the. More... | |
Public Member Functions | |
RCUTrailer ()=default | |
Constructor. | |
RCUTrailer (const gsl::span< const uint32_t > payloadwords) | |
~RCUTrailer ()=default | |
destructor | |
void | reset () |
Reset the RCU trailer. | |
void | printStream (std::ostream &stream) const |
Prints the contents of the RCU trailer data. | |
void | constructFromRawPayload (const gsl::span< const uint32_t > payloadwords) |
Decode RCU trailer from the 32-bit words in the raw buffer. | |
unsigned int | getFECErrorsA () const |
unsigned int | getFECErrorsB () const |
unsigned short | getErrorsG2 () const |
unsigned int | getErrorsG3 () const |
unsigned short | getActiveFECsA () const |
unsigned short | getActiveFECsB () const |
unsigned int | getAltroCFGReg1 () const |
unsigned int | getAltroCFGReg2 () const |
int | getRCUID () const |
unsigned int | getTrailerSize () const |
unsigned int | getPayloadSize () const |
unsigned char | getFirmwareVersion () const |
unsigned short | getNumberOfChannelAddressMismatch () const |
unsigned short | getNumberOfChannelLengthMismatch () const |
unsigned char | getBaselineCorrection () const |
bool | getPolarity () const |
unsigned char | getNumberOfPresamples () const |
unsigned char | getNumberOfPostsamples () const |
bool | hasSecondBaselineCorr () const |
unsigned char | getGlitchFilter () const |
unsigned char | getNumberOfNonZeroSuppressedPostsamples () const |
unsigned char | getNumberOfNonZeroSuppressedPresamples () const |
bool | hasZeroSuppression () const |
bool | getNumberOfAltroBuffers () const |
unsigned char | getNumberOfPretriggerSamples () const |
unsigned short | getNumberOfSamplesPerChannel () const |
bool | isSparseReadout () const |
double | getTimeSample () const |
Access to the sampling time. | |
void | setTimeSample (double timesample) |
set time sample | |
double | getL1Phase () const |
Access to the L1 phase. | |
void | setL1Phase (double l1phase) |
Set the L1 phase. | |
void | setFECErrorsA (unsigned int value) |
void | setFECErrorsB (unsigned int value) |
void | setErrorsG2 (unsigned short value) |
void | setErrorsG3 (unsigned int value) |
void | setActiveFECsA (unsigned short value) |
void | setActiveFECsB (unsigned short value) |
void | setAltroCFGReg1 (unsigned int value) |
void | setAltroCFGReg2 (unsigned int value) |
void | setFirmwareVersion (unsigned char version) |
void | setPayloadSize (unsigned int size) |
bool | isInitialized () const |
checlks whether the RCU trailer is initialzied | |
std::vector< uint32_t > | encode () const |
Static Public Member Functions | |
static RCUTrailer | constructFromPayloadWords (const gsl::span< const uint32_t > payloadwords) |
Information stored in the RCU trailer.
The RCU trailer can be found at the end of the payload and contains general information sent by the SRU.
Definition at line 55 of file RCUTrailer.h.
|
default |
Constructor.
RCUTrailer::RCUTrailer | ( | const gsl::span< const uint32_t > | payloadwords | ) |
Definition at line 21 of file RCUTrailer.cxx.
|
default |
destructor
|
static |
Definition at line 239 of file RCUTrailer.cxx.
void RCUTrailer::constructFromRawPayload | ( | const gsl::span< const uint32_t > | payloadwords | ) |
Decode RCU trailer from the 32-bit words in the raw buffer.
buffer | Raw buffer from which to read the trailer |
Read the RCU trailer according to the RCU formware version specified in CDH.
Definition at line 43 of file RCUTrailer.cxx.
std::vector< uint32_t > RCUTrailer::encode | ( | ) | const |
Definition at line 167 of file RCUTrailer.cxx.
|
inline |
Definition at line 124 of file RCUTrailer.h.
|
inline |
Definition at line 125 of file RCUTrailer.h.
|
inline |
Definition at line 126 of file RCUTrailer.h.
|
inline |
Definition at line 127 of file RCUTrailer.h.
|
inline |
Definition at line 135 of file RCUTrailer.h.
|
inline |
Definition at line 122 of file RCUTrailer.h.
|
inline |
Definition at line 123 of file RCUTrailer.h.
|
inline |
Definition at line 120 of file RCUTrailer.h.
|
inline |
Definition at line 121 of file RCUTrailer.h.
|
inline |
Definition at line 131 of file RCUTrailer.h.
|
inline |
Definition at line 140 of file RCUTrailer.h.
double RCUTrailer::getL1Phase | ( | ) | const |
Access to the L1 phase.
Definition at line 151 of file RCUTrailer.cxx.
|
inline |
Definition at line 144 of file RCUTrailer.h.
|
inline |
Definition at line 133 of file RCUTrailer.h.
|
inline |
Definition at line 134 of file RCUTrailer.h.
|
inline |
Definition at line 141 of file RCUTrailer.h.
|
inline |
Definition at line 142 of file RCUTrailer.h.
|
inline |
Definition at line 138 of file RCUTrailer.h.
|
inline |
Definition at line 137 of file RCUTrailer.h.
|
inline |
Definition at line 145 of file RCUTrailer.h.
|
inline |
Definition at line 146 of file RCUTrailer.h.
|
inline |
Definition at line 130 of file RCUTrailer.h.
|
inline |
Definition at line 136 of file RCUTrailer.h.
|
inline |
Definition at line 128 of file RCUTrailer.h.
double RCUTrailer::getTimeSample | ( | ) | const |
Access to the sampling time.
Error | if the RCU trailer was not properly initializied |
Definition at line 112 of file RCUTrailer.cxx.
|
inline |
Definition at line 129 of file RCUTrailer.h.
|
inline |
Definition at line 139 of file RCUTrailer.h.
|
inline |
Definition at line 143 of file RCUTrailer.h.
|
inline |
checlks whether the RCU trailer is initialzied
Definition at line 179 of file RCUTrailer.h.
|
inline |
Definition at line 147 of file RCUTrailer.h.
void RCUTrailer::printStream | ( | std::ostream & | stream | ) | const |
Prints the contents of the RCU trailer data.
stream | stream the trailer has to be put on |
Definition at line 185 of file RCUTrailer.cxx.
void RCUTrailer::reset | ( | ) |
Definition at line 170 of file RCUTrailer.h.
Definition at line 171 of file RCUTrailer.h.
Definition at line 172 of file RCUTrailer.h.
Definition at line 173 of file RCUTrailer.h.
Definition at line 168 of file RCUTrailer.h.
Definition at line 169 of file RCUTrailer.h.
Definition at line 166 of file RCUTrailer.h.
Definition at line 167 of file RCUTrailer.h.
Definition at line 174 of file RCUTrailer.h.
void RCUTrailer::setL1Phase | ( | double | l1phase | ) |
Definition at line 175 of file RCUTrailer.h.
void RCUTrailer::setTimeSample | ( | double | timesample | ) |
set time sample
timesample | Time sample (in ns) |
Definition at line 136 of file RCUTrailer.cxx.