CMS 3D CMS Logo

HcalDetId.h File Reference

#include <ostream>
#include <iostream>
#include "DataFormats/DetId/interface/DetId.h"
#include "DataFormats/HcalDetId/interface/HcalSubdetector.h"

Go to the source code of this file.

Classes

class  HcalDetId
 Cell identifier class for the HCAL subdetectors, precision readout cells only. More...

Defines

#define DATAFORMATS_HCALDETID_HCALDETID_H   1

Functions

std::ostream & operator<< (std::ostream &, const HcalDetId &id)


Define Documentation

#define DATAFORMATS_HCALDETID_HCALDETID_H   1

Definition at line 2 of file HcalDetId.h.


Function Documentation

std::ostream& operator<< ( std::ostream &  ,
const HcalDetId id 
)

Definition at line 58 of file HcalDetId.cc.

References HcalBarrel, HcalEndcap, HcalForward, HcalOuter, and HcalDetId::subdet().

00058                                                           {
00059   switch (id.subdet()) {
00060   case(HcalBarrel) : return s << "(HB " << id.ieta() << ',' << id.iphi() << ',' << id.depth() << ')';
00061   case(HcalEndcap) : return s << "(HE " << id.ieta() << ',' << id.iphi() << ',' << id.depth() << ')';
00062   case(HcalForward) : return s << "(HF " << id.ieta() << ',' << id.iphi() << ',' << id.depth() << ')';
00063   case(HcalOuter) : return s << "(HO " << id.ieta() << ',' << id.iphi() << ')';
00064   default : return s << id.rawId();
00065   }
00066 }


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