54 m_data = (rank & 0x3f) + ((eta & 0xf)<<6) + ((phi & 0x1f)<<10);
67 m_data = (rank & 0x3f) + ((eta & 0xf)<<6) + ((phi & 0x1f)<<10);
74 if (
m_isTau) {
return "tau jet"; }
75 else if (
m_isFor) {
return "forward jet"; }
76 else {
return "central jet"; }
83 s <<
"L1GctJetCand empty jet";
85 s <<
"L1GctJetCand : ";
86 s <<
"rank=" << cand.
rank();
89 if (cand.
isTau()) { s <<
"tau"; }
90 else if (cand.
isForward()) { s <<
"forward"; }
91 else { s <<
"central"; }
93 s << hex <<
" cap block=" << cand.
capBlock() <<
dec <<
", index=" << cand.
capIndex() <<
", BX=" << cand.
bx();
bool isTau() const
check if this is a tau
unsigned rank() const
get rank bits
unsigned capBlock() const
which capture block did this come from
int16_t bx() const
get bunch-crossing index
unsigned etaIndex() const
get eta index (bit 3 is sign, 1 for -ve Z, 0 for +ve Z)
Level-1 Trigger jet candidate.
virtual ~L1GctJetCand()
destructor (virtual to prevent compiler warnings)
bool isForward() const
check if this is a forward jet
L1CaloRegionDetId regionId() const
region associated with the candidate
ostream & operator<<(ostream &s, const L1GctJetCand &cand)
bool empty() const
was an object really found?
L1GctJetCand()
default constructor (for vector initialisation etc.)
unsigned etaSign() const
get eta sign bit (1 for -ve Z, 0 for +ve Z)
std::string name() const
name of object
unsigned capIndex() const
what index within capture block
unsigned phiIndex() const
get phi index (0-17)