CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
MiscalibReaderFromXML.h
Go to the documentation of this file.
1 #ifndef MiscalibReaderFromXML_H
2 #define MiscalibReaderFromXML_H
3 
11 #include <xercesc/dom/DOMNode.hpp>
12 #include <xercesc/dom/DOM.hpp>
13 #include <xercesc/dom/DOMCharacterData.hpp>
14 #include <xercesc/parsers/XercesDOMParser.hpp>
16 #include <xercesc/framework/LocalFileFormatTarget.hpp>
17 #include <xercesc/util/XMLUni.hpp>
18 #include <xercesc/util/XMLURL.hpp>
20 
21 #include <iostream>
22 #include <string>
23 #include <vector>
24 #include <map>
25 
27 public:
30 
32 
33  virtual DetId parseCellEntry(XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attribute) = 0;
34  int getIntAttribute(XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attribute, const std::string &attribute_name);
35  double getScalingFactor(XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attribute);
36  double getFloatAttribute(XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attribute, const std::string &attribute_name);
37 
38 private:
39  static int s_numberOfInstances;
41 };
42 
43 #endif
CaloMiscalibMap & caloMap_
bool parseXMLMiscalibFile(std::string configFile)
MiscalibReaderFromXML(CaloMiscalibMap &)
double getScalingFactor(XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attribute)
double getFloatAttribute(XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attribute, const std::string &attribute_name)
Definition: DetId.h:17
virtual DetId parseCellEntry(XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attribute)=0
int getIntAttribute(XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attribute, const std::string &attribute_name)