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 17 of file L1GctInternEtSum.h.
Definition at line 26 of file L1GctInternEtSum.h.
L1GctInternEtSum::L1GctInternEtSum | ( | ) |
default constructor (for vector initialisation etc.)
Definition at line 4 of file L1GctInternEtSum.cc.
L1GctInternEtSum::L1GctInternEtSum | ( | uint16_t | capBlock, |
uint16_t | capIndex, | ||
int16_t | bx, | ||
uint32_t | et, | ||
uint8_t | oflow | ||
) |
L1GctInternEtSum::~L1GctInternEtSum | ( | ) |
|
inline |
get BX number
Definition at line 83 of file L1GctInternEtSum.h.
References bx_.
Referenced by fromEmulatorJetMissEt(), fromEmulatorJetTotEt(), fromEmulatorJetTotHt(), fromEmulatorMissEtxOrEty(), fromEmulatorTotalEtOrHt(), fromJetMissEt(), fromJetTotEt(), fromJetTotHt(), fromMissEtxOrEty(), fromTotalEtOrHt(), and setBx().
|
inline |
get capture block
Definition at line 77 of file L1GctInternEtSum.h.
References capBlock_.
Referenced by fromJetMissEt(), fromJetTotEt(), fromJetTotHt(), fromMissEtxOrEty(), fromTotalEtOrHt(), and setCapBlock().
|
inline |
get index within capture block
Definition at line 80 of file L1GctInternEtSum.h.
References capIndex_.
Referenced by fromJetMissEt(), fromJetTotEt(), fromJetTotHt(), fromMissEtxOrEty(), fromTotalEtOrHt(), and setCapIndex().
|
inline |
get count
Definition at line 100 of file L1GctInternEtSum.h.
References value().
Referenced by setCount().
|
inline |
|
inline |
|
static |
Definition at line 109 of file L1GctInternEtSum.cc.
References bx(), jet_miss_et, kJetMissEtMaxValue, kJetMissEtOFlowBit, alignCSCRings::s, and testProducerWithPsetDescEmpty_cfi::x1.
Referenced by L1GctJetLeafCard::getInternalEtSums(), and L1GctJetFinderBase::getInternalEtSums().
|
static |
Emulator constructors.
Definition at line 89 of file L1GctInternEtSum.cc.
References bx(), jet_tot_et, kTotEtOrHtMaxValue, alignCSCRings::s, and testProducerWithPsetDescEmpty_cfi::x1.
Referenced by L1GctJetLeafCard::getInternalEtSums(), and L1GctJetFinderBase::getInternalEtSums().
|
static |
Definition at line 99 of file L1GctInternEtSum.cc.
References bx(), jet_tot_ht, kTotEtOrHtMaxValue, alignCSCRings::s, and testProducerWithPsetDescEmpty_cfi::x1.
Referenced by L1GctJetLeafCard::getInternalEtSums(), and L1GctJetFinderBase::getInternalEtSums().
|
static |
Definition at line 129 of file L1GctInternEtSum.cc.
References bx(), kMissExOrEyMaxValue, kMissExOrEyOFlowBit, miss_etx_or_ety, alignCSCRings::s, and testProducerWithPsetDescEmpty_cfi::x1.
Referenced by L1GctWheelEnergyFpga::getInternalEtSums().
|
static |
Definition at line 119 of file L1GctInternEtSum.cc.
References bx(), kTotEtOrHtMaxValue, alignCSCRings::s, total_et_or_ht, and testProducerWithPsetDescEmpty_cfi::x1.
Referenced by L1GctWheelEnergyFpga::getInternalEtSums().
|
static |
Definition at line 45 of file L1GctInternEtSum.cc.
References bx(), capBlock(), capIndex(), data, jet_miss_et, kJetMissEtMaxValue, kJetMissEtNBits, alignCSCRings::s, and testProducerWithPsetDescEmpty_cfi::x1.
Referenced by GctFormatTranslateV35::blockToGctInternEtSumsAndJetCluster(), and GctFormatTranslateV38::blockToGctInternEtSumsAndJetCluster().
|
static |
Definition at line 16 of file L1GctInternEtSum.cc.
References bx(), capBlock(), capIndex(), data, jet_tot_et, kTotEtOrHtMaxValue, kTotEtOrHtNBits, alignCSCRings::s, and testProducerWithPsetDescEmpty_cfi::x1.
Referenced by GctFormatTranslateV35::blockToGctInternEtSumsAndJetCluster(), and GctFormatTranslateV38::blockToGctInternEtSumsAndJetCluster().
|
static |
Definition at line 30 of file L1GctInternEtSum.cc.
References bx(), capBlock(), capIndex(), data, jet_tot_ht, kTotEtOrHtMaxValue, kTotEtOrHtNBits, alignCSCRings::s, and testProducerWithPsetDescEmpty_cfi::x1.
Referenced by GctFormatTranslateV35::blockToGctInternEtSumsAndJetCluster(), and GctFormatTranslateV38::blockToGctInternEtSumsAndJetCluster().
|
static |
Definition at line 73 of file L1GctInternEtSum.cc.
References bx(), capBlock(), capIndex(), data, kMissExOrEyNBits, miss_etx_or_ety, and alignCSCRings::s.
Referenced by GctFormatTranslateV35::blockToGctWheelInputInternEtAndRingSums(), GctFormatTranslateV38::blockToGctWheelInputInternEtAndRingSums(), GctFormatTranslateV35::blockToGctWheelOutputInternEtAndRingSums(), and GctFormatTranslateV38::blockToGctWheelOutputInternEtAndRingSums().
|
static |
Definition at line 59 of file L1GctInternEtSum.cc.
References bx(), capBlock(), capIndex(), data, kTotEtOrHtMaxValue, kTotEtOrHtNBits, alignCSCRings::s, total_et_or_ht, and testProducerWithPsetDescEmpty_cfi::x1.
Referenced by GctFormatTranslateV35::blockToGctInternEtSums(), GctFormatTranslateV38::blockToGctInternEtSums(), GctFormatTranslateV35::blockToGctWheelInputInternEtAndRingSums(), GctFormatTranslateV38::blockToGctWheelInputInternEtAndRingSums(), GctFormatTranslateV35::blockToGctWheelOutputInternEtAndRingSums(), and GctFormatTranslateV38::blockToGctWheelOutputInternEtAndRingSums().
|
inline |
get oflow
Definition at line 103 of file L1GctInternEtSum.h.
References data_.
Referenced by setOflow().
|
inline |
inequality operator
Definition at line 137 of file L1GctInternEtSum.h.
References HltBtagPostValidation_cff::c.
bool L1GctInternEtSum::operator== | ( | const L1GctInternEtSum & | c | ) | const |
operators
equality operator
Definition at line 140 of file L1GctInternEtSum.cc.
References bx_, HltBtagPostValidation_cff::c, and data_.
|
inline |
get the actual bits
get the raw data
Definition at line 91 of file L1GctInternEtSum.h.
References data_.
|
inline |
|
inline |
set cap block
Definition at line 108 of file L1GctInternEtSum.h.
References capBlock(), and capBlock_.
|
inline |
set cap index
Definition at line 111 of file L1GctInternEtSum.h.
References capIndex(), and capIndex_.
void L1GctInternEtSum::setCount | ( | uint32_t | count | ) |
void L1GctInternEtSum::setEt | ( | uint32_t | et | ) |
set Et sum
set et
Definition at line 149 of file L1GctInternEtSum.cc.
References et(), and setValue().
Referenced by L1GctInternEtSum().
void L1GctInternEtSum::setOflow | ( | uint8_t | oflow | ) |
set overflow bit
Definition at line 155 of file L1GctInternEtSum.cc.
References data_, and oflow().
Referenced by L1GctInternEtSum().
|
inline |
void L1GctInternEtSum::setValue | ( | uint32_t | val | ) |
set value
Definition at line 143 of file L1GctInternEtSum.cc.
References data_, and heppy_batch::val.
Referenced by setCount(), and setEt().
|
inline |
metadata
'type' of object - not required?
Definition at line 74 of file L1GctInternEtSum.h.
References type_.
Referenced by setType().
|
inline |
get value
Definition at line 94 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(), 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 146 of file L1GctInternEtSum.h.
Referenced by bx(), operator==(), and setBx().
|
private |
Definition at line 144 of file L1GctInternEtSum.h.
Referenced by capBlock(), and setCapBlock().
|
private |
Definition at line 145 of file L1GctInternEtSum.h.
Referenced by capIndex(), and setCapIndex().
|
private |
Definition at line 149 of file L1GctInternEtSum.h.
Referenced by empty(), oflow(), operator==(), raw(), setOflow(), setValue(), and value().
|
private |
Definition at line 141 of file L1GctInternEtSum.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_(), setType(), and type().