CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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:17
static bool validDetId(int crystal_ix, int crystal_iy, int iz)
Definition: EEDetId.h:248
tuple cout
Definition: gather_cfg.py:144
int getIntAttribute(XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attribute, const std::string &attribute_name)