CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
MiscalibReaderXMLHcal.cc
Go to the documentation of this file.
3 
4 DetId MiscalibReaderFromXMLHcal::parseCellEntry(XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attribute) {
6  getIntAttribute(attribute, "eta_index"),
7  getIntAttribute(attribute, "phi_index"),
8  getIntAttribute(attribute, "depth_index"));
9  return cell;
10 }
11 
12 HcalDetId MiscalibReaderFromXMLHcal::getCellFromAttributes(int idet, int ieta, int iphi, int idepth) {
13  try {
14  HcalDetId cell((HcalSubdetector)idet, ieta, iphi, idepth);
15  return cell;
16  } catch (...) {
17  std::cout << "Null coordinates = " << idet << "," << ieta << "," << iphi << "," << idepth << std::endl;
18  return HcalDetId(0);
19  }
20 }
HcalDetId getCellFromAttributes(int idet, int ieta, int iphi, int idepth)
HcalSubdetector
Definition: HcalAssistant.h:31
Definition: DetId.h:17
tuple cout
Definition: gather_cfg.py:144
DetId parseCellEntry(XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attribute) override
int getIntAttribute(XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attribute, const std::string &attribute_name)