CMS 3D CMS Logo

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

Go to the source code of this file.

Classes

class  L1GctInternEtSum
 L1 GCT internal energy sum. More...
 

Functions

std::ostream & operator<< (std::ostream &s, const L1GctInternEtSum &c)
 Pretty-print operator for L1GctInternEtSum. More...
 

Function Documentation

std::ostream& operator<< ( std::ostream &  s,
const L1GctInternEtSum c 
)

Pretty-print operator for L1GctInternEtSum.

Definition at line 161 of file L1GctInternEtSum.cc.

References L1GctInternEtSum::bx(), L1GctInternEtSum::capBlock(), L1GctInternEtSum::capIndex(), TauDecayModes::dec, L1GctInternEtSum::empty(), L1GctInternEtSum::et(), L1GctInternEtSum::jet_miss_et, L1GctInternEtSum::jet_tot_et, L1GctInternEtSum::jet_tot_ht, L1GctInternEtSum::miss_etx_or_ety, L1GctInternEtSum::oflow(), alignCSCRings::s, L1GctInternEtSum::total_et_or_ht, and L1GctInternEtSum::type().

161  {
162  s << "L1GctInternEtSum : ";
163 
164  if (c.type() == L1GctInternEtSum::jet_miss_et) {
165  s << " type=jet_miss_et";
166  } else if (c.type() == L1GctInternEtSum::jet_tot_et) {
167  s << " type=jet_tot_et";
168  } else if (c.type() == L1GctInternEtSum::jet_tot_ht) {
169  s << " type=jet_tot_ht";
170  } else if (c.type() == L1GctInternEtSum::total_et_or_ht) {
171  s << " type=total_et_or_ht";
172  } else if (c.type() == L1GctInternEtSum::miss_etx_or_ety) {
173  s << " type=miss_etx_or_ety";
174  }
175 
176  if (c.empty()) {
177  s << " empty!";
178  } else {
179  s << " mag=" << c.et();
180  if (c.oflow()) {
181  s << " overflow set";
182  }
183  }
184 
185  s << " cap block=" << std::hex << c.capBlock();
186  s << " index=" << std::dec << c.capIndex();
187  s << " BX=" << c.bx();
188 
189  return s;
190 }
uint16_t capIndex() const
get index within capture block
uint16_t capBlock() const
get capture block
bool empty() const
is the sum non-zero
uint8_t oflow() const
get oflow
L1GctInternEtSum::L1GctInternEtSumType type() const
metadata
uint32_t et() const
get et
int16_t bx() const
get BX number