CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
XMLConfigReader.h
Go to the documentation of this file.
1 #ifndef OMTF_XMLConfigReader_H
2 #define OMTF_XMLConfigReader_H
3 
4 #include <string>
5 #include <vector>
6 #include <ostream>
7 
8 #include "xercesc/util/XercesDefs.hpp"
9 #include "xercesc/dom/DOM.hpp"
10 
12 
13 class GoldenPattern;
14 class OMTFConfiguration;
16 
17 
18 namespace XERCES_CPP_NAMESPACE{
19 
20 class DOMElement;
21 class XercesDOMParser;
22 
23 }
24 
26 
27  public:
28 
30 
31  void readConfig(const std::string fName);
32 
33  void setConfigFile(const std::string & fName) {configFile = fName;}
34 
35  void setPatternsFile(const std::string & fName) {patternsFile = fName;}
36 
37  void setEventsFile(const std::string & fName) {eventsFile = fName;}
38 
39  std::vector<GoldenPattern*> readPatterns();
40 
41  void readLUT(l1t::LUT *lut, const std::string & type);
42 
43  void readConfig(OMTFConfiguration *aConfig);
44 
45  void readConfig(L1TMuonOverlapParams *aConfig);
46 
47  std::vector<std::vector<int> > readEvent(unsigned int iEvent=0,
48  unsigned int iProcessor=0,
49  bool readEta = false);
50 
51  private:
52 
53  std::string configFile; //XML file with general configuration
54  std::string patternsFile; //XML file with GoldenPatterns
55  std::string eventsFile; //XML file with events
56 
57  GoldenPattern * buildGP(xercesc::DOMElement* aGPElement,
58  unsigned int index=0);
59 
60  xercesc::XercesDOMParser *parser;
61  xercesc::DOMDocument* doc;
62 
64  std::vector<GoldenPattern*> aGPs;
65 
66 };
67 
68 
71 #endif
type
Definition: HCALResponse.h:21
GoldenPattern * buildGP(xercesc::DOMElement *aGPElement, unsigned int index=0)
xercesc::DOMDocument * doc
std::vector< std::vector< int > > readEvent(unsigned int iEvent=0, unsigned int iProcessor=0, bool readEta=false)
std::string patternsFile
int iEvent
Definition: GenABIO.cc:230
tuple lut
Definition: lumiPlot.py:244
void readLUT(l1t::LUT *lut, const std::string &type)
void readConfig(const std::string fName)
std::string eventsFile
void setPatternsFile(const std::string &fName)
xercesc::XercesDOMParser * parser
void setConfigFile(const std::string &fName)
void setEventsFile(const std::string &fName)
Definition: LUT.h:29
std::vector< GoldenPattern * > aGPs
Cache with GPs read.
std::vector< GoldenPattern * > readPatterns()
std::string configFile