#include <MiscalibReaderFromXMLHcal.h>
Public Member Functions | |
HcalDetId | getCellFromAttributes (int idet, int ieta, int iphi, int idepth) |
MiscalibReaderFromXMLHcal (CaloMiscalibMapHcal &map) | |
virtual DetId | parseCellEntry (XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attribute) |
Definition at line 10 of file MiscalibReaderFromXMLHcal.h.
MiscalibReaderFromXMLHcal::MiscalibReaderFromXMLHcal | ( | CaloMiscalibMapHcal & | map | ) | [inline] |
Definition at line 13 of file MiscalibReaderFromXMLHcal.h.
:MiscalibReaderFromXML(map){};
HcalDetId MiscalibReaderFromXMLHcal::getCellFromAttributes | ( | int | idet, |
int | ieta, | ||
int | iphi, | ||
int | idepth | ||
) |
Definition at line 18 of file MiscalibReaderXMLHcal.cc.
References gather_cfg::cout.
Referenced by parseCellEntry().
{ try { HcalDetId cell((HcalSubdetector) idet, ieta, iphi, idepth); return cell; } catch (...) { std::cout << "Null coordinates = "<< idet << "," << ieta << "," << iphi << "," << idepth << std::endl; return HcalDetId(0); } }
DetId MiscalibReaderFromXMLHcal::parseCellEntry | ( | XERCES_CPP_NAMESPACE::DOMNamedNodeMap * | attribute | ) | [virtual] |
Implements MiscalibReaderFromXML.
Definition at line 6 of file MiscalibReaderXMLHcal.cc.
References getCellFromAttributes(), and MiscalibReaderFromXML::getIntAttribute().
{ HcalDetId cell= MiscalibReaderFromXMLHcal::getCellFromAttributes( getIntAttribute(attribute,"det_index"), getIntAttribute(attribute,"eta_index"), getIntAttribute(attribute,"phi_index"), getIntAttribute(attribute,"depth_index") ); return cell; }