CMS 3D CMS Logo

Classes | Functions

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/Geometry/CaloGeometry/interface/CaloGenericDetId.h File Reference

#include "DataFormats/DetId/interface/DetId.h"
#include "DataFormats/EcalDetId/interface/EBDetId.h"
#include "DataFormats/EcalDetId/interface/EEDetId.h"
#include "DataFormats/EcalDetId/interface/ESDetId.h"
#include "DataFormats/HcalDetId/interface/HcalDetId.h"
#include "DataFormats/HcalDetId/interface/HcalZDCDetId.h"
#include "DataFormats/HcalDetId/interface/HcalCastorDetId.h"
#include "DataFormats/CaloTowers/interface/CaloTowerDetId.h"

Go to the source code of this file.

Classes

class  CaloGenericDetId

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 ) ) ) ) ) ) ;
}