CMS 3D CMS Logo

Classes | Functions

/data/refman/pasoursint/CMSSW_5_2_9/src/DataFormats/HcalDetId/interface/HcalElectronicsId.h File Reference

#include <string>
#include <ostream>
#include <stdint.h>

Go to the source code of this file.

Classes

class  HcalElectronicsId
 Readout chain identification for Hcal [31:26] Unused (so far) [25] Trigger-chain id flag [24:20] Readout Crate Id [19] HTR FPGA selector [t/b] [18:14] HTR Slot [13:9] DCC id [8:5] Spigot [4:2] FiberIndex or SLB site [1:0] FiberChanId or SLB channel. More...

Functions

std::ostream & operator<< (std::ostream &, const HcalElectronicsId &)

Function Documentation

std::ostream& operator<< ( std::ostream &  ,
const HcalElectronicsId  
)

Definition at line 51 of file HcalElectronicsId.cc.

                                                                   {
  if (id.isTriggerChainId()) {
    return os << id.dccid() << ',' << id.spigot() << ",SLB" << id.slbSiteNumber() << ',' << id.slbChannelIndex() << " (HTR "
              << id.readoutVMECrateId() << ":" << id.htrSlot() << ((id.htrTopBottom()==1)?('t'):('b')) << ')'; 
    
  } else {
    return os << id.dccid() << ',' << id.spigot() << ',' << id.fiberIndex() << ',' << id.fiberChanId() << " (HTR "
              << id.readoutVMECrateId() << ":" << id.htrSlot() << ((id.htrTopBottom()==1)?('t'):('b')) << ')'; 
  }
}