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  if (EEDetId::validDetId(ix, iy, iz)) {
13  EEDetId cell(ix, iy, iz);
14  return cell;
15  } else {
16  std::cout << "Null coordinates = " << ix << "," << iy << "," << iz << std::endl;
17  return EEDetId(0);
18  }
19 }
DetId parseCellEntry(XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attribute) override
EEDetId getCellFromAttributes(int ix, int iy, int iz)
ALPAKA_FN_ACC ALPAKA_FN_INLINE uint32_t ix(uint32_t id)
Definition: DetId.h:17
static bool validDetId(int crystal_ix, int crystal_iy, int iz)
Definition: EEDetId.h:248
ALPAKA_FN_ACC ALPAKA_FN_INLINE uint32_t iy(uint32_t id)
int getIntAttribute(XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attribute, const std::string &attribute_name)