CMS 3D CMS Logo

Functions

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/Geometry/CaloGeometry/src/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.

{
   return ( id.isEB() ? s<<EBDetId( id ) :
            ( id.isEE() ? s<<EEDetId( id ) :
              ( id.isES() ? s<<ESDetId( id ) :
                ( id.isCaloTower() ? s<<CaloTowerDetId( id ) :
                  ( id.isHcal() ? s<<HcalDetId( id ) :
                    ( id.isZDC() ? s<<HcalZDCDetId( id ) :
                      s<<"UnknownId="<<std::hex<<id.rawId()<<std::dec ) ) ) ) ) ) ;
}