L1 GCT internal Ht Miss component(s) Ht_x and/or Ht_y. More...
#include <L1GctInternHtMiss.h>
Public Types | |
enum | L1GctInternHtMissType { nulltype, miss_htx, miss_hty, miss_htx_and_hty, jf_miss_htx_and_hty } |
Enum for the variants of Internal HtMiss. More... | |
enum | numberOfBits { kJetMissHtNBits = 12, kMissHxAndHyNBits = 14, kMissHxOrHyNBits = 16 } |
Public Member Functions | |
int16_t | bx () const |
Get BX number. More... | |
uint16_t | capBlock () const |
Get capture block. More... | |
uint16_t | capIndex () const |
Get index within capture block. More... | |
int16_t | htx () const |
Get Ht x-component value. More... | |
int16_t | hty () const |
Get Ht y-component. More... | |
bool | isThereHtx () const |
Is there a valid Ht x-component stored? More... | |
bool | isThereHty () const |
Is there a valid Ht y-component stored? More... | |
L1GctInternHtMiss () | |
default constructor (for vector initialisation etc.) More... | |
bool | operator!= (const L1GctInternHtMiss &rhs) const |
Inequality operator. More... | |
bool | operator== (const L1GctInternHtMiss &rhs) const |
Equality operator. More... | |
bool | overflow () const |
Get overflow. More... | |
uint32_t | raw () const |
Get the raw data. More... | |
L1GctInternHtMiss::L1GctInternHtMissType | type () const |
'type' of object? More... | |
~L1GctInternHtMiss () | |
destructor More... | |
Static Public Member Functions | |
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). More... | |
static L1GctInternHtMiss | emulatorMissHtx (const int htx, const bool overFlow, const int16_t bx) |
Named ctor for making missing Ht x component object from emulator. More... | |
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). More... | |
static L1GctInternHtMiss | emulatorMissHty (const int hty, const bool overFlow, const int16_t bx) |
Named ctor for making missing Ht y component object from emulator. More... | |
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. More... | |
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). More... | |
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. More... | |
Private Types | |
enum | ShiftsAndMasks { kDoubleComponentHtyShift = 16, kSingleComponentOflowMask = (1 << 30), kDoubleComponentOflowMask = (1 << 15), kSingleComponentHtMask = 0xffff, kDoubleComponentHtMask = 0x3fff, kJetFinderComponentHtMask = 0x0fff, kSingleComponentRawMask, kDoubleComponentRawMask } |
Useful bit masks and bit shifts. More... | |
Private Member Functions | |
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) More... | |
L1GctInternHtMiss (const L1GctInternHtMissType type, const uint16_t capBlock, const uint16_t capIndex, const int16_t bx, const uint32_t data) | |
Private constructor that the named ctors use. More... | |
Private Attributes | |
int16_t | bx_ |
uint16_t | capBlock_ |
uint16_t | capIndex_ |
uint32_t | data_ |
The captured raw data. More... | |
L1GctInternHtMissType | type_ |
'Type' of the data More... | |
L1 GCT internal Ht Miss component(s) Ht_x and/or Ht_y.
Definition at line 16 of file L1GctInternHtMiss.h.
Enum for the variants of Internal HtMiss.
Enumerator | |
---|---|
nulltype | |
miss_htx | |
miss_hty | |
miss_htx_and_hty | |
jf_miss_htx_and_hty |
Definition at line 19 of file L1GctInternHtMiss.h.
Enumerator | |
---|---|
kJetMissHtNBits | |
kMissHxAndHyNBits | |
kMissHxOrHyNBits |
Definition at line 21 of file L1GctInternHtMiss.h.
|
private |
Useful bit masks and bit shifts.
Definition at line 116 of file L1GctInternHtMiss.h.
L1GctInternHtMiss::L1GctInternHtMiss | ( | ) |
default constructor (for vector initialisation etc.)
Definition at line 6 of file L1GctInternHtMiss.cc.
Referenced by emulatorJetMissHt(), emulatorMissHtx(), emulatorMissHtxHty(), emulatorMissHty(), unpackerMissHtx(), unpackerMissHtxHty(), and unpackerMissHty().
L1GctInternHtMiss::~L1GctInternHtMiss | ( | ) |
|
private |
|
inline |
Get BX number.
Definition at line 80 of file L1GctInternHtMiss.h.
References bx_.
Referenced by emulatorJetMissHt(), emulatorMissHtx(), emulatorMissHtxHty(), emulatorMissHty(), operator<<(), unpackerMissHtx(), unpackerMissHtxHty(), and unpackerMissHty().
|
inline |
Get capture block.
Definition at line 74 of file L1GctInternHtMiss.h.
References capBlock_.
Referenced by operator<<(), unpackerMissHtx(), unpackerMissHtxHty(), and unpackerMissHty().
|
inline |
Get index within capture block.
Definition at line 77 of file L1GctInternHtMiss.h.
References capIndex_.
Referenced by operator<<(), unpackerMissHtx(), unpackerMissHtxHty(), and unpackerMissHty().
|
private |
Converts 14-bit two's complement numbers to 16-bit two's complement (i.e. an int16_t)
The input is the raw bits of the 14-bit two's complement in a 16-bit unsigned number.
Definition at line 123 of file L1GctInternHtMiss.cc.
References data.
|
static |
Named ctor for making missing Ht x & y components object from emulator (jetFinder output).
Definition at line 36 of file L1GctInternHtMiss.cc.
References bx(), htx(), hty(), jf_miss_htx_and_hty, kDoubleComponentHtyShift, kDoubleComponentOflowMask, kJetFinderComponentHtMask, and L1GctInternHtMiss().
Referenced by L1GctJetFinderBase::getInternalHtMiss().
|
static |
Named ctor for making missing Ht x component object from emulator.
Definition at line 64 of file L1GctInternHtMiss.cc.
References bx(), htx(), kSingleComponentHtMask, kSingleComponentOflowMask, L1GctInternHtMiss(), and miss_htx.
Referenced by L1GctWheelJetFpga::getInternalHtMiss().
|
static |
Named ctor for making missing Ht x & y components object from emulator (wheel input).
Definition at line 50 of file L1GctInternHtMiss.cc.
References bx(), htx(), hty(), kDoubleComponentHtMask, kDoubleComponentHtyShift, kDoubleComponentOflowMask, L1GctInternHtMiss(), and miss_htx_and_hty.
Referenced by L1GctJetLeafCard::getInternalHtMiss().
|
static |
Named ctor for making missing Ht y component object from emulator.
Definition at line 73 of file L1GctInternHtMiss.cc.
References bx(), hty(), kSingleComponentHtMask, kSingleComponentOflowMask, L1GctInternHtMiss(), and miss_hty.
Referenced by L1GctWheelJetFpga::getInternalHtMiss().
int16_t L1GctInternHtMiss::htx | ( | ) | const |
Get Ht x-component value.
Definition at line 82 of file L1GctInternHtMiss.cc.
References convert14BitTwosCompTo16Bit(), kDoubleComponentHtMask, kSingleComponentHtMask, miss_htx, miss_htx_and_hty, raw(), and type().
Referenced by emulatorJetMissHt(), emulatorMissHtx(), emulatorMissHtxHty(), and operator<<().
int16_t L1GctInternHtMiss::hty | ( | ) | const |
Get Ht y-component.
Definition at line 93 of file L1GctInternHtMiss.cc.
References convert14BitTwosCompTo16Bit(), kDoubleComponentHtMask, kDoubleComponentHtyShift, kSingleComponentHtMask, miss_htx_and_hty, miss_hty, raw(), and type().
Referenced by emulatorJetMissHt(), emulatorMissHtxHty(), emulatorMissHty(), and operator<<().
|
inline |
Is there a valid Ht x-component stored?
Definition at line 83 of file L1GctInternHtMiss.h.
References jf_miss_htx_and_hty, miss_htx, miss_htx_and_hty, and type().
Referenced by operator<<().
|
inline |
Is there a valid Ht y-component stored?
Definition at line 88 of file L1GctInternHtMiss.h.
References jf_miss_htx_and_hty, miss_htx_and_hty, miss_hty, and type().
Referenced by operator<<().
|
inline |
Inequality operator.
Definition at line 112 of file L1GctInternHtMiss.h.
|
inline |
bool L1GctInternHtMiss::overflow | ( | ) | const |
Get overflow.
Definition at line 104 of file L1GctInternHtMiss.cc.
References kDoubleComponentOflowMask, kSingleComponentOflowMask, miss_htx, miss_htx_and_hty, miss_hty, raw(), and type().
Referenced by operator<<().
|
inline |
Get the raw data.
Definition at line 95 of file L1GctInternHtMiss.h.
References data_.
Referenced by htx(), hty(), operator==(), and overflow().
|
inline |
'type' of object?
Definition at line 71 of file L1GctInternHtMiss.h.
References type_.
Referenced by htx(), hty(), isThereHtx(), isThereHty(), operator==(), and overflow().
|
static |
Named ctor for making missing Ht x-component object from unpacker raw data.
Definition at line 12 of file L1GctInternHtMiss.cc.
References bx(), capBlock(), capIndex(), data, kSingleComponentRawMask, L1GctInternHtMiss(), and miss_htx.
Referenced by GctFormatTranslateV38::blockToGctInternHtMissPostWheel().
|
static |
Named ctor for making missing Ht x & y components object from unpacker raw data (wheel input).
Definition at line 28 of file L1GctInternHtMiss.cc.
References bx(), capBlock(), capIndex(), data, kDoubleComponentRawMask, L1GctInternHtMiss(), and miss_htx_and_hty.
Referenced by GctFormatTranslateV38::blockToGctInternHtMissPreWheel().
|
static |
Named ctor for making missing Ht y-component object from unpacker raw data.
Definition at line 20 of file L1GctInternHtMiss.cc.
References bx(), capBlock(), capIndex(), data, kSingleComponentRawMask, L1GctInternHtMiss(), and miss_hty.
Referenced by GctFormatTranslateV38::blockToGctInternHtMissPostWheel().
|
private |
Definition at line 150 of file L1GctInternHtMiss.h.
Referenced by bx().
|
private |
Definition at line 148 of file L1GctInternHtMiss.h.
Referenced by capBlock().
|
private |
Definition at line 149 of file L1GctInternHtMiss.h.
Referenced by capIndex().
|
private |
|
private |
'Type' of the data
Definition at line 145 of file L1GctInternHtMiss.h.
Referenced by Modules.Service::__str__(), Modules.Service::_placeImpl(), Modules.ESSource::_placeImpl(), Modules.ESProducer::_placeImpl(), Modules.ESPrefer::copy(), Mixins._TypedParameterizable::dumpPython(), Modules.ESPrefer::dumpPythonAs(), Modules.Service::dumpSequencePython(), RandomRunSource.RandomRunSource::insertInto(), Modules.Service::insertInto(), ExternalGeneratorFilter.ExternalGeneratorFilter::insertInto(), Mixins._TypedParameterizable::insertInto(), Modules.ESSource::moduleLabel_(), Modules.ESProducer::moduleLabel_(), Modules.ESSource::nameInProcessDesc_(), Modules.ESProducer::nameInProcessDesc_(), Modules.ESPrefer::nameInProcessDesc_(), and type().