CMS 3D CMS Logo

Functions

/data/refman/pasoursint/CMSSW_6_1_1/src/DataFormats/HcalDetId/src/HcalElectronicsId.cc File Reference

#include "DataFormats/HcalDetId/interface/HcalElectronicsId.h"

Go to the source code of this file.

Functions

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

Function Documentation

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

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')) << ')'; 
  }
}