CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
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.

77 {
78  s << "L1GctHFBitCounts :";
79 
80  if (cand.empty()) {
81  s << " empty";
82  } else {
83  s << " ring1 eta+=" << cand.bitCount(0);
84  s << " ring1 eta-=" << cand.bitCount(1);
85  s << " ring2 eta+=" << cand.bitCount(2);
86  s << " ring2 eta-=" << cand.bitCount(3);
87  s << std::endl;
88  }
89 
90  s << std::hex << " cap block=" << cand.capBlock() << std::dec << " index=" << cand.capIndex() << " BX=" << cand.bx();
91 
92  return s;
93 }
bool empty() const
is the sum non-zero
int16_t bx() const
get BX number
uint16_t bitCount(unsigned const i) const
uint16_t capBlock() const
get GCT unpacker capture block
uint16_t capIndex() const
get index within GCT unpacker capture block