![]() |
Project
|
ALTRO channel representation. More...
#include <Channel.h>
Classes | |
class | HardwareAddressError |
Handling of uninitialized hardware addresses. More... | |
Public Member Functions | |
Channel ()=default | |
Dummy constructor. | |
Channel (int32_t hardwareAddress, uint8_t payloadSize) | |
Constructor initializing hardware address and payload size. | |
~Channel ()=default | |
Destructor. | |
bool | isBadChannel () const |
Check whether the channel is bad. | |
uint16_t | getHardwareAddress () const |
Get the full hardware address. | |
uint16_t | getPayloadSize () const |
Get the size of the payload. | |
const std::vector< Bunch > & | getBunches () const |
Get list of bunches in the channel. | |
int | getBranchIndex () const |
Provide the branch index for the current hardware address. | |
int | getFECIndex () const |
Provide the front-end card index (0-9) in branch for the current hardware address. | |
int | getAltroIndex () const |
Provide the altro chip index for the current hardware address. | |
int | getChannelIndex () const |
Provide the channel index for the current hardware address. | |
void | addBunch (const Bunch &bunch) |
Add bunch to the channel. | |
void | setHardwareAddress (uint16_t hardwareAddress) |
Set the hardware address. | |
void | setPayloadSize (uint8_t payloadSize) |
Set the size of the payload in number of 10-bit words. | |
void | setBadChannel (bool badchannel) |
Mark the channel status. | |
Bunch & | createBunch (uint8_t bunchlength, uint8_t starttime) |
Create and initialize a new bunch and return reference to it. | |
Static Public Member Functions | |
static int | getHardwareAddressFromChannelHeader (int channelheader) |
Extrcting hardware address from the channel header word. | |
static int | getPayloadSizeFromChannelHeader (int channelheader) |
Extrcting payload size from the channel header word. | |
static int | getBranchIndexFromHwAddress (int hwaddress) |
Extracting branch index from the hardware address. | |
static int | getFecIndexFromHwAddress (int hwaddress) |
Extracting FEC index in branch from the hardware address. | |
static int | getAltroIndexFromHwAddress (int hwaddress) |
Extracting ALTRO index from the hardware address. | |
static int | getChannelIndexFromHwAddress (int hwaddress) |
Extracting Channel index in FEC from the hardware address. | |
ALTRO channel representation.
The channel contains information about a hardware channel in the raw stream. Those information are:
The hardware address itself encods
|
default |
Dummy constructor.
|
inline |
|
default |
Destructor.
Bunch & Channel::createBunch | ( | uint8_t | bunchlength, |
uint8_t | starttime | ||
) |
Create and initialize a new bunch and return reference to it.
bunchlength | Length of the bunch |
starttime | Start time of the bunch |
Definition at line 47 of file Channel.cxx.
Int_t Channel::getAltroIndex | ( | ) | const |
Provide the altro chip index for the current hardware address.
HadrwareAddressError | in case the hardware address is not initialized |
Definition at line 31 of file Channel.cxx.
int Channel::getBranchIndex | ( | ) | const |
Provide the branch index for the current hardware address.
HadrwareAddressError | in case the hardware address is not initialized |
Definition at line 15 of file Channel.cxx.
|
inline |
Int_t Channel::getChannelIndex | ( | ) | const |
Provide the channel index for the current hardware address.
HadrwareAddressError | in case the hardware address is not initialized |
Definition at line 39 of file Channel.cxx.
int Channel::getFECIndex | ( | ) | const |
Provide the front-end card index (0-9) in branch for the current hardware address.
HadrwareAddressError | in case the hardware address is not initialized |
Definition at line 23 of file Channel.cxx.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |