L1 GCT internal energy sum. More...
#include <L1GctInternEtSum.h>
Public Types | |
enum | L1GctInternEtSumType { null, jet_tot_et, jet_tot_ht, jet_miss_et, total_et_or_ht, miss_etx_or_ety } |
et sum type - not clear this is required More... | |
enum | numberOfBits { kTotEtOrHtNBits = 12, kJetMissEtNBits = 17, kMissExOrEyNBits = 20, kTotEtOrHtOFlowBit = 1 << kTotEtOrHtNBits, kJetMissEtOFlowBit = 1 << kJetMissEtNBits, kMissExOrEyOFlowBit = 1 << kMissExOrEyNBits, kTotEtOrHtMaxValue = kTotEtOrHtOFlowBit - 1, kJetMissEtMaxValue = kJetMissEtOFlowBit - 1, kMissExOrEyMaxValue = kMissExOrEyOFlowBit - 1, kTotEtOrHtRawCtorMask = kTotEtOrHtOFlowBit | kTotEtOrHtMaxValue, kJetMissEtRawCtorMask = kJetMissEtOFlowBit | kJetMissEtMaxValue, kMissExOrEyRawCtorMask = kMissExOrEyOFlowBit | kMissExOrEyMaxValue } |
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... | |
uint32_t | count () const |
get count More... | |
bool | empty () const |
is the sum non-zero More... | |
uint32_t | et () const |
get et More... | |
L1GctInternEtSum () | |
default constructor (for vector initialisation etc.) More... | |
L1GctInternEtSum (uint16_t capBlock, uint16_t capIndex, int16_t bx, uint32_t et, uint8_t oflow) | |
construct from individual quantities More... | |
uint8_t | oflow () const |
get oflow More... | |
bool | operator!= (const L1GctInternEtSum &c) const |
inequality operator More... | |
bool | operator== (const L1GctInternEtSum &c) const |
operators More... | |
uint32_t | raw () const |
get the actual bits More... | |
void | setBx (uint16_t bx) |
set bx More... | |
void | setCapBlock (uint16_t capBlock) |
set cap block More... | |
void | setCapIndex (uint16_t capIndex) |
set cap index More... | |
void | setCount (uint32_t count) |
set count More... | |
void | setEt (uint32_t et) |
set Et sum More... | |
void | setOflow (uint8_t oflow) |
set overflow bit More... | |
void | setType (L1GctInternEtSumType type) |
set type More... | |
void | setValue (uint32_t val) |
set value More... | |
L1GctInternEtSum::L1GctInternEtSumType | type () const |
metadata More... | |
uint32_t | value () const |
get value More... | |
~L1GctInternEtSum () | |
destructor More... | |
Static Public Member Functions | |
static L1GctInternEtSum | fromEmulatorJetMissEt (int missEtxOrEty, bool overFlow, int16_t bx) |
static L1GctInternEtSum | fromEmulatorJetTotEt (unsigned totEt, bool overFlow, int16_t bx) |
Emulator constructors. More... | |
static L1GctInternEtSum | fromEmulatorJetTotHt (unsigned totHt, bool overFlow, int16_t bx) |
static L1GctInternEtSum | fromEmulatorMissEtxOrEty (int missEtxOrEty, bool overFlow, int16_t bx) |
static L1GctInternEtSum | fromEmulatorTotalEtOrHt (unsigned totEtOrHt, bool overFlow, int16_t bx) |
static L1GctInternEtSum | fromJetMissEt (uint16_t capBlock, uint16_t capIndex, int16_t bx, uint32_t data) |
static L1GctInternEtSum | fromJetTotEt (uint16_t capBlock, uint16_t capIndex, int16_t bx, uint32_t data) |
static L1GctInternEtSum | fromJetTotHt (uint16_t capBlock, uint16_t capIndex, int16_t bx, uint32_t data) |
static L1GctInternEtSum | fromMissEtxOrEty (uint16_t capBlock, uint16_t capIndex, int16_t bx, uint32_t data) |
static L1GctInternEtSum | fromTotalEtOrHt (uint16_t capBlock, uint16_t capIndex, int16_t bx, uint32_t data) |
Private Attributes | |
int16_t | bx_ |
uint16_t | capBlock_ |
uint16_t | capIndex_ |
uint32_t | data_ |
L1GctInternEtSumType | type_ |
et sum type - not clear this is required
Enumerator | |
---|---|
null | |
jet_tot_et | |
jet_tot_ht | |
jet_miss_et | |
total_et_or_ht | |
miss_etx_or_ety |
Definition at line 20 of file L1GctInternEtSum.h.
Definition at line 28 of file L1GctInternEtSum.h.
L1GctInternEtSum::L1GctInternEtSum | ( | ) |
default constructor (for vector initialisation etc.)
Definition at line 5 of file L1GctInternEtSum.cc.
L1GctInternEtSum::L1GctInternEtSum | ( | uint16_t | capBlock, |
uint16_t | capIndex, | ||
int16_t | bx, | ||
uint32_t | et, | ||
uint8_t | oflow | ||
) |
construct from individual quantities
Definition at line 11 of file L1GctInternEtSum.cc.
References setEt(), and setOflow().
L1GctInternEtSum::~L1GctInternEtSum | ( | ) |
|
inline |
get BX number
Definition at line 105 of file L1GctInternEtSum.h.
References bx_.
Referenced by operator<<(), operator==(), and setBx().
|
inline |
get capture block
Definition at line 99 of file L1GctInternEtSum.h.
References capBlock_.
Referenced by operator<<(), and setCapBlock().
|
inline |
get index within capture block
Definition at line 102 of file L1GctInternEtSum.h.
References capIndex_.
Referenced by operator<<(), and setCapIndex().
|
inline |
|
inline |
is the sum non-zero
Definition at line 108 of file L1GctInternEtSum.h.
References data_.
Referenced by operator<<(), Vispa.Gui.VispaWidget.TextField::setAutosizeFont(), and Vispa.Gui.VispaWidget.TextField::setAutotruncate().
|
inline |
get et
Definition at line 120 of file L1GctInternEtSum.h.
References value().
Referenced by operator<<().
|
static |
Definition at line 125 of file L1GctInternEtSum.cc.
References jet_miss_et, kJetMissEtMaxValue, kJetMissEtOFlowBit, alignCSCRings::s, setBx(), setEt(), setOflow(), and setType().
Referenced by L1GctJetLeafCard::getInternalEtSums(), and L1GctJetFinderBase::getInternalEtSums().
|
static |
Emulator constructors.
Definition at line 107 of file L1GctInternEtSum.cc.
References jet_tot_et, kTotEtOrHtMaxValue, alignCSCRings::s, setBx(), setEt(), setOflow(), and setType().
Referenced by L1GctJetLeafCard::getInternalEtSums(), and L1GctJetFinderBase::getInternalEtSums().
|
static |
Definition at line 116 of file L1GctInternEtSum.cc.
References jet_tot_ht, kTotEtOrHtMaxValue, alignCSCRings::s, setBx(), setEt(), setOflow(), and setType().
Referenced by L1GctJetLeafCard::getInternalEtSums(), and L1GctJetFinderBase::getInternalEtSums().
|
static |
Definition at line 143 of file L1GctInternEtSum.cc.
References kMissExOrEyMaxValue, kMissExOrEyOFlowBit, miss_etx_or_ety, alignCSCRings::s, setBx(), setEt(), setOflow(), and setType().
Referenced by L1GctWheelEnergyFpga::getInternalEtSums().
|
static |
Definition at line 134 of file L1GctInternEtSum.cc.
References kTotEtOrHtMaxValue, alignCSCRings::s, setBx(), setEt(), setOflow(), setType(), and total_et_or_ht.
Referenced by L1GctWheelEnergyFpga::getInternalEtSums().
|
static |
Definition at line 61 of file L1GctInternEtSum.cc.
References jet_miss_et, kJetMissEtMaxValue, kJetMissEtNBits, alignCSCRings::s, setBx(), setCapBlock(), setCapIndex(), setEt(), setOflow(), and setType().
Referenced by GctFormatTranslateV35::blockToGctInternEtSumsAndJetCluster(), and GctFormatTranslateV38::blockToGctInternEtSumsAndJetCluster().
|
static |
Definition at line 32 of file L1GctInternEtSum.cc.
References jet_tot_et, kTotEtOrHtMaxValue, kTotEtOrHtNBits, alignCSCRings::s, setBx(), setCapBlock(), setCapIndex(), setEt(), setOflow(), and setType().
Referenced by GctFormatTranslateV35::blockToGctInternEtSumsAndJetCluster(), and GctFormatTranslateV38::blockToGctInternEtSumsAndJetCluster().
|
static |
Definition at line 46 of file L1GctInternEtSum.cc.
References jet_tot_ht, kTotEtOrHtMaxValue, kTotEtOrHtNBits, alignCSCRings::s, setBx(), setCapBlock(), setCapIndex(), setEt(), setOflow(), and setType().
Referenced by GctFormatTranslateV35::blockToGctInternEtSumsAndJetCluster(), and GctFormatTranslateV38::blockToGctInternEtSumsAndJetCluster().
|
static |
Definition at line 90 of file L1GctInternEtSum.cc.
References kMissExOrEyNBits, miss_etx_or_ety, alignCSCRings::s, setBx(), setCapBlock(), setCapIndex(), setEt(), setOflow(), and setType().
Referenced by GctFormatTranslateV35::blockToGctWheelInputInternEtAndRingSums(), GctFormatTranslateV38::blockToGctWheelInputInternEtAndRingSums(), GctFormatTranslateV35::blockToGctWheelOutputInternEtAndRingSums(), and GctFormatTranslateV38::blockToGctWheelOutputInternEtAndRingSums().
|
static |
Definition at line 76 of file L1GctInternEtSum.cc.
References kTotEtOrHtMaxValue, kTotEtOrHtNBits, alignCSCRings::s, setBx(), setCapBlock(), setCapIndex(), setEt(), setOflow(), setType(), and total_et_or_ht.
Referenced by GctFormatTranslateV35::blockToGctInternEtSums(), GctFormatTranslateV38::blockToGctInternEtSums(), GctFormatTranslateV35::blockToGctWheelInputInternEtAndRingSums(), GctFormatTranslateV38::blockToGctWheelInputInternEtAndRingSums(), GctFormatTranslateV35::blockToGctWheelOutputInternEtAndRingSums(), and GctFormatTranslateV38::blockToGctWheelOutputInternEtAndRingSums().
|
inline |
get oflow
Definition at line 126 of file L1GctInternEtSum.h.
References data_.
Referenced by operator<<().
|
inline |
inequality operator
Definition at line 162 of file L1GctInternEtSum.h.
References EnergyCorrector::c.
bool L1GctInternEtSum::operator== | ( | const L1GctInternEtSum & | c | ) | const |
|
inline |
get the actual bits
get the raw data
Definition at line 114 of file L1GctInternEtSum.h.
References data_.
Referenced by operator==().
|
inline |
set bx
Definition at line 138 of file L1GctInternEtSum.h.
Referenced by fromEmulatorJetMissEt(), fromEmulatorJetTotEt(), fromEmulatorJetTotHt(), fromEmulatorMissEtxOrEty(), fromEmulatorTotalEtOrHt(), fromJetMissEt(), fromJetTotEt(), fromJetTotHt(), fromMissEtxOrEty(), and fromTotalEtOrHt().
|
inline |
set cap block
Definition at line 132 of file L1GctInternEtSum.h.
References capBlock(), and capBlock_.
Referenced by fromJetMissEt(), fromJetTotEt(), fromJetTotHt(), fromMissEtxOrEty(), and fromTotalEtOrHt().
|
inline |
set cap index
Definition at line 135 of file L1GctInternEtSum.h.
References capIndex(), and capIndex_.
Referenced by fromJetMissEt(), fromJetTotEt(), fromJetTotHt(), fromMissEtxOrEty(), and fromTotalEtOrHt().
void L1GctInternEtSum::setCount | ( | uint32_t | count | ) |
void L1GctInternEtSum::setEt | ( | uint32_t | et | ) |
set Et sum
set et
Definition at line 165 of file L1GctInternEtSum.cc.
References setValue().
Referenced by fromEmulatorJetMissEt(), fromEmulatorJetTotEt(), fromEmulatorJetTotHt(), fromEmulatorMissEtxOrEty(), fromEmulatorTotalEtOrHt(), fromJetMissEt(), fromJetTotEt(), fromJetTotHt(), fromMissEtxOrEty(), fromTotalEtOrHt(), and L1GctInternEtSum().
void L1GctInternEtSum::setOflow | ( | uint8_t | oflow | ) |
set overflow bit
Definition at line 175 of file L1GctInternEtSum.cc.
References data_.
Referenced by fromEmulatorJetMissEt(), fromEmulatorJetTotEt(), fromEmulatorJetTotHt(), fromEmulatorMissEtxOrEty(), fromEmulatorTotalEtOrHt(), fromJetMissEt(), fromJetTotEt(), fromJetTotHt(), fromMissEtxOrEty(), fromTotalEtOrHt(), and L1GctInternEtSum().
|
inline |
set type
Definition at line 141 of file L1GctInternEtSum.h.
Referenced by fromEmulatorJetMissEt(), fromEmulatorJetTotEt(), fromEmulatorJetTotHt(), fromEmulatorMissEtxOrEty(), fromEmulatorTotalEtOrHt(), fromJetMissEt(), fromJetTotEt(), fromJetTotHt(), fromMissEtxOrEty(), and fromTotalEtOrHt().
void L1GctInternEtSum::setValue | ( | uint32_t | val | ) |
set value
Definition at line 159 of file L1GctInternEtSum.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 - not required?
Definition at line 96 of file L1GctInternEtSum.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().
|
inline |
get value
Definition at line 117 of file L1GctInternEtSum.h.
References data_.
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(), 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(), Types.double::insertInto(), Mixins.UsingBlock::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 173 of file L1GctInternEtSum.h.
Referenced by bx(), operator==(), and setBx().
|
private |
Definition at line 171 of file L1GctInternEtSum.h.
Referenced by capBlock(), and setCapBlock().
|
private |
Definition at line 172 of file L1GctInternEtSum.h.
Referenced by capIndex(), and setCapIndex().
|
private |
Definition at line 176 of file L1GctInternEtSum.h.
Referenced by empty(), oflow(), operator==(), raw(), setOflow(), setValue(), and value().
|
private |
Definition at line 168 of file L1GctInternEtSum.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(), Modules.ESSource::moduleLabel_(), Modules.ESProducer::moduleLabel_(), Modules.ESSource::nameInProcessDesc_(), Modules.ESProducer::nameInProcessDesc_(), Modules.ESPrefer::nameInProcessDesc_(), setType(), and type().