CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MiscalibReaderXMLEcalEndcap.cc
Go to the documentation of this file.
3 
4 
5 DetId MiscalibReaderFromXMLEcalEndcap::parseCellEntry(XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attribute)
6 {
7 
9  getIntAttribute(attribute,"x_index"),
10  getIntAttribute(attribute,"y_index"),
11  getIntAttribute(attribute,"z_index")
12  );
13 return cell;
14 }
15 
17 {
18 
19  try
20  {
21  if (EEDetId::validDetId(ix, iy, iz)) {
22  EEDetId cell(ix,iy,iz);
23  return cell;
24  } else {
25  return EEDetId(0);
26  }
27  }
28 
29  catch (...)
30 
31  {
32  std::cout << "Null coordinates = "<< ix << "," << iy << "," << iz << std::endl;
33  return EEDetId(0);
34  }
35 
36 
37 }
38 
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
tuple cout
Definition: gather_cfg.py:121
virtual DetId parseCellEntry(XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attribute)
int getIntAttribute(XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attribute, const std::string &attribute_name)