CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 58 of file L1GctHFBitCounts.cc.

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

58  {
59  s << "L1GctHFBitCounts :";
60 
61  if (cand.empty()) {
62  s << " empty";
63  } else {
64  s << " ring1 eta+=" << cand.bitCount(0);
65  s << " ring1 eta-=" << cand.bitCount(1);
66  s << " ring2 eta+=" << cand.bitCount(2);
67  s << " ring2 eta-=" << cand.bitCount(3);
68  s << std::endl;
69  }
70 
71  s << std::hex << " cap block=" << cand.capBlock() << std::dec << " index=" << cand.capIndex() << " BX=" << cand.bx();
72 
73  return s;
74 }
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