CMS 3D CMS Logo

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

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

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

Pretty-print operator for L1GctInternEtSum.

Definition at line 181 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().

182 {
183  s << "L1GctInternEtSum : ";
184 
186  s << " type=jet_miss_et";
187  } else if (c.type()==L1GctInternEtSum::jet_tot_et){
188  s << " type=jet_tot_et";
189  } else if (c.type()==L1GctInternEtSum::jet_tot_ht){
190  s << " type=jet_tot_ht";
191  } else if (c.type()==L1GctInternEtSum::total_et_or_ht){
192  s << " type=total_et_or_ht";
193  } else if (c.type()==L1GctInternEtSum::miss_etx_or_ety){
194  s << " type=miss_etx_or_ety";
195  }
196 
197  if (c.empty()) {
198  s << " empty!";
199  } else {
200  s << " mag=" << c.et();
201  if (c.oflow()) { s << " overflow set"; }
202  }
203 
204  s << " cap block=" << std::hex << c.capBlock();
205  s << " index=" << std::dec << c.capIndex();
206  s << " BX=" << c.bx();
207 
208  return s;
209 }
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