CMS 3D CMS Logo

MiscalibReaderXMLEcalEndcap.cc
Go to the documentation of this file.
3 
4 DetId MiscalibReaderFromXMLEcalEndcap::parseCellEntry(XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attribute) {
6  getIntAttribute(attribute, "y_index"),
7  getIntAttribute(attribute, "z_index"));
8  return cell;
9 }
10 
12  try {
13  if (EEDetId::validDetId(ix, iy, iz)) {
14  EEDetId cell(ix, iy, iz);
15  return cell;
16  } else {
17  return EEDetId(0);
18  }
19  }
20 
21  catch (...)
22 
23  {
24  std::cout << "Null coordinates = " << ix << "," << iy << "," << iz << std::endl;
25  return EEDetId(0);
26  }
27 }
DetId parseCellEntry(XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attribute) override
EEDetId getCellFromAttributes(int ix, int iy, int iz)
Definition: DetId.h:18
static bool validDetId(int crystal_ix, int crystal_iy, int iz)
Definition: EEDetId.h:248
int getIntAttribute(XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attribute, const std::string &attribute_name)