![]() |
![]() |
#include <DataFormats/L1GlobalCaloTrigger/interface/L1GctHFRingEtSums.h>
Public Member Functions | |
int16_t | bx () const |
get BX number | |
uint16_t | capBlock () const |
get GCT unpacker capture block | |
uint16_t | capIndex () const |
get index within GCT unpacker capture block | |
bool | empty () const |
is the sum non-zero | |
uint16_t | etSum (unsigned const i) const |
get an Et sum index : sum 0 : Ring 1 Positive Rapidity HF Et sum 1 : Ring 1 Negative Rapidity HF Et sum 2 : Ring 2 Positive Rapidity HF Et sum 3 : Ring 2 Negative Rapidity HF Et sum | |
L1GctHFRingEtSums () | |
default constructor (for vector initialisation etc.) | |
bool | operator!= (const L1GctHFRingEtSums &c) const |
inequality operator | |
bool | operator== (const L1GctHFRingEtSums &c) const |
operators | |
uint16_t | raw () const |
get the raw data | |
void | setBx (uint16_t bx) |
set bx | |
void | setCapBlock (uint16_t capBlock) |
set cap block | |
void | setCapIndex (uint16_t capIndex) |
set cap index | |
void | setData (uint32_t data) |
set the raw data | |
void | setEtSum (unsigned i, uint16_t et) |
set a sum | |
~L1GctHFRingEtSums () | |
destructor | |
Static Public Member Functions | |
static L1GctHFRingEtSums | fromConcRingSums (const uint16_t capBlock, const uint16_t capIndex, const int16_t bx, const uint32_t data) |
named ctor for unpacker note that this expects a 32 bit word that also contains the HF bit counts, which are ignored | |
static L1GctHFRingEtSums | fromGctEmulator (const int16_t bx, const uint16_t etSumPosEtaRing1, const uint16_t etSumPosEtaRing2, const uint16_t etSumNegEtaRing1, const uint16_t etSumNegEtaRing2) |
named ctor for GCT emulator | |
static unsigned | nSums () |
Static Public Attributes | |
static const unsigned | N_SUMS = 4 |
Private Attributes | |
int16_t | bx_ |
uint16_t | capBlock_ |
uint16_t | capIndex_ |
uint16_t | data_ |
Definition at line 17 of file L1GctHFRingEtSums.h.
L1GctHFRingEtSums::L1GctHFRingEtSums | ( | ) |
L1GctHFRingEtSums::~L1GctHFRingEtSums | ( | ) |
int16_t L1GctHFRingEtSums::bx | ( | ) | const [inline] |
get BX number
Definition at line 61 of file L1GctHFRingEtSums.h.
References bx_.
00061 { return bx_; }
uint16_t L1GctHFRingEtSums::capBlock | ( | ) | const [inline] |
get GCT unpacker capture block
Definition at line 55 of file L1GctHFRingEtSums.h.
References capBlock_.
00055 { return capBlock_; }
uint16_t L1GctHFRingEtSums::capIndex | ( | ) | const [inline] |
get index within GCT unpacker capture block
Definition at line 58 of file L1GctHFRingEtSums.h.
References capIndex_.
00058 { return capIndex_; }
bool L1GctHFRingEtSums::empty | ( | ) | const [inline] |
is the sum non-zero
Definition at line 64 of file L1GctHFRingEtSums.h.
References data_.
00064 { return (data_ == 0); }
uint16_t L1GctHFRingEtSums::etSum | ( | unsigned const | i | ) | const |
get an Et sum index : sum 0 : Ring 1 Positive Rapidity HF Et sum 1 : Ring 1 Negative Rapidity HF Et sum 2 : Ring 2 Positive Rapidity HF Et sum 3 : Ring 2 Negative Rapidity HF Et sum
get an Et sum index : sum 0 : Ring 1 Positive Rapidity HF Et sum 1 : Ring 1 Negative Rapidity HF Et sum 2 : Ring 2 Positive Rapidity HF Et sum 3 : Ring 2 Negative Rapidity HF Et sum
Definition at line 61 of file L1GctHFRingEtSums.cc.
References data_.
Referenced by L1GtHfRingEtSumsCondition::evaluateCondition(), L1GlobalTriggerPSB::fillPsbBlock(), and operator<<().
L1GctHFRingEtSums L1GctHFRingEtSums::fromConcRingSums | ( | const uint16_t | capBlock, | |
const uint16_t | capIndex, | |||
const int16_t | bx, | |||
const uint32_t | data | |||
) | [static] |
named ctor for unpacker note that this expects a 32 bit word that also contains the HF bit counts, which are ignored
Definition at line 23 of file L1GctHFRingEtSums.cc.
References s, setBx(), setCapBlock(), setCapIndex(), and setEtSum().
Referenced by GctFormatTranslateV35::blockToGctJetCandsAndCounts(), GctFormatTranslateV38::blockToGctJetCandsAndCounts(), and GctFormatTranslateMCLegacy::blockToGctJetCandsAndCounts().
00027 { 00028 L1GctHFRingEtSums s; 00029 s.setCapBlock(capBlock); 00030 s.setCapIndex(capIndex); 00031 s.setBx(bx); 00032 s.setEtSum(0, (data>>12)&0x7 ); 00033 s.setEtSum(1, (data>>16)&0x7 ); 00034 s.setEtSum(2, (data>>19)&0x7 ); 00035 s.setEtSum(3, (data>>22)&0x7 ); 00036 return s; 00037 }
L1GctHFRingEtSums L1GctHFRingEtSums::fromGctEmulator | ( | const int16_t | bx, | |
const uint16_t | etSumPosEtaRing1, | |||
const uint16_t | etSumPosEtaRing2, | |||
const uint16_t | etSumNegEtaRing1, | |||
const uint16_t | etSumNegEtaRing2 | |||
) | [static] |
named ctor for GCT emulator
Definition at line 40 of file L1GctHFRingEtSums.cc.
References s, setBx(), and setEtSum().
Referenced by L1GlobalCaloTrigger::getHFRingEtSumsCollection().
00045 { 00046 L1GctHFRingEtSums s; 00047 s.setBx(bx); 00048 s.setEtSum(0, etSumPosEtaRing1); 00049 s.setEtSum(1, etSumNegEtaRing1); 00050 s.setEtSum(2, etSumPosEtaRing2); 00051 s.setEtSum(3, etSumNegEtaRing2); 00052 return s; 00053 }
static unsigned L1GctHFRingEtSums::nSums | ( | ) | [inline, static] |
Definition at line 50 of file L1GctHFRingEtSums.h.
References N_SUMS.
Referenced by L1GlobalTriggerPSB::fillPsbBlock().
00050 { return N_SUMS; }
bool L1GctHFRingEtSums::operator!= | ( | const L1GctHFRingEtSums & | c | ) | const [inline] |
bool L1GctHFRingEtSums::operator== | ( | const L1GctHFRingEtSums & | c | ) | const |
operators
equality operator
equality operator
Definition at line 67 of file L1GctHFRingEtSums.cc.
References raw().
00067 { 00068 return (this->raw() == c.raw()); 00069 }
uint16_t L1GctHFRingEtSums::raw | ( | ) | const [inline] |
get the raw data
Definition at line 67 of file L1GctHFRingEtSums.h.
References data_.
Referenced by operator==().
00067 { return data_; }
void L1GctHFRingEtSums::setBx | ( | uint16_t | bx | ) | [inline] |
set bx
Definition at line 87 of file L1GctHFRingEtSums.h.
References bx_.
Referenced by fromConcRingSums(), and fromGctEmulator().
void L1GctHFRingEtSums::setCapBlock | ( | uint16_t | capBlock | ) | [inline] |
set cap block
Definition at line 81 of file L1GctHFRingEtSums.h.
References capBlock_.
Referenced by fromConcRingSums().
void L1GctHFRingEtSums::setCapIndex | ( | uint16_t | capIndex | ) | [inline] |
set cap index
Definition at line 84 of file L1GctHFRingEtSums.h.
References capIndex_.
Referenced by fromConcRingSums().
void L1GctHFRingEtSums::setData | ( | uint32_t | data | ) | [inline] |
void L1GctHFRingEtSums::setEtSum | ( | unsigned | i, | |
uint16_t | et | |||
) |
set a sum
Definition at line 72 of file L1GctHFRingEtSums.cc.
References data_.
Referenced by fromConcRingSums(), and fromGctEmulator().
int16_t L1GctHFRingEtSums::bx_ [private] |
uint16_t L1GctHFRingEtSums::capBlock_ [private] |
uint16_t L1GctHFRingEtSums::capIndex_ [private] |
uint16_t L1GctHFRingEtSums::data_ [private] |
Definition at line 113 of file L1GctHFRingEtSums.h.
Referenced by empty(), etSum(), raw(), setData(), and setEtSum().
const unsigned L1GctHFRingEtSums::N_SUMS = 4 [static] |