13 const uint16_t capIndex,
15 const uint32_t
data) {
21 const uint16_t capIndex,
23 const uint32_t
data) {
29 const uint16_t capIndex,
31 const uint32_t
data) {
117 const uint16_t capBlock,
118 const uint16_t capIndex,
121 : type_(
type), capBlock_(capBlock), capIndex_(capIndex), bx_(
bx), data_(
data) {}
125 if ((
data & 0x2000) != 0) {
126 return static_cast<int16_t
>(
data | 0xe000);
130 return static_cast<int16_t
>(
data & 0x1fff);
136 os <<
" L1GctInternHtMiss: htx=";
149 os <<
"; overflow set";
152 <<
", BX=" << rhs.
bx();
bool overflow() const
Get overflow.
static L1GctInternHtMiss emulatorMissHty(const int hty, const bool overFlow, const int16_t bx)
Named ctor for making missing Ht y component object from emulator.
int16_t convert14BitTwosCompTo16Bit(const uint16_t data) const
Converts 14-bit two's complement numbers to 16-bit two's complement (i.e. an int16_t) ...
~L1GctInternHtMiss()
destructor
std::ostream & operator<<(std::ostream &os, const L1GctInternHtMiss &rhs)
L1GctInternHtMissType
Enum for the variants of Internal HtMiss.
static L1GctInternHtMiss unpackerMissHtxHty(const uint16_t capBlock, const uint16_t capIndex, const int16_t bx, const uint32_t data)
Named ctor for making missing Ht x & y components object from unpacker raw data (wheel input)...
int16_t hty() const
Get Ht y-component.
static L1GctInternHtMiss unpackerMissHty(const uint16_t capBlock, const uint16_t capIndex, const int16_t bx, const uint32_t data)
Named ctor for making missing Ht y-component object from unpacker raw data.
static L1GctInternHtMiss emulatorJetMissHt(const int htx, const int hty, const bool overFlow, const int16_t bx)
Named ctor for making missing Ht x & y components object from emulator (jetFinder output)...
L1GctInternHtMiss::L1GctInternHtMissType type() const
'type' of object?
bool isThereHtx() const
Is there a valid Ht x-component stored?
static L1GctInternHtMiss emulatorMissHtx(const int htx, const bool overFlow, const int16_t bx)
Named ctor for making missing Ht x component object from emulator.
uint16_t capBlock() const
Get capture block.
static L1GctInternHtMiss emulatorMissHtxHty(const int htx, const int hty, const bool overFlow, const int16_t bx)
Named ctor for making missing Ht x & y components object from emulator (wheel input).
L1 GCT internal Ht Miss component(s) Ht_x and/or Ht_y.
uint32_t raw() const
Get the raw data.
int16_t bx() const
Get BX number.
bool isThereHty() const
Is there a valid Ht y-component stored?
int16_t htx() const
Get Ht x-component value.
char data[epos_bytes_allocation]
static L1GctInternHtMiss unpackerMissHtx(const uint16_t capBlock, const uint16_t capIndex, const int16_t bx, const uint32_t data)
Named ctor for making missing Ht x-component object from unpacker raw data.
uint16_t capIndex() const
Get index within capture block.
L1GctInternHtMiss()
default constructor (for vector initialisation etc.)