#include <MiscalibReaderFromXMLEcalEndcap.h>
Public Member Functions | |
EEDetId | getCellFromAttributes (int ix, int iy, int iz) |
MiscalibReaderFromXMLEcalEndcap (CaloMiscalibMapEcal &map) | |
virtual DetId | parseCellEntry (XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attribute) |
Definition at line 10 of file MiscalibReaderFromXMLEcalEndcap.h.
MiscalibReaderFromXMLEcalEndcap::MiscalibReaderFromXMLEcalEndcap | ( | CaloMiscalibMapEcal & | map | ) | [inline] |
Definition at line 13 of file MiscalibReaderFromXMLEcalEndcap.h.
:MiscalibReaderFromXML(map){};
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; }