CMS 3D CMS Logo

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 25 of file HcalElectronicsId.cc.

References HcalElectronicsId::isTriggerChainId(), and HcalElectronicsId::isUTCAid().

25  {
26  if (id.isUTCAid()) {
27  if (id.isTriggerChainId()) os << "UTCA(trigger): ";
28  else os << "UTCA: ";
29  return os << id.crateId() << ',' << id.slot() << ',' << id.fiberIndex() << ',' << id.fiberChanId();
30  } else {
31  if (id.isTriggerChainId()) {
32  return os << id.dccid() << ',' << id.spigot() << ",SLB" << id.slbSiteNumber() << ',' << id.slbChannelIndex() << " (HTR "
33  << id.readoutVMECrateId() << ":" << id.htrSlot() << ((id.htrTopBottom()==1)?('t'):('b')) << ')';
34 
35  } else {
36  return os << id.dccid() << ',' << id.spigot() << ',' << id.fiberIndex() << ',' << id.fiberChanId() << " (HTR "
37  << id.readoutVMECrateId() << ":" << id.htrSlot() << ((id.htrTopBottom()==1)?('t'):('b')) << ')';
38  }
39  }
40 }