Go to the documentation of this file.
10 const bool forwardJet,
13 : m_rawsum(rawsum & kRawsumMaxValue),
15 m_overFlow(overFlow || (rawsum > kRawsumMaxValue)),
16 m_forwardJet(forwardJet),
17 m_tauVeto(tauVeto || forwardJet),
24 os <<
" energy sum " <<
cand.m_rawsum;
25 if (
cand.overFlow()) {
26 os <<
", overflow bit set;";
28 os <<
" Eta " <<
cand.globalEta();
29 os <<
" Phi " <<
cand.globalPhi();
30 if (
cand.isForwardJet()) {
31 os <<
", Forward jet";
33 if (
cand.isCentralJet()) {
34 os <<
", Central jet";
36 if (
cand.isTauJet()) {
39 if (
cand.isNullJet()) {
76 const bool forwardJet,
109 if (
rctEta() < luts.size())
131 uint16_t address = static_cast<uint16_t>(addrBits);
132 result = lut->lutValue(address);
Level-1 Trigger jet candidate.
unsigned rctEta() const
return local RCT eta index (0-10)
std::shared_ptr< L1GctJetEtCalibrationLut > lutPtr
unsigned rctEta() const
eta value in global CMS coordinates
uint16_t rank(const lutPtr lut) const
The two separate Lut outputs.
unsigned globalEta() const
eta value in global CMS coordinates
unsigned ieta() const
global eta index (0-21)
static const unsigned JET_ENERGY_BITWIDTH
Input bitwidth of jet energy; must be 10 or more.
L1GctJetCand jetCand(const lutPtr lut) const
Functions to convert from internal format to external jet candidates at the output of the jetFinder.
bool operator==(const L1GctJet &cand) const
test whether two jets are the same
uint16_t lutValue(const lutPtr lut) const
bool isTauJet() const
test whether this jet candidate is a valid tau jet
bool isNullJet() const
test whether this jet candidate has been filled
std::ostream & operator<<(std::ostream &os, const L1GctJet &cand)
unsigned hwPhi() const
phi value as encoded in hardware at the GCT output
unsigned globalPhi() const
phi value in global CMS coordinates
unsigned iphi() const
global phi index (0-17)
L1GctJet(const uint16_t rawsum=0, const unsigned eta=0, const unsigned phi=0, const bool overFlow=false, const bool forwardJet=true, const bool tauVeto=true, const int16_t bx=0)
unsigned hwEta() const
eta value as encoded in hardware at the GCT output
L1CaloRegionDetId m_id
region id, encodes eta and phi
bool isForwardJet() const
test whether this jet candidate is a forward jet
A Level-1 jet candidate, used within GCT emulation.
int16_t bx() const
the bunch crossing number
unsigned calibratedEt(const lutPtr lut) const
bool overFlow() const
get overflow
bool operator!=(const L1GctJet &cand) const
test whether two jets are different
void setupJet(const uint16_t rawsum, const unsigned eta, const unsigned phi, const bool overFlow, const bool forwardJet, const bool tauVeto=true, const int16_t bx=0)
Setup an existing jet all in one go.