Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-06-06 07:37:57

0001 #include "DataFormats/EcalDetId/interface/EEDetId.h"
0002 #include "CalibCalorimetry/CaloMiscalibTools/interface/MiscalibReaderFromXMLEcalEndcap.h"
0003 
0004 DetId MiscalibReaderFromXMLEcalEndcap::parseCellEntry(XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attribute) {
0005   EEDetId cell = MiscalibReaderFromXMLEcalEndcap::getCellFromAttributes(getIntAttribute(attribute, "x_index"),
0006                                                                         getIntAttribute(attribute, "y_index"),
0007                                                                         getIntAttribute(attribute, "z_index"));
0008   return cell;
0009 }
0010 
0011 EEDetId MiscalibReaderFromXMLEcalEndcap::getCellFromAttributes(int ix, int iy, int iz) {
0012   if (EEDetId::validDetId(ix, iy, iz)) {
0013     EEDetId cell(ix, iy, iz);
0014     return cell;
0015   } else {
0016     std::cout << "Null coordinates = " << ix << "," << iy << "," << iz << std::endl;
0017     return EEDetId(0);
0018   }
0019 }