CMS 3D CMS Logo

Functions
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

◆ operator<<()

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

Definition at line 61 of file CastorElectronicsId.cc.

61  {
62  if (id.isTriggerChainId()) {
63  return os << id.dccid() << ',' << id.spigot() << ",SLB" << id.slbSiteNumber() << ',' << id.slbChannelIndex()
64  << " (HTR " << id.readoutVMECrateId() << ":" << id.htrSlot() << ((id.htrTopBottom() == 1) ? ('t') : ('b'))
65  << ')';
66 
67  } else {
68  return os << id.dccid() << ',' << id.spigot() << ',' << id.fiberIndex() << ',' << id.fiberChanId() << " (HTR "
69  << id.readoutVMECrateId() << ":" << id.htrSlot() << ((id.htrTopBottom() == 1) ? ('t') : ('b')) << ')';
70  }
71 }