CMS 3D CMS Logo

Functions

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_13_patch3/src/DataFormats/L1GlobalCaloTrigger/src/L1GctHFRingEtSums.cc File Reference

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

Go to the source code of this file.

Functions

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

Function Documentation

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

Definition at line 77 of file L1GctHFRingEtSums.cc.

References L1GctHFRingEtSums::bx(), L1GctHFRingEtSums::capBlock(), L1GctHFRingEtSums::capIndex(), L1GctHFRingEtSums::empty(), L1GctHFRingEtSums::etSum(), and alignCSCRings::s.

{
  s << "L1GctHFRingEtSums :";

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

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

  return s;
}