CMS 3D CMS Logo

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 87 of file L1GctInternHFData.cc.

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

87  {
88  s << "L1GctInternHFData :";
89 
90  if (cand.empty()) {
91  s << " empty";
92  } else {
94  s << " type=conc_hf_ring_et_sums";
95  s << " ring1 eta+=" << cand.et(0);
96  s << " ring1 eta-=" << cand.et(1);
97  s << " ring2 eta+=" << cand.et(2);
98  s << " ring2 eta-=" << cand.et(3);
99  } else if (cand.type() == L1GctInternHFData::conc_hf_bit_counts) {
100  s << " type=conc_hf_bit_counts";
101  s << " ring1 eta+=" << cand.count(0);
102  s << " ring1 eta-=" << cand.count(1);
103  s << " ring2 eta+=" << cand.count(2);
104  s << " ring2 eta-=" << cand.count(3);
105  } else if (cand.type() == L1GctInternHFData::wheel_hf_ring_et_sums) {
106  s << " type=conc_hf_ring_et_sums";
107  s << " Et sum=" << cand.et(0);
108  } else if (cand.type() == L1GctInternHFData::wheel_hf_bit_counts) {
109  s << " type=wheel_hf_bit_counts";
110  s << " Bit count=" << cand.et(0);
111  }
112  }
113  s << std::endl;
114 
115  s << std::hex << " cap block=" << cand.capBlock() << std::dec << " index=" << cand.capIndex() << " BX=" << cand.bx();
116 
117  return s;
118 }
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