#include <CalibCalorimetry/CaloMiscalibTools/interface/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.
00013 :MiscalibReaderFromXML(map){};
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 }