CMS 3D CMS Logo

Functions

/data/refman/pasoursint/CMSSW_5_2_7_hltpatch2/src/DataFormats/HcalDetId/src/HcalCastorDetId.cc File Reference

#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)

Function Documentation

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() << ',' << ')';
}