CMS 3D CMS Logo

Functions

/data/refman/pasoursint/CMSSW_6_1_1/src/DataFormats/L1GlobalCaloTrigger/src/L1GctHFBitCounts.cc File Reference

#include "DataFormats/L1GlobalCaloTrigger/interface/L1GctHFBitCounts.h"

Go to the source code of this file.

Functions

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

Function Documentation

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

Definition at line 76 of file L1GctHFBitCounts.cc.

References L1GctHFBitCounts::bitCount(), L1GctHFBitCounts::bx(), L1GctHFBitCounts::capBlock(), L1GctHFBitCounts::capIndex(), L1GctHFBitCounts::empty(), and alignCSCRings::s.

{
  s << "L1GctHFBitCounts :";

  if (cand.empty()) {
    s << " empty";
  } else {    
    s << " ring1 eta+=" << cand.bitCount(0);
    s << " ring1 eta-=" << cand.bitCount(1);
    s << " ring2 eta+=" << cand.bitCount(2);
    s << " ring2 eta-=" << cand.bitCount(3);
    s << std::endl; 
  }

  s << std::hex << " cap block=" << cand.capBlock() << std::dec << " index=" << cand.capIndex() << " BX=" << cand.bx();

  return s;
}