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 16 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 19 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 65 of file L1GctInternHFData.h.
References bx_.
Referenced by fromConcBitCounts(), fromConcRingSums(), fromWheelBitCounts(), fromWheelRingSums(), and setBx().
|
inline |
get capture block
Definition at line 59 of file L1GctInternHFData.h.
References capBlock_.
Referenced by fromConcBitCounts(), fromConcRingSums(), fromWheelBitCounts(), fromWheelRingSums(), and setCapBlock().
|
inline |
get index within capture block
Definition at line 62 of file L1GctInternHFData.h.
References capIndex_.
Referenced by fromConcBitCounts(), fromConcRingSums(), fromWheelBitCounts(), fromWheelRingSums(), and setCapIndex().
uint16_t L1GctInternHFData::count | ( | unsigned | i | ) | const |
get the counts
Definition at line 70 of file L1GctInternHFData.cc.
References mps_fire::i, and value().
Referenced by setCount().
|
inline |
uint16_t L1GctInternHFData::et | ( | unsigned | i | ) | const |
get the et sums
Definition at line 67 of file L1GctInternHFData.cc.
References mps_fire::i, and value().
Referenced by setEt().
|
static |
Definition at line 22 of file L1GctInternHFData.cc.
References bx(), capBlock(), capIndex(), conc_hf_bit_counts, ztail::d, data, and mps_fire::i.
Referenced by GctFormatTranslateV35::blockToGctInternRingSums(), and GctFormatTranslateV38::blockToGctInternRingSums().
|
static |
Definition at line 9 of file L1GctInternHFData.cc.
References bx(), capBlock(), capIndex(), conc_hf_ring_et_sums, ztail::d, and data.
Referenced by GctFormatTranslateV35::blockToGctInternRingSums(), and GctFormatTranslateV38::blockToGctInternRingSums().
|
static |
Definition at line 50 of file L1GctInternHFData.cc.
References bx(), capBlock(), capIndex(), ztail::d, data, and wheel_hf_bit_counts.
Referenced by GctFormatTranslateV35::blockToGctWheelInputInternEtAndRingSums(), GctFormatTranslateV38::blockToGctWheelInputInternEtAndRingSums(), GctFormatTranslateV35::blockToGctWheelOutputInternEtAndRingSums(), and GctFormatTranslateV38::blockToGctWheelOutputInternEtAndRingSums().
|
static |
Definition at line 37 of file L1GctInternHFData.cc.
References bx(), capBlock(), capIndex(), ztail::d, data, 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 73 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 76 of file L1GctInternHFData.h.
References data_.
Referenced by operator==().
|
inline |
|
inline |
set cap block
Definition at line 90 of file L1GctInternHFData.h.
References capBlock(), and capBlock_.
|
inline |
set cap index
Definition at line 93 of file L1GctInternHFData.h.
References capIndex(), and capIndex_.
void L1GctInternHFData::setCount | ( | unsigned const | i, |
uint16_t const | count | ||
) |
set the count
Definition at line 85 of file L1GctInternHFData.cc.
References count(), mps_fire::i, and setValue().
|
inline |
Definition at line 110 of file L1GctInternHFData.h.
void L1GctInternHFData::setEt | ( | unsigned const | i, |
uint16_t const | et | ||
) |
set the sum
Definition at line 82 of file L1GctInternHFData.cc.
References et(), mps_fire::i, and setValue().
|
inline |
set type
Definition at line 99 of file L1GctInternHFData.h.
void L1GctInternHFData::setValue | ( | unsigned const | i, |
uint16_t const | val | ||
) |
set value
Definition at line 76 of file L1GctInternHFData.cc.
References data_, mps_fire::i, and heppy_batch::val.
Referenced by setCount(), and setEt().
|
inline |
metadata
'type' of object
Definition at line 56 of file L1GctInternHFData.h.
References type_.
Referenced by setType().
uint16_t L1GctInternHFData::value | ( | unsigned | i | ) | const |
get value
Definition at line 64 of file L1GctInternHFData.cc.
References data_, and mps_fire::i.
Referenced by Types.int32::__nonzero__(), Types.uint32::__nonzero__(), Types.int64::__nonzero__(), Types.uint64::__nonzero__(), Types.double::__nonzero__(), Types.bool::__nonzero__(), Types.string::__nonzero__(), average.Average::average(), Types.string::configValue(), Types.FileInPath::configValue(), count(), Mixins.UsingBlock::dumpPython(), et(), Mixins.UsingBlock::insertInto(), Types.int32::insertInto(), Types.uint32::insertInto(), Types.int64::insertInto(), Types.uint64::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(), and Types.vstring::insertInto().
|
private |
Definition at line 127 of file L1GctInternHFData.h.
|
private |
Definition at line 125 of file L1GctInternHFData.h.
Referenced by capBlock(), and setCapBlock().
|
private |
Definition at line 126 of file L1GctInternHFData.h.
Referenced by capIndex(), and setCapIndex().
|
private |
Definition at line 130 of file L1GctInternHFData.h.
Referenced by empty(), raw(), setData(), setValue(), and value().
|
private |
Definition at line 122 of file L1GctInternHFData.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(), isRingSums(), Modules.ESSource::moduleLabel_(), Modules.ESProducer::moduleLabel_(), Modules.ESSource::nameInProcessDesc_(), Modules.ESProducer::nameInProcessDesc_(), Modules.ESPrefer::nameInProcessDesc_(), setType(), and type().