CMS 3D CMS Logo

Classes | Functions

/data/refman/pasoursint/CMSSW_5_3_10_patch1/src/DataFormats/HcalDetId/interface/HcalCastorDetId.h File Reference

#include <ostream>
#include "DataFormats/DetId/interface/DetId.h"

Go to the source code of this file.

Classes

class  HcalCastorDetId

Functions

std::ostream & operator<< (std::ostream &, const HcalCastorDetId &id)

Function Documentation

std::ostream& operator<< ( std::ostream &  ,
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() << ',' << ')';
}