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)
 
virtual DetId parseCellEntry (XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attribute)
 
- 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 10 of file MiscalibReaderFromXMLHcal.h.

Constructor & Destructor Documentation

MiscalibReaderFromXMLHcal::MiscalibReaderFromXMLHcal ( CaloMiscalibMapHcal map)
inline

Definition at line 13 of file MiscalibReaderFromXMLHcal.h.

References getCellFromAttributes(), and parseCellEntry().

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

Member Function Documentation

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

Definition at line 18 of file MiscalibReaderXMLHcal.cc.

References gather_cfg::cout.

Referenced by MiscalibReaderFromXMLHcal(), and parseCellEntry().

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 }
HcalSubdetector
Definition: HcalAssistant.h:31
DetId MiscalibReaderFromXMLHcal::parseCellEntry ( XERCES_CPP_NAMESPACE::DOMNamedNodeMap *  attribute)
virtual

Implements MiscalibReaderFromXML.

Definition at line 6 of file MiscalibReaderXMLHcal.cc.

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

Referenced by MiscalibReaderFromXMLHcal().

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 }
HcalDetId getCellFromAttributes(int idet, int ieta, int iphi, int idepth)
int getIntAttribute(XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attribute, const std::string &attribute_name)