CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Functions
L1GctJet.h File Reference
#include <functional>
#include <vector>
#include <ostream>
#include <memory>
#include "DataFormats/L1CaloTrigger/interface/L1CaloRegionDetId.h"
#include <cstdint>

Go to the source code of this file.

Classes

class  L1GctJet
 A Level-1 jet candidate, used within GCT emulation. More...
 

Functions

std::ostream & operator<< (std::ostream &os, const L1GctJet &cand)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const L1GctJet cand 
)

Definition at line 22 of file L1GctJet.cc.

References L1GctJet::globalEta(), L1GctJet::globalPhi(), L1GctJet::isCentralJet(), L1GctJet::isForwardJet(), L1GctJet::isNullJet(), L1GctJet::isTauJet(), L1GctJet::m_rawsum, and L1GctJet::overFlow().

22  {
23  os << "L1 Gct jet";
24  os << " energy sum " << cand.m_rawsum;
25  if (cand.overFlow()) {
26  os << ", overflow bit set;";
27  }
28  os << " Eta " << cand.globalEta();
29  os << " Phi " << cand.globalPhi();
30  if (cand.isForwardJet()) {
31  os << ", Forward jet";
32  }
33  if (cand.isCentralJet()) {
34  os << ", Central jet";
35  }
36  if (cand.isTauJet()) {
37  os << ", Tau jet";
38  }
39  if (cand.isNullJet()) {
40  os << ", Null jet";
41  }
42 
43  return os;
44 }
bool isTauJet() const
test whether this jet candidate is a valid tau jet
Definition: L1GctJet.h:64
uint16_t m_rawsum
Definition: L1GctJet.h:122
bool isNullJet() const
test whether this jet candidate has been filled
Definition: L1GctJet.h:73
unsigned globalPhi() const
phi value in global CMS coordinates
Definition: L1GctJet.h:96
unsigned globalEta() const
eta value in global CMS coordinates
Definition: L1GctJet.h:93
bool overFlow() const
get overflow
Definition: L1GctJet.h:61
bool isForwardJet() const
test whether this jet candidate is a forward jet
Definition: L1GctJet.h:70
bool isCentralJet() const
test whether this jet candidate is a (non-tau) central jet
Definition: L1GctJet.h:67