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

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

Definition at line 51 of file CastorElectronicsId.cc.

References CastorElectronicsId::isTriggerChainId().

51  {
52  if (id.isTriggerChainId()) {
53  return os << id.dccid() << ',' << id.spigot() << ",SLB" << id.slbSiteNumber() << ',' << id.slbChannelIndex() << " (HTR "
54  << id.readoutVMECrateId() << ":" << id.htrSlot() << ((id.htrTopBottom()==1)?('t'):('b')) << ')';
55 
56  } else {
57  return os << id.dccid() << ',' << id.spigot() << ',' << id.fiberIndex() << ',' << id.fiberChanId() << " (HTR "
58  << id.readoutVMECrateId() << ":" << id.htrSlot() << ((id.htrTopBottom()==1)?('t'):('b')) << ')';
59  }
60 }