A Level-1 jet candidate, used within GCT emulation. More...
#include <L1GctJet.h>
Public Types | |
typedef boost::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 27 of file L1GctJet.h.
typedef boost::shared_ptr<L1GctJetEtCalibrationLut> L1GctJet::lutPtr |
Definition at line 38 of file L1GctJet.h.
Enumerator | |
---|---|
kRawsumBitWidth | |
kRawsumMaxValue |
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 8 of file L1GctJet.cc.
L1GctJet::~L1GctJet | ( | ) |
Definition at line 19 of file L1GctJet.cc.
|
inline |
the bunch crossing number
Definition at line 104 of file L1GctJet.h.
References m_bx.
Referenced by setBx(), and setupJet().
unsigned L1GctJet::calibratedEt | ( | const lutPtr | lut | ) | const |
Definition at line 113 of file L1GctJet.cc.
References m_rawsum.
|
inline |
eta value in global CMS coordinates
Definition at line 86 of file L1GctJet.h.
References L1CaloRegionDetId::ieta(), and m_id.
Referenced by isNullJet(), operator!=(), operator<<(), and operator==().
|
inline |
phi value in global CMS coordinates
Definition at line 89 of file L1GctJet.h.
References L1CaloRegionDetId::iphi(), and m_id.
Referenced by isNullJet(), operator!=(), operator<<(), and operator==().
unsigned L1GctJet::hwEta | ( | ) | const |
eta value as encoded in hardware at the GCT output
Definition at line 79 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 87 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 65 of file L1GctJet.h.
References m_forwardJet, and m_tauVeto.
Referenced by operator<<().
|
inline |
test whether this jet candidate is a forward jet
Definition at line 68 of file L1GctJet.h.
References m_forwardJet.
Referenced by jetCand(), operator!=(), operator<<(), and operator==().
|
inline |
test whether this jet candidate has been filled
Definition at line 71 of file L1GctJet.h.
References globalEta(), globalPhi(), and m_rawsum.
Referenced by operator!=(), operator<<(), and operator==().
|
inline |
test whether this jet candidate is a valid tau jet
Definition at line 62 of file L1GctJet.h.
References m_forwardJet, and m_tauVeto.
Referenced by jetCand(), and operator<<().
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 94 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 100 of file L1GctJet.cc.
References jetCand(), rctEta(), and mps_fire::result.
|
private |
Definition at line 119 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 53 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 39 of file L1GctJet.cc.
References globalEta(), globalPhi(), isForwardJet(), isNullJet(), overFlow(), rawsum(), mps_fire::result, and tauVeto().
|
inline |
get overflow
Definition at line 59 of file L1GctJet.h.
References m_overFlow.
Referenced by operator!=(), operator<<(), operator==(), and setOverFlow().
uint16_t L1GctJet::rank | ( | const lutPtr | lut | ) | const |
The two separate Lut outputs.
Definition at line 108 of file L1GctJet.cc.
References lutValue().
Referenced by jetCand().
|
inline |
Definition at line 54 of file L1GctJet.h.
References m_rawsum.
Referenced by operator!=(), and operator==().
|
inline |
eta value in global CMS coordinates
Definition at line 92 of file L1GctJet.h.
References m_id, and L1CaloRegionDetId::rctEta().
Referenced by jetCand().
|
inline |
phi value in global CMS coordinates
Definition at line 95 of file L1GctJet.h.
References m_id, and L1CaloRegionDetId::rctPhi().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 46 of file L1GctJet.h.
References kRawsumMaxValue, m_overFlow, and m_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 66 of file L1GctJet.cc.
References bx(), kRawsumMaxValue, m_bx, m_forwardJet, m_id, m_overFlow, m_rawsum, m_tauVeto, and groupFilesInBlocks::temp.
|
inline |
Definition at line 56 of file L1GctJet.h.
References m_tauVeto.
Referenced by operator!=(), operator==(), and setTauVeto().
|
friend |
Definition at line 23 of file L1GctJet.cc.
|
private |
Definition at line 123 of file L1GctJet.h.
Referenced by bx(), jetCand(), setBx(), and setupJet().
|
private |
Definition at line 121 of file L1GctJet.h.
Referenced by isCentralJet(), isForwardJet(), isTauJet(), lutValue(), setForward(), and setupJet().
|
private |
region id, encodes eta and phi
Definition at line 119 of file L1GctJet.h.
Referenced by globalEta(), globalPhi(), hwEta(), hwPhi(), id(), rctEta(), rctPhi(), setDetId(), and setupJet().
|
private |
Definition at line 120 of file L1GctJet.h.
Referenced by lutValue(), overFlow(), setOverFlow(), setRawsum(), and setupJet().
|
private |
Definition at line 117 of file L1GctJet.h.
Referenced by calibratedEt(), isNullJet(), lutValue(), operator<<(), rawsum(), setRawsum(), and setupJet().
|
private |
Definition at line 122 of file L1GctJet.h.
Referenced by isCentralJet(), isTauJet(), lutValue(), setTauVeto(), setupJet(), and tauVeto().