CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
L1GctJetCand.cc File Reference
#include "DataFormats/L1GlobalCaloTrigger/interface/L1GctJetCand.h"

Go to the source code of this file.

Functions

ostream & operator<< (ostream &s, const L1GctJetCand &cand)
 

Function Documentation

ostream& operator<< ( ostream &  s,
const L1GctJetCand cand 
)

Definition at line 70 of file L1GctJetCand.cc.

References L1GctJetCand::bx(), L1GctJetCand::capBlock(), L1GctJetCand::capIndex(), TauDecayModes::dec, L1GctJetCand::empty(), L1GctJetCand::etaIndex(), L1GctJetCand::etaSign(), L1GctJetCand::isForward(), L1GctJetCand::isTau(), L1GctJetCand::phiIndex(), L1GctJetCand::rank(), and alignCSCRings::s.

70  {
71  if (cand.empty()) {
72  s << "L1GctJetCand empty jet";
73  } else {
74  s << "L1GctJetCand : ";
75  s << "rank=" << cand.rank();
76  s << ", etaSign=" << cand.etaSign() << ", eta=" << (cand.etaIndex() & 0x7) << ", phi=" << cand.phiIndex();
77  s << " type=";
78  if (cand.isTau()) {
79  s << "tau";
80  } else if (cand.isForward()) {
81  s << "forward";
82  } else {
83  s << "central";
84  }
85  }
86  s << hex << " cap block=" << cand.capBlock() << dec << ", index=" << cand.capIndex() << ", BX=" << cand.bx();
87  return s;
88 }
bool isTau() const
check if this is a tau
Definition: L1GctJetCand.h:68
unsigned capBlock() const
which capture block did this come from
Definition: L1GctJetCand.h:74
int16_t bx() const
get bunch-crossing index
Definition: L1GctJetCand.h:80
bool isForward() const
check if this is a forward jet
Definition: L1GctJetCand.h:71
unsigned etaSign() const override
get eta sign bit (1 for -ve Z, 0 for +ve Z)
Definition: L1GctJetCand.h:59
unsigned rank() const override
get rank bits
Definition: L1GctJetCand.h:53
unsigned phiIndex() const override
get phi index (0-17)
Definition: L1GctJetCand.h:62
unsigned capIndex() const
what index within capture block
Definition: L1GctJetCand.h:77
unsigned etaIndex() const override
get eta index (bit 3 is sign, 1 for -ve Z, 0 for +ve Z)
Definition: L1GctJetCand.h:56
bool empty() const override
was an object really found?
Definition: L1GctJetCand.h:47