CMS 3D CMS Logo

MiscalibReaderFromXMLHcal Class Reference

#include <CalibCalorimetry/CaloMiscalibTools/interface/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.

00013 :MiscalibReaderFromXML(map){};


Member Function Documentation

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

Definition at line 18 of file MiscalibReaderXMLHcal.cc.

References GenMuonPlsPt100GeV_cfg::cout, lat::endl(), and NULL.

Referenced by parseCellEntry().

00019 {
00020   try
00021     {
00022       HcalDetId cell((HcalSubdetector) idet, ieta, iphi, idepth);
00023       return cell;
00024     }
00025   catch (...)
00026     {
00027       std::cout << "Null coordinates = "<< idet << "," << ieta << "," << iphi << "," << idepth << std::endl;
00028       return (HcalDetId) NULL;
00029     }
00030 }

DetId MiscalibReaderFromXMLHcal::parseCellEntry ( XERCES_CPP_NAMESPACE::DOMNamedNodeMap *  attribute  )  [virtual]

Implements MiscalibReaderFromXML.

Definition at line 6 of file MiscalibReaderXMLHcal.cc.

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

00007 {
00008 
00009 HcalDetId cell= MiscalibReaderFromXMLHcal::getCellFromAttributes(
00010                                             getIntAttribute(attribute,"det_index"),
00011                                             getIntAttribute(attribute,"eta_index"),
00012                                             getIntAttribute(attribute,"phi_index"),
00013                                             getIntAttribute(attribute,"depth_index")
00014                                             );
00015 return cell;
00016 }


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:28:17 2009 for CMSSW by  doxygen 1.5.4