CMS 3D CMS Logo

MiscalibReaderFromXMLEcalEndcap Class Reference

#include <CalibCalorimetry/CaloMiscalibTools/interface/MiscalibReaderFromXMLEcalEndcap.h>

Inheritance diagram for MiscalibReaderFromXMLEcalEndcap:

MiscalibReaderFromXML

List of all members.

Public Member Functions

EEDetId getCellFromAttributes (int ix, int iy, int iz)
 MiscalibReaderFromXMLEcalEndcap (CaloMiscalibMapEcal &map)
virtual DetId parseCellEntry (XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attribute)


Detailed Description

Definition at line 10 of file MiscalibReaderFromXMLEcalEndcap.h.


Constructor & Destructor Documentation

MiscalibReaderFromXMLEcalEndcap::MiscalibReaderFromXMLEcalEndcap ( CaloMiscalibMapEcal map  )  [inline]

Definition at line 13 of file MiscalibReaderFromXMLEcalEndcap.h.

00013 :MiscalibReaderFromXML(map){};


Member Function Documentation

EEDetId MiscalibReaderFromXMLEcalEndcap::getCellFromAttributes ( int  ix,
int  iy,
int  iz 
)

Definition at line 16 of file MiscalibReaderXMLEcalEndcap.cc.

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

Referenced by parseCellEntry().

00017 {
00018 
00019        try 
00020          {
00021            if (EEDetId::validDetId(ix, iy, iz)) {
00022              EEDetId cell(ix,iy,iz);
00023              return cell;
00024            } else {
00025              return (EEDetId) NULL;
00026            }
00027          }
00028     
00029            catch (...)
00030           
00031         {
00032           std::cout << "Null coordinates = "<< ix << "," << iy << "," << iz << std::endl;
00033           return (EEDetId) NULL;
00034         }
00035             
00036             
00037 }

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

Implements MiscalibReaderFromXML.

Definition at line 5 of file MiscalibReaderXMLEcalEndcap.cc.

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

00006 {
00007 
00008 EEDetId cell= MiscalibReaderFromXMLEcalEndcap::getCellFromAttributes(
00009                                             getIntAttribute(attribute,"x_index"),
00010                                             getIntAttribute(attribute,"y_index"),
00011                                             getIntAttribute(attribute,"z_index")
00012                                             );
00013 return cell;
00014 }


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