CMS 3D CMS Logo

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

◆ operator<<()

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

Pretty-print operator for L1GctInternEtSum.

Definition at line 161 of file L1GctInternEtSum.cc.

References HltBtagPostValidation_cff::c, TauDecayModes::dec, L1GctInternEtSum::jet_miss_et, L1GctInternEtSum::jet_tot_et, L1GctInternEtSum::jet_tot_ht, L1GctInternEtSum::miss_etx_or_ety, alignCSCRings::s, and L1GctInternEtSum::total_et_or_ht.

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 }