CMS 3D CMS Logo

Functions
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

◆ operator<<()

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

Definition at line 41 of file HcalElectronicsId.cc.

41  {
42  if (id.isUTCAid()) {
43  if (id.isTriggerChainId())
44  os << "UTCA(trigger): ";
45  else
46  os << "UTCA: ";
47  return os << id.crateId() << ',' << id.slot() << ',' << id.fiberIndex() << ',' << id.fiberChanId();
48  } else {
49  if (id.isTriggerChainId()) {
50  return os << id.dccid() << ',' << id.spigot() << ",SLB" << id.slbSiteNumber() << ',' << id.slbChannelIndex()
51  << " (HTR " << id.readoutVMECrateId() << ":" << id.htrSlot()
52  << ((id.htrTopBottom() == 1) ? ('t') : ('b')) << ')';
53 
54  } else {
55  return os << id.dccid() << ',' << id.spigot() << ',' << id.fiberIndex() << ',' << id.fiberChanId() << " (HTR "
56  << id.readoutVMECrateId() << ":" << id.htrSlot() << ((id.htrTopBottom() == 1) ? ('t') : ('b')) << ')';
57  }
58  }
59 }