A Level-1 jet candidate, used within GCT emulation. More...
#include <L1GctJet.h>
Public Types | |
typedef std::shared_ptr< L1GctJetEtCalibrationLut > | lutPtr |
enum | numberOfBits { kRawsumBitWidth = 10, kRawsumMaxValue = (1 << kRawsumBitWidth) - 1 } |
Public Member Functions | |
int16_t | bx () const |
the bunch crossing number More... | |
unsigned | calibratedEt (const lutPtr lut) const |
unsigned | globalEta () const |
eta value in global CMS coordinates More... | |
unsigned | globalPhi () const |
phi value in global CMS coordinates More... | |
unsigned | hwEta () const |
eta value as encoded in hardware at the GCT output More... | |
unsigned | hwPhi () const |
phi value as encoded in hardware at the GCT output More... | |
L1CaloRegionDetId | id () const |
bool | isCentralJet () const |
test whether this jet candidate is a (non-tau) central jet More... | |
bool | isForwardJet () const |
test whether this jet candidate is a forward jet More... | |
bool | isNullJet () const |
test whether this jet candidate has been filled More... | |
bool | isTauJet () const |
test whether this jet candidate is a valid tau jet More... | |
L1GctJetCand | jetCand (const lutPtr lut) const |
Functions to convert from internal format to external jet candidates at the output of the jetFinder. More... | |
L1GctJetCand | jetCand (const std::vector< lutPtr > &luts) const |
Function to convert from internal format to external jet candidates at the output of the jetFinder. More... | |
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) | |
bool | operator!= (const L1GctJet &cand) const |
test whether two jets are different More... | |
bool | operator== (const L1GctJet &cand) const |
test whether two jets are the same More... | |
bool | overFlow () const |
get overflow More... | |
uint16_t | rank (const lutPtr lut) const |
The two separate Lut outputs. More... | |
uint16_t | rawsum () const |
unsigned | rctEta () const |
eta value in global CMS coordinates More... | |
unsigned | rctPhi () const |
phi value in global CMS coordinates More... | |
void | setBx (const int16_t bx) |
void | setDetId (const L1CaloRegionDetId detId) |
void | setForward (const bool forward) |
void | setOverFlow (const bool overFlow) |
void | setRawsum (const uint16_t rawsum) |
void | setTauVeto (const bool tauVeto) |
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. More... | |
bool | tauVeto () const |
~L1GctJet () | |
Private Member Functions | |
uint16_t | lutValue (const lutPtr lut) const |
Private Attributes | |
int16_t | m_bx |
bool | m_forwardJet |
L1CaloRegionDetId | m_id |
region id, encodes eta and phi More... | |
bool | m_overFlow |
uint16_t | m_rawsum |
bool | m_tauVeto |
Friends | |
std::ostream & | operator<< (std::ostream &os, const L1GctJet &cand) |
A Level-1 jet candidate, used within GCT emulation.
Move this to DataFormats/L1GlobalCaloTrigger if possible
Definition at line 26 of file L1GctJet.h.
typedef std::shared_ptr<L1GctJetEtCalibrationLut> L1GctJet::lutPtr |
Definition at line 32 of file L1GctJet.h.
L1GctJet::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 |
||
) |
Definition at line 6 of file L1GctJet.cc.
L1GctJet::~L1GctJet | ( | ) |
Definition at line 20 of file L1GctJet.cc.
|
inline |
the bunch crossing number
Definition at line 111 of file L1GctJet.h.
References m_bx.
Referenced by setBx(), and setupJet().
unsigned L1GctJet::calibratedEt | ( | const lutPtr | lut | ) | const |
|
inline |
eta value in global CMS coordinates
Definition at line 93 of file L1GctJet.h.
References L1CaloRegionDetId::ieta(), and m_id.
Referenced by isNullJet(), operator!=(), and operator==().
|
inline |
phi value in global CMS coordinates
Definition at line 96 of file L1GctJet.h.
References L1CaloRegionDetId::iphi(), and m_id.
Referenced by isNullJet(), operator!=(), and operator==().
unsigned L1GctJet::hwEta | ( | ) | const |
eta value as encoded in hardware at the GCT output
Definition at line 89 of file L1GctJet.cc.
References L1CaloRegionDetId::ieta(), m_id, and L1CaloRegionDetId::rctEta().
Referenced by jetCand().
unsigned L1GctJet::hwPhi | ( | ) | const |
phi value as encoded in hardware at the GCT output
Definition at line 96 of file L1GctJet.cc.
References L1CaloRegionDetId::iphi(), and m_id.
Referenced by jetCand().
|
inline |
|
inline |
test whether this jet candidate is a (non-tau) central jet
Definition at line 67 of file L1GctJet.h.
References m_forwardJet, and m_tauVeto.
|
inline |
test whether this jet candidate is a forward jet
Definition at line 70 of file L1GctJet.h.
References m_forwardJet.
Referenced by jetCand(), operator!=(), and operator==().
|
inline |
test whether this jet candidate has been filled
Definition at line 73 of file L1GctJet.h.
References globalEta(), globalPhi(), and m_rawsum.
Referenced by operator!=(), and operator==().
|
inline |
test whether this jet candidate is a valid tau jet
Definition at line 64 of file L1GctJet.h.
References m_forwardJet, and m_tauVeto.
Referenced by jetCand().
L1GctJetCand L1GctJet::jetCand | ( | const lutPtr | lut | ) | const |
Functions to convert from internal format to external jet candidates at the output of the jetFinder.
Function to convert from internal format to external jet candidates at the output of the jetFinder.
Definition at line 102 of file L1GctJet.cc.
References hwEta(), hwPhi(), isForwardJet(), isTauJet(), m_bx, and rank().
Referenced by jetCand().
L1GctJetCand L1GctJet::jetCand | ( | const std::vector< lutPtr > & | luts | ) | const |
Function to convert from internal format to external jet candidates at the output of the jetFinder.
Definition at line 107 of file L1GctJet.cc.
References jetCand(), rctEta(), and mps_fire::result.
|
private |
Definition at line 120 of file L1GctJet.cc.
References L1GctJetEtCalibrationLut::JET_ENERGY_BITWIDTH, m_forwardJet, m_overFlow, m_rawsum, m_tauVeto, and mps_fire::result.
Referenced by rank().
bool L1GctJet::operator!= | ( | const L1GctJet & | cand | ) | const |
test whether two jets are different
Definition at line 60 of file L1GctJet.cc.
References globalEta(), globalPhi(), isForwardJet(), isNullJet(), overFlow(), rawsum(), mps_fire::result, and tauVeto().
bool L1GctJet::operator== | ( | const L1GctJet & | cand | ) | const |
test whether two jets are the same
Definition at line 47 of file L1GctJet.cc.
References globalEta(), globalPhi(), isForwardJet(), isNullJet(), overFlow(), rawsum(), mps_fire::result, and tauVeto().
|
inline |
get overflow
Definition at line 61 of file L1GctJet.h.
References m_overFlow.
Referenced by operator!=(), operator==(), setOverFlow(), and setupJet().
uint16_t L1GctJet::rank | ( | const lutPtr | lut | ) | const |
The two separate Lut outputs.
Definition at line 115 of file L1GctJet.cc.
References lutValue().
Referenced by jetCand().
|
inline |
Definition at line 56 of file L1GctJet.h.
References m_rawsum.
Referenced by operator!=(), operator==(), setRawsum(), and setupJet().
|
inline |
eta value in global CMS coordinates
Definition at line 99 of file L1GctJet.h.
References m_id, and L1CaloRegionDetId::rctEta().
Referenced by jetCand().
|
inline |
phi value in global CMS coordinates
Definition at line 102 of file L1GctJet.h.
References m_id, and L1CaloRegionDetId::rctPhi().
|
inline |
Definition at line 53 of file L1GctJet.h.
Referenced by L1GctJetFinderBase::setupObjects().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 45 of file L1GctJet.h.
References kRawsumMaxValue, m_overFlow, m_rawsum, and rawsum().
|
inline |
void L1GctJet::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.
Definition at line 72 of file L1GctJet.cc.
References bx(), PVValHelper::eta, kRawsumMaxValue, m_bx, m_forwardJet, m_id, m_overFlow, m_rawsum, m_tauVeto, overFlow(), phi, rawsum(), tauVeto(), and groupFilesInBlocks::temp.
|
inline |
Definition at line 58 of file L1GctJet.h.
References m_tauVeto.
Referenced by operator!=(), operator==(), setTauVeto(), and setupJet().
|
friend |
Definition at line 22 of file L1GctJet.cc.
|
private |
Definition at line 128 of file L1GctJet.h.
Referenced by bx(), jetCand(), setBx(), and setupJet().
|
private |
Definition at line 126 of file L1GctJet.h.
Referenced by isCentralJet(), isForwardJet(), isTauJet(), lutValue(), setForward(), and setupJet().
|
private |
region id, encodes eta and phi
Definition at line 124 of file L1GctJet.h.
Referenced by globalEta(), globalPhi(), hwEta(), hwPhi(), id(), rctEta(), rctPhi(), setDetId(), and setupJet().
|
private |
Definition at line 125 of file L1GctJet.h.
Referenced by lutValue(), overFlow(), setOverFlow(), setRawsum(), and setupJet().
|
private |
Definition at line 122 of file L1GctJet.h.
Referenced by calibratedEt(), isNullJet(), lutValue(), rawsum(), setRawsum(), and setupJet().
|
private |
Definition at line 127 of file L1GctJet.h.
Referenced by isCentralJet(), isTauJet(), lutValue(), setTauVeto(), setupJet(), and tauVeto().