CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MiscalibReaderXMLHcal.cc
Go to the documentation of this file.
3 
4 
5 
6 DetId MiscalibReaderFromXMLHcal::parseCellEntry(XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attribute)
7 {
8 
10  getIntAttribute(attribute,"det_index"),
11  getIntAttribute(attribute,"eta_index"),
12  getIntAttribute(attribute,"phi_index"),
13  getIntAttribute(attribute,"depth_index")
14  );
15 return cell;
16 }
17 
18 HcalDetId MiscalibReaderFromXMLHcal::getCellFromAttributes(int idet, int ieta, int iphi, int idepth)
19 {
20  try
21  {
22  HcalDetId cell((HcalSubdetector) idet, ieta, iphi, idepth);
23  return cell;
24  }
25  catch (...)
26  {
27  std::cout << "Null coordinates = "<< idet << "," << ieta << "," << iphi << "," << idepth << std::endl;
28  return HcalDetId(0);
29  }
30 }
31 
virtual DetId parseCellEntry(XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attribute)
HcalDetId getCellFromAttributes(int idet, int ieta, int iphi, int idepth)
HcalSubdetector
Definition: HcalAssistant.h:32
Definition: DetId.h:20
tuple cout
Definition: gather_cfg.py:121
int getIntAttribute(XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attribute, const std::string &attribute_name)