CalibCalorimetry
CaloMiscalibTools
src
MiscalibReaderXMLHcal.cc
Go to the documentation of this file.
1
#include "
DataFormats/HcalDetId/interface/HcalDetId.h
"
2
#include "
CalibCalorimetry/CaloMiscalibTools/interface/MiscalibReaderFromXMLHcal.h
"
3
4
DetId
MiscalibReaderFromXMLHcal::parseCellEntry
(XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attribute) {
5
HcalDetId
cell =
MiscalibReaderFromXMLHcal::getCellFromAttributes
(
getIntAttribute
(attribute,
"det_index"
),
6
getIntAttribute
(attribute,
"eta_index"
),
7
getIntAttribute
(attribute,
"phi_index"
),
8
getIntAttribute
(attribute,
"depth_index"
));
9
return
cell;
10
}
11
12
HcalDetId
MiscalibReaderFromXMLHcal::getCellFromAttributes
(
int
idet,
int
ieta
,
int
iphi
,
int
idepth) {
13
try
{
14
HcalDetId
cell((
HcalSubdetector
)idet,
ieta
,
iphi
, idepth);
15
return
cell;
16
}
catch
(...) {
17
std::cout
<<
"Null coordinates = "
<< idet <<
","
<<
ieta
<<
","
<<
iphi
<<
","
<< idepth << std::endl;
18
return
HcalDetId
(0);
19
}
20
}
gather_cfg.cout
cout
Definition:
gather_cfg.py:144
LEDCalibrationChannels.iphi
iphi
Definition:
LEDCalibrationChannels.py:64
DetId
Definition:
DetId.h:17
LEDCalibrationChannels.ieta
ieta
Definition:
LEDCalibrationChannels.py:63
HcalDetId.h
HcalDetId
Definition:
HcalDetId.h:12
MiscalibReaderFromXMLHcal::parseCellEntry
DetId parseCellEntry(XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attribute) override
Definition:
MiscalibReaderXMLHcal.cc:4
MiscalibReaderFromXMLHcal.h
MiscalibReaderFromXML::getIntAttribute
int getIntAttribute(XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attribute, const std::string &attribute_name)
Definition:
MiscalibReaderXML.cc:41
HcalSubdetector
HcalSubdetector
Definition:
HcalAssistant.h:31
MiscalibReaderFromXMLHcal::getCellFromAttributes
HcalDetId getCellFromAttributes(int idet, int ieta, int iphi, int idepth)
Definition:
MiscalibReaderXMLHcal.cc:12
Generated for CMSSW Reference Manual by
1.8.16