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 }
MiscalibReaderFromXMLEcalEndcap::parseCellEntry
DetId parseCellEntry(XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attribute) override
Definition: MiscalibReaderXMLEcalEndcap.cc:4
gather_cfg.cout
cout
Definition: gather_cfg.py:144
EEDetId.h
MiscalibReaderFromXMLEcalEndcap.h
DetId
Definition: DetId.h:17
MiscalibReaderFromXMLEcalEndcap::getCellFromAttributes
EEDetId getCellFromAttributes(int ix, int iy, int iz)
Definition: MiscalibReaderXMLEcalEndcap.cc:11
EEDetId
Definition: EEDetId.h:14
MiscalibReaderFromXML::getIntAttribute
int getIntAttribute(XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attribute, const std::string &attribute_name)
Definition: MiscalibReaderXML.cc:41
EEDetId::validDetId
static bool validDetId(int crystal_ix, int crystal_iy, int iz)
Definition: EEDetId.h:248