CMS 3D CMS Logo

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

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 61 of file L1GctHFRingEtSums.cc.

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

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