CMS 3D CMS Logo

Public Member Functions

MiscalibReaderFromXMLEcalEndcap Class Reference

#include <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.


Member Function Documentation

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

Definition at line 16 of file MiscalibReaderXMLEcalEndcap.cc.

References gather_cfg::cout, and EEDetId::validDetId().

Referenced by parseCellEntry().

{

       try 
         {
           if (EEDetId::validDetId(ix, iy, iz)) {
             EEDetId cell(ix,iy,iz);
             return cell;
           } else {
             return EEDetId(0);
           }
         }
    
           catch (...)
          
        {
          std::cout << "Null coordinates = "<< ix << "," << iy << "," << iz << std::endl;
          return EEDetId(0);
        }
            
            
}
DetId MiscalibReaderFromXMLEcalEndcap::parseCellEntry ( XERCES_CPP_NAMESPACE::DOMNamedNodeMap *  attribute) [virtual]

Implements MiscalibReaderFromXML.

Definition at line 5 of file MiscalibReaderXMLEcalEndcap.cc.

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

{

EEDetId cell= MiscalibReaderFromXMLEcalEndcap::getCellFromAttributes(
                                            getIntAttribute(attribute,"x_index"),
                                            getIntAttribute(attribute,"y_index"),
                                            getIntAttribute(attribute,"z_index")
                                            );
return cell;
}