CMS 3D CMS Logo

Classes | Functions

/data/refman/pasoursint/CMSSW_5_2_7_hltpatch1/src/L1Trigger/GlobalCaloTrigger/interface/L1GctJet.h File Reference

#include <boost/cstdint.hpp>
#include <functional>
#include <vector>
#include <ostream>
#include "DataFormats/L1CaloTrigger/interface/L1CaloRegionDetId.h"
#include "boost/shared_ptr.hpp"

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 23 of file L1GctJet.cc.

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

{
  os << "L1 Gct jet";
  os << " energy sum " << cand.m_rawsum;
  if (cand.overFlow()) { os << ", overflow bit set;"; }
  os << " Eta " << cand.globalEta();
  os << " Phi " << cand.globalPhi();
  if (cand.isForwardJet()) { os << ", Forward jet"; }
  if (cand.isCentralJet()) { os << ", Central jet"; }
  if (cand.isTauJet()) { os << ", Tau jet"; }
  if (cand.isNullJet()) { os << ", Null jet"; }

  return os;
}