CMS 3D CMS Logo

Functions

/data/refman/pasoursint/CMSSW_5_2_7_hltpatch1/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')) << ')'; 
  }
}