CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions
L1GctJetCand.h File Reference
#include <ostream>
#include <string>
#include "DataFormats/L1GlobalCaloTrigger/interface/L1GctCand.h"
#include "DataFormats/L1CaloTrigger/interface/L1CaloRegionDetId.h"

Go to the source code of this file.

Classes

class  L1GctJetCand
 Level-1 Trigger jet candidate. More...
 

Functions

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

Function Documentation

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

Definition at line 81 of file L1GctJetCand.cc.

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

81  {
82  if (cand.empty()) {
83  s << "L1GctJetCand empty jet";
84  } else {
85  s << "L1GctJetCand : ";
86  s << "rank=" << cand.rank();
87  s << ", etaSign=" << cand.etaSign() << ", eta=" << (cand.etaIndex()&0x7) << ", phi=" << cand.phiIndex();
88  s << " type=";
89  if (cand.isTau()) { s << "tau"; }
90  else if (cand.isForward()) { s << "forward"; }
91  else { s << "central"; }
92  }
93  s << hex << " cap block=" << cand.capBlock() << dec << ", index=" << cand.capIndex() << ", BX=" << cand.bx();
94  return s;
95 }
bool isTau() const
check if this is a tau
Definition: L1GctJetCand.h:68
unsigned rank() const
get rank bits
Definition: L1GctJetCand.h:53
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
unsigned etaIndex() const
get eta index (bit 3 is sign, 1 for -ve Z, 0 for +ve Z)
Definition: L1GctJetCand.h:56
bool isForward() const
check if this is a forward jet
Definition: L1GctJetCand.h:71
bool empty() const
was an object really found?
Definition: L1GctJetCand.h:47
unsigned etaSign() const
get eta sign bit (1 for -ve Z, 0 for +ve Z)
Definition: L1GctJetCand.h:59
unsigned capIndex() const
what index within capture block
Definition: L1GctJetCand.h:77
unsigned phiIndex() const
get phi index (0-17)
Definition: L1GctJetCand.h:62