CMS 3D CMS Logo

List of all members | Public Member Functions
MiscalibReaderFromXMLHcal Class Reference

#include <MiscalibReaderFromXMLHcal.h>

Inheritance diagram for MiscalibReaderFromXMLHcal:
MiscalibReaderFromXML

Public Member Functions

HcalDetId getCellFromAttributes (int idet, int ieta, int iphi, int idepth)
 
 MiscalibReaderFromXMLHcal (CaloMiscalibMapHcal &map)
 
DetId parseCellEntry (XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attribute) override
 
- Public Member Functions inherited from MiscalibReaderFromXML
double getFloatAttribute (XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attribute, const std::string &attribute_name)
 
int getIntAttribute (XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attribute, const std::string &attribute_name)
 
double getScalingFactor (XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attribute)
 
 MiscalibReaderFromXML (CaloMiscalibMap &)
 
bool parseXMLMiscalibFile (std::string configFile)
 
virtual ~MiscalibReaderFromXML ()
 

Detailed Description

Definition at line 8 of file MiscalibReaderFromXMLHcal.h.

Constructor & Destructor Documentation

◆ MiscalibReaderFromXMLHcal()

MiscalibReaderFromXMLHcal::MiscalibReaderFromXMLHcal ( CaloMiscalibMapHcal map)
inline

Definition at line 10 of file MiscalibReaderFromXMLHcal.h.

Member Function Documentation

◆ getCellFromAttributes()

HcalDetId MiscalibReaderFromXMLHcal::getCellFromAttributes ( int  idet,
int  ieta,
int  iphi,
int  idepth 
)

Definition at line 12 of file MiscalibReaderXMLHcal.cc.

12  {
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 }

References gather_cfg::cout, LEDCalibrationChannels::ieta, and LEDCalibrationChannels::iphi.

Referenced by parseCellEntry().

◆ parseCellEntry()

DetId MiscalibReaderFromXMLHcal::parseCellEntry ( XERCES_CPP_NAMESPACE::DOMNamedNodeMap *  attribute)
overridevirtual

Implements MiscalibReaderFromXML.

Definition at line 4 of file MiscalibReaderXMLHcal.cc.

4  {
6  getIntAttribute(attribute, "eta_index"),
7  getIntAttribute(attribute, "phi_index"),
8  getIntAttribute(attribute, "depth_index"));
9  return cell;
10 }

References getCellFromAttributes(), and MiscalibReaderFromXML::getIntAttribute().

gather_cfg.cout
cout
Definition: gather_cfg.py:144
LEDCalibrationChannels.iphi
iphi
Definition: LEDCalibrationChannels.py:64
MiscalibReaderFromXML::MiscalibReaderFromXML
MiscalibReaderFromXML(CaloMiscalibMap &)
Definition: MiscalibReaderXML.cc:24
LEDCalibrationChannels.ieta
ieta
Definition: LEDCalibrationChannels.py:63
HcalDetId
Definition: HcalDetId.h:12
MiscalibReaderFromXML::getIntAttribute
int getIntAttribute(XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attribute, const std::string &attribute_name)
Definition: MiscalibReaderXML.cc:41
HcalSubdetector
HcalSubdetector
Definition: HcalAssistant.h:31
genParticles_cff.map
map
Definition: genParticles_cff.py:11
MiscalibReaderFromXMLHcal::getCellFromAttributes
HcalDetId getCellFromAttributes(int idet, int ieta, int iphi, int idepth)
Definition: MiscalibReaderXMLHcal.cc:12