12#include <framework/datastore/RelationsObject.h>
15#include <klm/rawdata/RawData.h>
49 KLMDigitRaw(
int copper,
int slot, uint16_t word1, uint16_t word2,
50 uint16_t word3, uint16_t word4):
Class to store the raw words from the unpacker, digit-by-digit.
int getSlot() const
Get slot number.
int getCopper() const
Get copper identifier.
int m_Copper
Copper identifier.
uint16_t getTdc()
Get TDC.
KLMDigitRaw()
Default constructor.
uint16_t getTriggerBits()
Get trigger bits.
uint16_t m_word3
Third (of four) raw-data words (contains lane number).
uint16_t getFEStatus()
Get FE.
uint16_t getWord1() const
Get the first (of four) raw words.
uint16_t getFlag() const
Get the status flag.
uint16_t getWord3() const
Get the third (of four) raw words.
KLMDigitRaw(int copper, int slot, uint16_t word1, uint16_t word2, uint16_t word3, uint16_t word4)
Explicit constructor.
uint16_t getUnusedBits()
Get unused bits from the fourth word.
uint16_t getWord2() const
Get the second (of four) raw words.
uint16_t m_word2
Second (of four) raw-data words (contains view/axis/plane).
uint16_t getChannel() const
Get the channel number.
uint16_t getWord4() const
Get the fourth (of four) raw words.
ClassDef(KLMDigitRaw, 2)
Class version.
uint16_t getLane() const
Get the lane number.
uint16_t getCharge()
Get charge.
uint16_t m_word4
Fourth (of four) raw-data words (contains status flag).
uint16_t getCtime() const
Get CTIME.
uint16_t m_word1
First (of four) raw-data words (contains channel number).
uint16_t getAxis() const
Get the view (= axis = plane) number.
static uint16_t unpackFE(uint16_t raw)
Unpack feature-extraction bit.
static uint16_t unpackTDC(uint16_t raw)
Unpack TDC.
static uint16_t unpackType(uint16_t raw)
Unpack packet type.
static uint16_t unpackChannel(uint16_t raw)
Unpack channel.
static uint16_t unpackCharge(uint16_t raw)
Unpack charge.
static uint16_t unpackCTime(uint16_t raw)
Unpack CTIME.
static uint16_t unpackLane(uint16_t raw)
Unpack lane.
static uint16_t unpackTriggerBits(uint16_t raw)
Unpack trigger bits.
static uint16_t unpackAxis(uint16_t raw)
Unpack axis.
Defines interface for accessing relations of objects in StoreArray.
Abstract base class for different kinds of events.