CMS 3D CMS Logo

Classes | Functions

/data/refman/pasoursint/CMSSW_5_3_0/src/DataFormats/L1GlobalCaloTrigger/interface/L1GctHFBitCounts.h File Reference

#include <ostream>
#include <string>
#include <stdint.h>

Go to the source code of this file.

Classes

class  L1GctHFBitCounts
 L1 GCT HF ring Et sums. More...

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;
}