4 #include <boost/cstdint.hpp>
22 #include "boost/shared_ptr.hpp"
38 typedef boost::shared_ptr<L1GctJetEtCalibrationLut>
lutPtr;
42 const bool forwardJet=
true,
const bool tauVeto=
true,
const int16_t
bx=0);
83 const bool forwardJet,
const bool tauVeto=
true,
const int16_t
bx=0);
98 unsigned hwEta()
const;
101 unsigned hwPhi()
const;
111 uint16_t
rank(
const lutPtr lut)
const;
125 uint16_t
lutValue (
const lutPtr lut)
const;
unsigned hwEta() const
eta value as encoded in hardware at the GCT output
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.
void setRawsum(const uint16_t rawsum)
unsigned ieta() const
global eta index (0-21)
Level-1 Trigger jet candidate.
unsigned rctPhi() const
return local RCT phi index (0-1)
unsigned rctEta() const
return local RCT eta index (0-10)
void setOverFlow(const bool overFlow)
unsigned hwPhi() const
phi value as encoded in hardware at the GCT output
A Level-1 jet candidate, used within GCT emulation.
uint16_t rank(const lutPtr lut) const
The two separate Lut outputs.
void setBx(const int16_t bx)
void setDetId(const L1CaloRegionDetId detId)
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 isTauJet() const
test whether this jet candidate is a valid tau jet
void setForward(const bool forward)
bool isNullJet() const
test whether this jet candidate has been filled
bool operator==(const L1GctJet &cand) const
test whether two jets are the same
void setTauVeto(const bool tauVeto)
unsigned calibratedEt(const lutPtr lut) const
int16_t bx() const
the bunch crossing number
L1CaloRegionDetId m_id
region id, encodes eta and phi
unsigned globalPhi() const
phi value in global CMS coordinates
uint16_t lutValue(const lutPtr lut) const
unsigned globalEta() const
eta value in global CMS coordinates
boost::shared_ptr< L1GctJetEtCalibrationLut > lutPtr
bool operator!=(const L1GctJet &cand) const
test whether two jets are different
L1CaloRegionDetId id() const
bool overFlow() const
get overflow
unsigned rctPhi() const
phi value in global CMS coordinates
unsigned iphi() const
global phi index (0-17)
bool isForwardJet() const
test whether this jet candidate is a forward jet
unsigned rctEta() const
eta value in global CMS coordinates
bool isCentralJet() const
test whether this jet candidate is a (non-tau) central jet
L1GctJetCand jetCand(const lutPtr lut) const
Functions to convert from internal format to external jet candidates at the output of the jetFinder...
friend std::ostream & operator<<(std::ostream &os, const L1GctJet &cand)