CMS 3D CMS Logo

HcalCalibDetId.h File Reference

#include <ostream>
#include "DataFormats/HcalDetId/interface/HcalSubdetector.h"
#include "DataFormats/HcalDetId/interface/HcalOtherDetId.h"

Go to the source code of this file.

Classes

class  HcalCalibDetId
 Contents of the HcalCalibDetId : [19:17] Calibration Category (1 = CalibUnit, 2 = HX). More...

Defines

#define DATAFORMATS_HCALDETID_HCALCALIBDETID_H   1

Functions

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


Define Documentation

#define DATAFORMATS_HCALDETID_HCALCALIBDETID_H   1

Definition at line 2 of file HcalCalibDetId.h.


Function Documentation

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

Definition at line 83 of file HcalCalibDetId.cc.

References HcalCalibDetId::calibFlavor(), HcalCalibDetId::CalibrationBox, HcalBarrel, HcalEndcap, HcalForward, HcalOuter, HcalCalibDetId::hcalSubdet(), and HcalCalibDetId::HOCrosstalk.

00083                                                                {
00084   std::string sd;
00085   switch (id.hcalSubdet()) {
00086     case(HcalBarrel) : sd="HB"; break;
00087     case(HcalEndcap) : sd="HE"; break;
00088     case(HcalOuter) : sd="HO"; break;
00089     case(HcalForward) : sd="HF"; break;
00090     default: break;
00091   }
00092   switch (id.calibFlavor()) {
00093   case(HcalCalibDetId::CalibrationBox):
00094     return s << "(HcalCalibBox " << sd << ' ' << id.ieta() << "," << id.iphi()
00095              << ' ' << id.cboxChannelString() << ')';
00096   case(HcalCalibDetId::HOCrosstalk):
00097     return s << "(HOCrosstalk "  << id.ieta() << "," << id.iphi() 
00098              << ')';
00099   default: return s;
00100   };
00101 }


Generated on Tue Jun 9 17:52:07 2009 for CMSSW by  doxygen 1.5.4