CMS 3D CMS Logo

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

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

Definition at line 51 of file HcalElectronicsId.cc.

References HcalElectronicsId::isTriggerChainId().

00051                                                                    {
00052   if (id.isTriggerChainId()) {
00053     return os << id.dccid() << ',' << id.spigot() << ",SLB" << id.slbSiteNumber() << ',' << id.slbChannelIndex() << " (HTR "
00054               << id.readoutVMECrateId() << ":" << id.htrSlot() << ((id.htrTopBottom()==1)?('t'):('b')) << ')'; 
00055     
00056   } else {
00057     return os << id.dccid() << ',' << id.spigot() << ',' << id.fiberIndex() << ',' << id.fiberChanId() << " (HTR "
00058               << id.readoutVMECrateId() << ":" << id.htrSlot() << ((id.htrTopBottom()==1)?('t'):('b')) << ')'; 
00059   }
00060 }


Generated on Tue Jun 9 17:52:07 2009 for CMSSW by  doxygen 1.5.4