test
CMS 3D CMS Logo

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

Go to the source code of this file.

Functions

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

Function Documentation

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

Definition at line 59 of file L1GctInternEmCand.cc.

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

59  {
60  s << "L1GctInternEmCand : ";
61  s << "rank=" << cand.rank();
62  s << ", etaSign=" << cand.etaSign() << ", eta=" << (cand.etaIndex()&0xf) << ", phi=" << cand.phiIndex();
63  s << ", iso=" << cand.isolated();
64  s << " cap block=" << hex << cand.capBlock();
65  s << ", index=" << dec << cand.capIndex() << ", BX=" << cand.bx();
66  return s;
67 }
int16_t bx() const
get bunch-crossing index
unsigned etaIndex() const
get eta index - Barrel 1:4, Endcap 5:7, HF 8:11
unsigned capBlock() const
which capture block did this come from
bool isolated() const
which stream did this come from
unsigned phiIndex() const
get phi index (0-17)
unsigned capIndex() const
what index within capture block
unsigned etaSign() const
get eta sign (1 for -ve Z, 0 for +ve Z)
unsigned rank() const
get rank bits