CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
CaloGenericDetId.cc File Reference
#include "Geometry/CaloGeometry/interface/CaloGenericDetId.h"
#include <iostream>

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &s, const CaloGenericDetId &id)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  s,
const CaloGenericDetId id 
)

Definition at line 116 of file CaloGenericDetId.cc.

117 {
118  return ( id.isEB() ? s<<EBDetId( id ) :
119  ( id.isEE() ? s<<EEDetId( id ) :
120  ( id.isES() ? s<<ESDetId( id ) :
121  ( id.isCaloTower() ? s<<CaloTowerDetId( id ) :
122  ( id.isHcal() ? s<<HcalDetId( id ) :
123  ( id.isZDC() ? s<<HcalZDCDetId( id ) :
124  s<<"UnknownId="<<std::hex<<id.rawId()<<std::dec ) ) ) ) ) ) ;
125 }