CMS 3D CMS Logo

Public Member Functions

MiscalibReaderFromXMLHcal Class Reference

#include <MiscalibReaderFromXMLHcal.h>

Inheritance diagram for MiscalibReaderFromXMLHcal:
MiscalibReaderFromXML

List of all members.

Public Member Functions

HcalDetId getCellFromAttributes (int idet, int ieta, int iphi, int idepth)
 MiscalibReaderFromXMLHcal (CaloMiscalibMapHcal &map)
virtual DetId parseCellEntry (XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attribute)

Detailed Description

Definition at line 10 of file MiscalibReaderFromXMLHcal.h.


Constructor & Destructor Documentation

MiscalibReaderFromXMLHcal::MiscalibReaderFromXMLHcal ( CaloMiscalibMapHcal map) [inline]

Definition at line 13 of file MiscalibReaderFromXMLHcal.h.


Member Function Documentation

HcalDetId MiscalibReaderFromXMLHcal::getCellFromAttributes ( int  idet,
int  ieta,
int  iphi,
int  idepth 
)

Definition at line 18 of file MiscalibReaderXMLHcal.cc.

References gather_cfg::cout.

Referenced by parseCellEntry().

{
  try
    {
      HcalDetId cell((HcalSubdetector) idet, ieta, iphi, idepth);
      return cell;
    }
  catch (...)
    {
      std::cout << "Null coordinates = "<< idet << "," << ieta << "," << iphi << "," << idepth << std::endl;
      return HcalDetId(0);
    }
}
DetId MiscalibReaderFromXMLHcal::parseCellEntry ( XERCES_CPP_NAMESPACE::DOMNamedNodeMap *  attribute) [virtual]

Implements MiscalibReaderFromXML.

Definition at line 6 of file MiscalibReaderXMLHcal.cc.

References getCellFromAttributes(), and MiscalibReaderFromXML::getIntAttribute().

{

HcalDetId cell= MiscalibReaderFromXMLHcal::getCellFromAttributes(
                                            getIntAttribute(attribute,"det_index"),
                                            getIntAttribute(attribute,"eta_index"),
                                            getIntAttribute(attribute,"phi_index"),
                                            getIntAttribute(attribute,"depth_index")
                                            );
return cell;
}