CMS 3D CMS Logo

Functions

/data/refman/pasoursint/CMSSW_4_4_5_patch3/src/DataFormats/HcalDetId/src/CastorElectronicsId.cc File Reference

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

Go to the source code of this file.

Functions

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

Function Documentation

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

Definition at line 51 of file CastorElectronicsId.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')) << ')'; 
  }
}