test
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 
13 
14 class GoldenPattern;
15 class OMTFConfiguration;
17 
18 
19 namespace XERCES_CPP_NAMESPACE{
20 
21 class DOMElement;
22 class XercesDOMParser;
23 
24 }
25 
27 
28  public:
29 
31 
32  void readConfig(const std::string fName);
33 
34  void setConfigFile(const std::string & fName) {configFile = fName;}
35 
36  void setPatternsFile(const std::string & fName) {patternsFile = fName;}
37 
38  void setEventsFile(const std::string & fName) {eventsFile = fName;}
39 
40  std::vector<GoldenPattern*> readPatterns(const L1TMuonOverlapParams &aConfig);
41 
42  void readLUT(l1t::LUT *lut, const L1TMuonOverlapParams & aConfig, const std::string & type);
43 
44  void readConfig(L1TMuonOverlapParams *aConfig) const;
45 
46  std::vector<std::vector<int> > readEvent(unsigned int iEvent=0,
47  unsigned int iProcessor=0,
48  bool readEta = false);
49 
50  private:
51 
52  std::string configFile; //XML file with general configuration
53  std::string patternsFile; //XML file with GoldenPatterns
54  std::string eventsFile; //XML file with events
55 
56  GoldenPattern * buildGP(xercesc::DOMElement* aGPElement,
57  const L1TMuonOverlapParams & aConfig,
58  unsigned int index=0);
59 
60  xercesc::XercesDOMParser *parser;
61  xercesc::DOMDocument* doc;
62 
64  std::vector<GoldenPattern*> aGPs;
65 
66 };
67 #endif
type
Definition: HCALResponse.h:21
xercesc::DOMDocument * doc
void readLUT(l1t::LUT *lut, const L1TMuonOverlapParams &aConfig, const std::string &type)
std::vector< std::vector< int > > readEvent(unsigned int iEvent=0, unsigned int iProcessor=0, bool readEta=false)
std::string patternsFile
std::vector< GoldenPattern * > readPatterns(const L1TMuonOverlapParams &aConfig)
int iEvent
Definition: GenABIO.cc:230
GoldenPattern * buildGP(xercesc::DOMElement *aGPElement, const L1TMuonOverlapParams &aConfig, unsigned int index=0)
tuple lut
Definition: lumiPlot.py:244
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::string configFile