CMS 3D CMS Logo

HcalDetId.cc
Go to the documentation of this file.
2 #include <ostream>
3 #include <iostream>
4 
6 
7 std::ostream& operator<<(std::ostream& s,const HcalDetId& id) {
8  switch (id.subdet()) {
9  case(HcalBarrel) : return s << "(HB " << id.ieta() << ',' << id.iphi() << ',' << id.depth() << ')';
10  case(HcalEndcap) : return s << "(HE " << id.ieta() << ',' << id.iphi() << ',' << id.depth() << ')';
11  case(HcalForward) : return s << "(HF " << id.ieta() << ',' << id.iphi() << ',' << id.depth() << ')';
12  case(HcalOuter) : return s << "(HO " << id.ieta() << ',' << id.iphi() << ')';
13  case(HcalTriggerTower) : return s << "(HT " << id.ieta() << ',' << id.iphi() << ')';
14  default : return s << std::hex << id.rawId() << std::dec;
15  }
16 }
17 
18 
static const HcalDetId Undefined
Definition: HcalDetId.h:268
std::ostream & operator<<(std::ostream &s, const HcalDetId &id)
Definition: HcalDetId.cc:7