CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 ( CaloMiscalibMapHcal map)
inline

Definition at line 10 of file MiscalibReaderFromXMLHcal.h.

10 : MiscalibReaderFromXML(map){};
MiscalibReaderFromXML(CaloMiscalibMap &)

Member Function Documentation

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

Definition at line 12 of file MiscalibReaderXMLHcal.cc.

References gather_cfg::cout.

Referenced by parseCellEntry().

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 }
HcalSubdetector
Definition: HcalAssistant.h:31
tuple cout
Definition: gather_cfg.py:144
DetId MiscalibReaderFromXMLHcal::parseCellEntry ( XERCES_CPP_NAMESPACE::DOMNamedNodeMap *  attribute)
overridevirtual

Implements MiscalibReaderFromXML.

Definition at line 4 of file MiscalibReaderXMLHcal.cc.

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

4  {
6  getIntAttribute(attribute, "eta_index"),
7  getIntAttribute(attribute, "phi_index"),
8  getIntAttribute(attribute, "depth_index"));
9  return cell;
10 }
HcalDetId getCellFromAttributes(int idet, int ieta, int iphi, int idepth)
int getIntAttribute(XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attribute, const std::string &attribute_name)