CMS 3D CMS Logo

Functions

/data/refman/pasoursint/CMSSW_6_1_2_SLHC2/src/DataFormats/L1GlobalCaloTrigger/src/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 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.

                                                          {
  if (cand.empty()) {
    s << "L1GctJetCand empty jet";
  } else {
    s << "L1GctJetCand : ";
    s << "rank=" << cand.rank();
    s << ", etaSign=" << cand.etaSign() << ", eta=" << (cand.etaIndex()&0x7) << ", phi=" << cand.phiIndex();
    s << " type=";
    if (cand.isTau()) { s << "tau"; }
    else if (cand.isForward()) { s << "forward"; }
    else { s << "central"; }
  }
  s << hex << " cap block=" << cand.capBlock() << dec << ", index=" << cand.capIndex() << ", BX=" << cand.bx();
  return s;
}