test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions
HcalDetId.h File Reference
#include <iosfwd>
#include "DataFormats/DetId/interface/DetId.h"
#include "DataFormats/HcalDetId/interface/HcalSubdetector.h"

Go to the source code of this file.

Classes

class  HcalDetId
 

Functions

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

Function Documentation

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

Definition at line 232 of file HcalDetId.cc.

References HcalBarrel, HcalEndcap, HcalForward, HcalOuter, and HcalTriggerTower.

232  {
233  switch (id.subdet()) {
234  case(HcalBarrel) : return s << "(HB " << id.ieta() << ',' << id.iphi() << ',' << id.depth() << ')';
235  case(HcalEndcap) : return s << "(HE " << id.ieta() << ',' << id.iphi() << ',' << id.depth() << ')';
236  case(HcalForward) : return s << "(HF " << id.ieta() << ',' << id.iphi() << ',' << id.depth() << ')';
237  case(HcalOuter) : return s << "(HO " << id.ieta() << ',' << id.iphi() << ')';
238  case(HcalTriggerTower) : return s << "(HT " << id.ieta() << ',' << id.iphi() << ')';
239  default : return s << id.rawId();
240  }
241 }