CMS 3D CMS Logo

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 
31  bool parseXMLMiscalibFile(std::string configFile);
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
MiscalibReaderFromXML::getFloatAttribute
double getFloatAttribute(XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attribute, const std::string &attribute_name)
Definition: MiscalibReaderXML.cc:58
DetId
Definition: DetId.h:17
MiscalibReaderFromXML::~MiscalibReaderFromXML
virtual ~MiscalibReaderFromXML()
Definition: MiscalibReaderFromXML.h:29
MiscalibReaderFromXML::MiscalibReaderFromXML
MiscalibReaderFromXML(CaloMiscalibMap &)
Definition: MiscalibReaderXML.cc:24
MiscalibReaderFromXML::getScalingFactor
double getScalingFactor(XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attribute)
Definition: MiscalibReaderXML.cc:52
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
Xerces.h
MiscalibReaderFromXML::getIntAttribute
int getIntAttribute(XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attribute, const std::string &attribute_name)
Definition: MiscalibReaderXML.cc:41
MiscalibReaderFromXML::caloMap_
CaloMiscalibMap & caloMap_
Definition: MiscalibReaderFromXML.h:40
CaloMiscalibMap.h
MiscalibReaderFromXML::parseCellEntry
virtual DetId parseCellEntry(XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attribute)=0
MiscalibReaderFromXML::s_numberOfInstances
static int s_numberOfInstances
Definition: MiscalibReaderFromXML.h:39
MiscalibReaderFromXML
Definition: MiscalibReaderFromXML.h:26
CaloMiscalibMap
Definition: CaloMiscalibMap.h:8
MiscalibReaderFromXML::parseXMLMiscalibFile
bool parseXMLMiscalibFile(std::string configFile)
Definition: MiscalibReaderXML.cc:69