test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions
L1GctHFRingEtSums.h File Reference
#include <ostream>
#include <string>
#include <stdint.h>

Go to the source code of this file.

Classes

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

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.

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