test
CMS 3D CMS Logo

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

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

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