CMS 3D CMS Logo

Classes | Functions

/data/refman/pasoursint/CMSSW_5_3_6/src/DataFormats/HcalDetId/interface/CastorElectronicsId.h File Reference

#include <string>
#include <ostream>
#include <stdint.h>

Go to the source code of this file.

Classes

class  CastorElectronicsId
 Readout chain identification for Castor Bits for the readout chain : some names need change! [31:26] not used [25] [24:20] [19] [18:14] [13:9] [8:5] [4:2] [1:0]. More...

Functions

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

Function Documentation

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

Definition at line 51 of file CastorElectronicsId.cc.

                                                                     {
  if (id.isTriggerChainId()) {
    return os << id.dccid() << ',' << id.spigot() << ",SLB" << id.slbSiteNumber() << ',' << id.slbChannelIndex() << " (HTR "
              << id.readoutVMECrateId() << ":" << id.htrSlot() << ((id.htrTopBottom()==1)?('t'):('b')) << ')'; 
    
  } else {
    return os << id.dccid() << ',' << id.spigot() << ',' << id.fiberIndex() << ',' << id.fiberChanId() << " (HTR "
              << id.readoutVMECrateId() << ":" << id.htrSlot() << ((id.htrTopBottom()==1)?('t'):('b')) << ')'; 
  }
}