#include "DataFormats/HcalDetId/interface/HcalGenericDetId.h"
#include "DataFormats/HcalDetId/interface/HcalDetId.h"
#include "DataFormats/HcalDetId/interface/HcalTrigTowerDetId.h"
#include "DataFormats/HcalDetId/interface/HcalZDCDetId.h"
#include "DataFormats/HcalDetId/interface/HcalCastorDetId.h"
#include "DataFormats/HcalDetId/interface/HcalCalibDetId.h"
#include <iostream>
#include <cstdlib>
Go to the source code of this file.
Functions | |
std::ostream & | operator<< (std::ostream &s, const HcalGenericDetId &id) |
std::ostream& operator<< | ( | std::ostream & | s, |
const HcalGenericDetId & | id | ||
) |
Definition at line 74 of file HcalGenericDetId.cc.
References HcalGenericDetId::HcalGenBarrel, HcalGenericDetId::HcalGenCalibration, HcalGenericDetId::HcalGenCastor, HcalGenericDetId::HcalGenEndcap, HcalGenericDetId::HcalGenForward, HcalGenericDetId::HcalGenOuter, HcalGenericDetId::HcalGenTriggerTower, HcalGenericDetId::HcalGenZDC, and asciidump::s.
{ if (id.null()) s << "(Null Id)"; else switch (id.genericSubdet()) { case HcalGenericDetId::HcalGenBarrel: case HcalGenericDetId::HcalGenEndcap: case HcalGenericDetId::HcalGenOuter: case HcalGenericDetId::HcalGenForward: s << HcalDetId(id); break; case HcalGenericDetId::HcalGenTriggerTower: s << HcalTrigTowerDetId(id); break; case HcalGenericDetId::HcalGenZDC: s << HcalZDCDetId(id); break; case HcalGenericDetId::HcalGenCastor: s << HcalCastorDetId(id); break; case HcalGenericDetId::HcalGenCalibration: s << HcalCalibDetId(id); break; default: s << "(Hcal Unknown Id: 0x" << std::hex << id.rawId() << std::dec << ')'; } return s; }