CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
L1GctEmCand.cc File Reference
#include "DataFormats/L1GlobalCaloTrigger/interface/L1GctEmCand.h"
#include <iostream>

Go to the source code of this file.

Functions

ostream & operator<< (ostream &s, const L1GctEmCand &cand)
 

Function Documentation

ostream& operator<< ( ostream &  s,
const L1GctEmCand cand 
)

Definition at line 113 of file L1GctEmCand.cc.

References L1GctEmCand::bx(), L1GctEmCand::capBlock(), L1GctEmCand::capIndex(), L1GctEmCand::etaIndex(), L1GctEmCand::etaSign(), L1GctEmCand::isolated(), L1GctEmCand::phiIndex(), L1GctEmCand::rank(), and asciidump::s.

113  {
114  s << "L1GctEmCand : ";
115  s << "rank=" << cand.rank();
116  s << ", etaSign=" << cand.etaSign() << ", eta=" << (cand.etaIndex()&0x7) << ", phi=" << cand.phiIndex();
117  s << ", iso=" << cand.isolated();
118  s << hex << " cap block=" << cand.capBlock() << dec << ", index=" << cand.capIndex() << ", BX=" << cand.bx();
119  return s;
120 }
unsigned capIndex() const
what index within capture block
Definition: L1GctEmCand.h:79
unsigned etaSign() const
get eta sign (1 for -ve Z, 0 for +ve Z)
Definition: L1GctEmCand.h:67
unsigned rank() const
get rank bits
Definition: L1GctEmCand.cc:124
unsigned phiIndex() const
get phi index (0-17)
Definition: L1GctEmCand.cc:122
unsigned etaIndex() const
get eta index -6 to -0, +0 to +6 (bit 3 is sign, 1 for -ve Z, 0 for +ve Z)
Definition: L1GctEmCand.cc:123
bool isolated() const
which stream did this come from
Definition: L1GctEmCand.h:73
int16_t bx() const
get bunch-crossing index
Definition: L1GctEmCand.h:82
string s
Definition: asciidump.py:422
unsigned capBlock() const
which capture block did this come from
Definition: L1GctEmCand.h:76