CMS 3D CMS Logo

Functions
L1GctInternEtSum.cc File Reference
#include "DataFormats/L1GlobalCaloTrigger/interface/L1GctInternEtSum.h"
#include <cstdint>

Go to the source code of this file.

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.

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 }

References 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.

L1GctInternEtSum::miss_etx_or_ety
Definition: L1GctInternEtSum.h:23
L1GctInternEtSum::jet_tot_et
Definition: L1GctInternEtSum.h:19
alignCSCRings.s
s
Definition: alignCSCRings.py:92
L1GctInternEtSum::jet_tot_ht
Definition: L1GctInternEtSum.h:20
L1GctInternEtSum::jet_miss_et
Definition: L1GctInternEtSum.h:21
L1GctInternEtSum::total_et_or_ht
Definition: L1GctInternEtSum.h:22
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:46
TauDecayModes.dec
dec
Definition: TauDecayModes.py:143