L1 GCT internal ring sums and/or bit counts. More...
#include <L1GctInternHFData.h>
Public Types | |
enum | L1GctInternHFDataType { null, conc_hf_ring_et_sums, conc_hf_bit_counts, wheel_hf_ring_et_sums, wheel_hf_bit_counts } |
et sum type - not clear this is required More... | |
Public Member Functions | |
int16_t | bx () const |
get BX number | |
uint16_t | capBlock () const |
get capture block | |
uint16_t | capIndex () const |
get index within capture block | |
uint16_t | count (unsigned i) const |
get the counts | |
bool | empty () const |
is the sum non-zero | |
uint16_t | et (unsigned i) const |
get the et sums | |
bool | isRingSums () const |
get the actual data | |
L1GctInternHFData () | |
default constructor (for vector initialisation etc.) | |
bool | operator!= (const L1GctInternHFData &c) const |
inequality operator | |
bool | operator== (const L1GctInternHFData &c) const |
operators | |
uint32_t | raw () const |
get the raw data | |
void | setBx (int16_t const bx) |
set bx | |
void | setCapBlock (uint16_t const capBlock) |
set cap block | |
void | setCapIndex (uint16_t const capIndex) |
set cap index | |
void | setCount (unsigned const i, uint16_t const count) |
set the count | |
void | setData (uint32_t const data) |
void | setEt (unsigned const i, uint16_t const et) |
set the sum | |
void | setType (L1GctInternHFDataType type) |
set type | |
void | setValue (unsigned const i, uint16_t const val) |
set value | |
L1GctInternHFData::L1GctInternHFDataType | type () const |
metadata | |
uint16_t | value (unsigned i) const |
get value | |
~L1GctInternHFData () | |
destructor | |
Static Public Member Functions | |
static L1GctInternHFData | fromConcBitCounts (const uint16_t capBlock, const uint16_t capIndex, const int16_t bx, const uint32_t data) |
static L1GctInternHFData | fromConcRingSums (const uint16_t capBlock, const uint16_t capIndex, const int16_t bx, const uint32_t data) |
static L1GctInternHFData | fromWheelBitCounts (const uint16_t capBlock, const uint16_t capIndex, const int16_t bx, const uint32_t data) |
static L1GctInternHFData | fromWheelRingSums (const uint16_t capBlock, const uint16_t capIndex, const int16_t bx, const uint32_t data) |
Private Attributes | |
int16_t | bx_ |
uint16_t | capBlock_ |
uint16_t | capIndex_ |
uint32_t | data_ |
L1GctInternHFDataType | type_ |
L1 GCT internal ring sums and/or bit counts.
Will store 4 sums/counts of up to 8 bits each
Definition at line 17 of file L1GctInternHFData.h.
et sum type - not clear this is required
Definition at line 22 of file L1GctInternHFData.h.
L1GctInternHFData::L1GctInternHFData | ( | ) |
L1GctInternHFData::~L1GctInternHFData | ( | ) |
int16_t L1GctInternHFData::bx | ( | ) | const [inline] |
get BX number
Definition at line 67 of file L1GctInternHFData.h.
References bx_.
Referenced by operator<<(), and setBx().
{ return bx_; }
uint16_t L1GctInternHFData::capBlock | ( | ) | const [inline] |
get capture block
Definition at line 61 of file L1GctInternHFData.h.
References capBlock_.
Referenced by operator<<(), and setCapBlock().
{ return capBlock_; }
uint16_t L1GctInternHFData::capIndex | ( | ) | const [inline] |
get index within capture block
Definition at line 64 of file L1GctInternHFData.h.
References capIndex_.
Referenced by operator<<(), and setCapIndex().
{ return capIndex_; }
uint16_t L1GctInternHFData::count | ( | unsigned | i | ) | const |
get the counts
Definition at line 81 of file L1GctInternHFData.cc.
References value().
Referenced by operator<<().
bool L1GctInternHFData::empty | ( | ) | const [inline] |
is the sum non-zero
Definition at line 70 of file L1GctInternHFData.h.
References data_.
Referenced by operator<<().
{ return (data_ == 0); }
uint16_t L1GctInternHFData::et | ( | unsigned | i | ) | const |
get the et sums
Definition at line 76 of file L1GctInternHFData.cc.
References value().
Referenced by operator<<().
L1GctInternHFData L1GctInternHFData::fromConcBitCounts | ( | const uint16_t | capBlock, |
const uint16_t | capIndex, | ||
const int16_t | bx, | ||
const uint32_t | data | ||
) | [static] |
Definition at line 28 of file L1GctInternHFData.cc.
References conc_hf_bit_counts, i, setBx(), setCapBlock(), setCapIndex(), setCount(), and setType().
Referenced by GctFormatTranslateV35::blockToGctInternRingSums(), and GctFormatTranslateV38::blockToGctInternRingSums().
{ L1GctInternHFData d; d.setType(conc_hf_bit_counts); d.setCapIndex(capIndex); d.setCapBlock(capBlock); d.setBx(bx); for (unsigned i=0; i<4; ++i) { d.setCount(i, (data>>(6*i))&0x3f); } return d; }
L1GctInternHFData L1GctInternHFData::fromConcRingSums | ( | const uint16_t | capBlock, |
const uint16_t | capIndex, | ||
const int16_t | bx, | ||
const uint32_t | data | ||
) | [static] |
Definition at line 15 of file L1GctInternHFData.cc.
References conc_hf_ring_et_sums, setBx(), setCapBlock(), setCapIndex(), setData(), and setType().
Referenced by GctFormatTranslateV35::blockToGctInternRingSums(), and GctFormatTranslateV38::blockToGctInternRingSums().
{ L1GctInternHFData d; d.setType(conc_hf_ring_et_sums); d.setCapIndex(capIndex); d.setCapBlock(capBlock); d.setBx(bx); d.setData(data); return d; }
L1GctInternHFData L1GctInternHFData::fromWheelBitCounts | ( | const uint16_t | capBlock, |
const uint16_t | capIndex, | ||
const int16_t | bx, | ||
const uint32_t | data | ||
) | [static] |
Definition at line 56 of file L1GctInternHFData.cc.
References setBx(), setCapBlock(), setCapIndex(), setCount(), setType(), and wheel_hf_bit_counts.
Referenced by GctFormatTranslateV35::blockToGctWheelInputInternEtAndRingSums(), GctFormatTranslateV38::blockToGctWheelInputInternEtAndRingSums(), GctFormatTranslateV35::blockToGctWheelOutputInternEtAndRingSums(), and GctFormatTranslateV38::blockToGctWheelOutputInternEtAndRingSums().
{ L1GctInternHFData d; d.setType(wheel_hf_bit_counts); d.setCapIndex(capIndex); d.setCapBlock(capBlock); d.setBx(bx); d.setCount(0,data & 0x3f); return d; }
L1GctInternHFData L1GctInternHFData::fromWheelRingSums | ( | const uint16_t | capBlock, |
const uint16_t | capIndex, | ||
const int16_t | bx, | ||
const uint32_t | data | ||
) | [static] |
Definition at line 43 of file L1GctInternHFData.cc.
References setBx(), setCapBlock(), setCapIndex(), setData(), setType(), and wheel_hf_ring_et_sums.
Referenced by GctFormatTranslateV35::blockToGctWheelInputInternEtAndRingSums(), GctFormatTranslateV38::blockToGctWheelInputInternEtAndRingSums(), GctFormatTranslateV35::blockToGctWheelOutputInternEtAndRingSums(), and GctFormatTranslateV38::blockToGctWheelOutputInternEtAndRingSums().
{ L1GctInternHFData d; d.setType(wheel_hf_ring_et_sums); d.setCapIndex(capIndex); d.setCapBlock(capBlock); d.setBx(bx); d.setData(data & 0xff); return d; }
bool L1GctInternHFData::isRingSums | ( | ) | const [inline] |
get the actual data
is this ring sums or bit counts?
Definition at line 76 of file L1GctInternHFData.h.
References conc_hf_ring_et_sums, type_, and wheel_hf_ring_et_sums.
{ return (type_ == conc_hf_ring_et_sums || type_ == wheel_hf_ring_et_sums); }
bool L1GctInternHFData::operator!= | ( | const L1GctInternHFData & | c | ) | const [inline] |
inequality operator
Definition at line 123 of file L1GctInternHFData.h.
References trackerHits::c.
{ return !(*this == c); }
bool L1GctInternHFData::operator== | ( | const L1GctInternHFData & | c | ) | const |
uint32_t L1GctInternHFData::raw | ( | ) | const [inline] |
get the raw data
Definition at line 79 of file L1GctInternHFData.h.
References data_.
Referenced by operator==().
{ return data_; }
void L1GctInternHFData::setBx | ( | int16_t const | bx | ) | [inline] |
set bx
Definition at line 100 of file L1GctInternHFData.h.
Referenced by fromConcBitCounts(), fromConcRingSums(), fromWheelBitCounts(), and fromWheelRingSums().
void L1GctInternHFData::setCapBlock | ( | uint16_t const | capBlock | ) | [inline] |
set cap block
Definition at line 94 of file L1GctInternHFData.h.
References capBlock(), and capBlock_.
Referenced by fromConcBitCounts(), fromConcRingSums(), fromWheelBitCounts(), and fromWheelRingSums().
void L1GctInternHFData::setCapIndex | ( | uint16_t const | capIndex | ) | [inline] |
set cap index
Definition at line 97 of file L1GctInternHFData.h.
References capIndex(), and capIndex_.
Referenced by fromConcBitCounts(), fromConcRingSums(), fromWheelBitCounts(), and fromWheelRingSums().
void L1GctInternHFData::setCount | ( | unsigned const | i, |
uint16_t const | count | ||
) |
set the count
Definition at line 104 of file L1GctInternHFData.cc.
References setValue().
Referenced by fromConcBitCounts(), and fromWheelBitCounts().
void L1GctInternHFData::setData | ( | uint32_t const | data | ) | [inline] |
Definition at line 114 of file L1GctInternHFData.h.
References AlCaHLTBitMon_QueryRunRegistry::data, and data_.
Referenced by fromConcRingSums(), and fromWheelRingSums().
void L1GctInternHFData::setEt | ( | unsigned const | i, |
uint16_t const | et | ||
) |
void L1GctInternHFData::setType | ( | L1GctInternHFDataType | type | ) | [inline] |
set type
Definition at line 103 of file L1GctInternHFData.h.
Referenced by fromConcBitCounts(), fromConcRingSums(), fromWheelBitCounts(), and fromWheelRingSums().
void L1GctInternHFData::setValue | ( | unsigned const | i, |
uint16_t const | val | ||
) |
set value
Definition at line 93 of file L1GctInternHFData.cc.
References data_.
Referenced by setCount(), and setEt().
L1GctInternHFData::L1GctInternHFDataType L1GctInternHFData::type | ( | ) | const [inline] |
metadata
'type' of object
Definition at line 58 of file L1GctInternHFData.h.
References type_.
Referenced by operator<<(), and setType().
{ return type_; }
uint16_t L1GctInternHFData::value | ( | unsigned | i | ) | const |
int16_t L1GctInternHFData::bx_ [private] |
Definition at line 134 of file L1GctInternHFData.h.
uint16_t L1GctInternHFData::capBlock_ [private] |
Definition at line 132 of file L1GctInternHFData.h.
Referenced by capBlock(), and setCapBlock().
uint16_t L1GctInternHFData::capIndex_ [private] |
Definition at line 133 of file L1GctInternHFData.h.
Referenced by capIndex(), and setCapIndex().
uint32_t L1GctInternHFData::data_ [private] |
Definition at line 137 of file L1GctInternHFData.h.
Referenced by empty(), raw(), setData(), setValue(), and value().
Definition at line 129 of file L1GctInternHFData.h.
Referenced by isRingSums(), setType(), and type().