CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Functions
HcalElectronicsId.h File Reference
#include <string>
#include <ostream>
#include <cstdint>

Go to the source code of this file.

Classes

class  HcalElectronicsId
 Readout chain identification for Hcal. More...
 

Functions

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

Function Documentation

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

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 }