test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
L1GctInternHFData.cc File Reference
#include "DataFormats/L1GlobalCaloTrigger/interface/L1GctInternHFData.h"

Go to the source code of this file.

Functions

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

Function Documentation

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

Definition at line 109 of file L1GctInternHFData.cc.

References L1GctInternHFData::bx(), L1GctInternHFData::capBlock(), L1GctInternHFData::capIndex(), L1GctInternHFData::conc_hf_bit_counts, L1GctInternHFData::conc_hf_ring_et_sums, L1GctInternHFData::count(), L1GctInternHFData::empty(), L1GctInternHFData::et(), alignCSCRings::s, L1GctInternHFData::type(), L1GctInternHFData::wheel_hf_bit_counts, and L1GctInternHFData::wheel_hf_ring_et_sums.

110 {
111  s << "L1GctInternHFData :";
112 
113  if (cand.empty()) {
114  s << " empty";
115  } else {
117  s << " type=conc_hf_ring_et_sums";
118  s << " ring1 eta+=" << cand.et(0);
119  s << " ring1 eta-=" << cand.et(1);
120  s << " ring2 eta+=" << cand.et(2);
121  s << " ring2 eta-=" << cand.et(3);
122  } else if (cand.type()==L1GctInternHFData::conc_hf_bit_counts){
123  s << " type=conc_hf_bit_counts";
124  s << " ring1 eta+=" << cand.count(0);
125  s << " ring1 eta-=" << cand.count(1);
126  s << " ring2 eta+=" << cand.count(2);
127  s << " ring2 eta-=" << cand.count(3);
129  s << " type=conc_hf_ring_et_sums";
130  s << " Et sum=" << cand.et(0);
131  } else if (cand.type()==L1GctInternHFData::wheel_hf_bit_counts){
132  s << " type=wheel_hf_bit_counts";
133  s << " Bit count=" << cand.et(0);
134  }
135  }
136  s << std::endl;
137 
138  s << std::hex << " cap block=" << cand.capBlock() << std::dec << " index=" << cand.capIndex() << " BX=" << cand.bx();
139 
140  return s;
141 
142 }
L1GctInternHFData::L1GctInternHFDataType type() const
metadata
uint16_t capIndex() const
get index within capture block
uint16_t count(unsigned i) const
get the counts
uint16_t capBlock() const
get capture block
uint16_t et(unsigned i) const
get the et sums
int16_t bx() const
get BX number
bool empty() const
is the sum non-zero