CMS 3D CMS Logo

HcalElectronicsId.h File Reference

#include <string>
#include <ostream>

Go to the source code of this file.

Classes

class  HcalElectronicsId
 Readout chain identification for Hcal [31:26] Unused (so far) [25] Trigger-chain id flag [24:20] Readout Crate Id [19] HTR FPGA selector [t/b] [18:14] HTR Slot [13:9] DCC id [8:5] Spigot [4:2] FiberIndex or SLB site [1:0] FiberChanId or SLB channel. More...

Defines

#define DATAFORMATS_HCALDETID_HCALELECTRONICSID_H   1

Functions

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


Define Documentation

#define DATAFORMATS_HCALDETID_HCALELECTRONICSID_H   1

Definition at line 2 of file HcalElectronicsId.h.


Function Documentation

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

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