#include "DataFormats/HcalDetId/interface/HcalCastorDetId.h"
#include "DataFormats/HcalDetId/interface/HcalGenericDetId.h"
#include "FWCore/Utilities/interface/Exception.h"
Go to the source code of this file.
Functions | |
std::ostream & | operator<< (std::ostream &s, const HcalCastorDetId &id) |
std::ostream& operator<< | ( | std::ostream & | s, |
const HcalCastorDetId & | id | ||
) |
Definition at line 121 of file HcalCastorDetId.cc.
References HcalCastorDetId::EM, and HcalCastorDetId::HAD.
{ s << "(CASTOR" << ((id.zside()==1)?("+"):("-")); switch (id.section()) { case(HcalCastorDetId::EM) : s << " EM "; break; case(HcalCastorDetId::HAD) : s << " HAD "; break; default : s <<" UNKNOWN "; } return s << id.sector() << ',' << id.module() << ',' << ')'; }