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 More... | |
uint16_t | capBlock () const |
get capture block More... | |
uint16_t | capIndex () const |
get index within capture block More... | |
uint16_t | count (unsigned i) const |
get the counts More... | |
bool | empty () const |
is the sum non-zero More... | |
uint16_t | et (unsigned i) const |
get the et sums More... | |
bool | isRingSums () const |
get the actual data More... | |
L1GctInternHFData () | |
default constructor (for vector initialisation etc.) More... | |
bool | operator!= (const L1GctInternHFData &c) const |
inequality operator More... | |
bool | operator== (const L1GctInternHFData &c) const |
operators More... | |
uint32_t | raw () const |
get the raw data More... | |
void | setBx (int16_t const bx) |
set bx More... | |
void | setCapBlock (uint16_t const capBlock) |
set cap block More... | |
void | setCapIndex (uint16_t const capIndex) |
set cap index More... | |
void | setCount (unsigned const i, uint16_t const count) |
set the count More... | |
void | setData (uint32_t const data) |
void | setEt (unsigned const i, uint16_t const et) |
set the sum More... | |
void | setType (L1GctInternHFDataType type) |
set type More... | |
void | setValue (unsigned const i, uint16_t const val) |
set value More... | |
L1GctInternHFData::L1GctInternHFDataType | type () const |
metadata More... | |
uint16_t | value (unsigned i) const |
get value More... | |
~L1GctInternHFData () | |
destructor More... | |
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
Enumerator | |
---|---|
null | |
conc_hf_ring_et_sums | |
conc_hf_bit_counts | |
wheel_hf_ring_et_sums | |
wheel_hf_bit_counts |
Definition at line 22 of file L1GctInternHFData.h.
L1GctInternHFData::L1GctInternHFData | ( | ) |
default constructor (for vector initialisation etc.)
Definition at line 4 of file L1GctInternHFData.cc.
L1GctInternHFData::~L1GctInternHFData | ( | ) |
|
inline |
get BX number
Definition at line 67 of file L1GctInternHFData.h.
References bx_.
Referenced by operator<<(), and setBx().
|
inline |
get capture block
Definition at line 61 of file L1GctInternHFData.h.
References capBlock_.
Referenced by operator<<(), and setCapBlock().
|
inline |
get index within capture block
Definition at line 64 of file L1GctInternHFData.h.
References capIndex_.
Referenced by operator<<(), and setCapIndex().
uint16_t L1GctInternHFData::count | ( | unsigned | i | ) | const |
get the counts
Definition at line 81 of file L1GctInternHFData.cc.
References value().
Referenced by operator<<().
|
inline |
is the sum non-zero
Definition at line 70 of file L1GctInternHFData.h.
References data_.
Referenced by operator<<(), Vispa.Gui.VispaWidget.TextField::setAutosizeFont(), and Vispa.Gui.VispaWidget.TextField::setAutotruncate().
uint16_t L1GctInternHFData::et | ( | unsigned | i | ) | const |
get the et sums
Definition at line 76 of file L1GctInternHFData.cc.
References value().
Referenced by operator<<().
|
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().
|
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().
|
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().
|
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().
|
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.
|
inline |
bool L1GctInternHFData::operator== | ( | const L1GctInternHFData & | c | ) | const |
|
inline |
get the raw data
Definition at line 79 of file L1GctInternHFData.h.
References data_.
Referenced by operator==().
|
inline |
set bx
Definition at line 100 of file L1GctInternHFData.h.
Referenced by fromConcBitCounts(), fromConcRingSums(), fromWheelBitCounts(), and fromWheelRingSums().
|
inline |
set cap block
Definition at line 94 of file L1GctInternHFData.h.
References capBlock(), and capBlock_.
Referenced by fromConcBitCounts(), fromConcRingSums(), fromWheelBitCounts(), and fromWheelRingSums().
|
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().
|
inline |
Definition at line 114 of file L1GctInternHFData.h.
Referenced by fromConcRingSums(), and fromWheelRingSums().
void L1GctInternHFData::setEt | ( | unsigned const | i, |
uint16_t const | et | ||
) |
set the sum
Definition at line 99 of file L1GctInternHFData.cc.
References setValue().
|
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 Vispa.Views.PropertyView.StringProperty::buttonClicked(), Vispa.Views.PropertyView.FileProperty::buttonClicked(), Vispa.Views.PropertyView.FileVectorProperty::buttonClicked(), Vispa.Views.PropertyView.TextEditWithButtonProperty::keyPressEvent(), setCount(), setEt(), and Vispa.Views.PropertyView.TextEditWithButtonProperty::setMultiline().
|
inline |
metadata
'type' of object
Definition at line 58 of file L1GctInternHFData.h.
References type_.
Referenced by cuy.ValElement::__init__(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::inputCommands(), operator<<(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::outputCommands(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::outputEventContent(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::properties(), and setType().
uint16_t L1GctInternHFData::value | ( | unsigned | i | ) | const |
get value
Definition at line 71 of file L1GctInternHFData.cc.
References data_.
Referenced by Vispa.Views.PropertyView.FileProperty::buttonClicked(), Types.string::configValue(), Types.FileInPath::configValue(), count(), Mixins.UsingBlock::dumpPython(), et(), Types.int32::insertInto(), Types.uint32::insertInto(), Types.int64::insertInto(), Types.uint64::insertInto(), Mixins.UsingBlock::insertInto(), Types.double::insertInto(), Types.bool::insertInto(), Types.string::insertInto(), Types.FileInPath::insertInto(), Types.vint32::insertInto(), Types.vuint32::insertInto(), Types.vint64::insertInto(), Types.vuint64::insertInto(), Types.vdouble::insertInto(), Types.vbool::insertInto(), Types.vstring::insertInto(), and Vispa.Views.PropertyView.FileProperty::labelDoubleClicked().
|
private |
Definition at line 134 of file L1GctInternHFData.h.
|
private |
Definition at line 132 of file L1GctInternHFData.h.
Referenced by capBlock(), and setCapBlock().
|
private |
Definition at line 133 of file L1GctInternHFData.h.
Referenced by capIndex(), and setCapIndex().
|
private |
Definition at line 137 of file L1GctInternHFData.h.
Referenced by empty(), raw(), setData(), setValue(), and value().
|
private |
Definition at line 129 of file L1GctInternHFData.h.
Referenced by Modules.Service::_placeImpl(), Modules.ESSource::_placeImpl(), Modules.ESProducer::_placeImpl(), Modules.ESPrefer::copy(), Mixins._TypedParameterizable::dumpPython(), Modules.ESPrefer::dumpPythonAs(), Modules.Service::insertInto(), RandomRunSource.RandomRunSource::insertInto(), Mixins._TypedParameterizable::insertInto(), isRingSums(), Modules.ESSource::moduleLabel_(), Modules.ESProducer::moduleLabel_(), Modules.ESSource::nameInProcessDesc_(), Modules.ESProducer::nameInProcessDesc_(), Modules.ESPrefer::nameInProcessDesc_(), setType(), and type().