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 
32 
33  void readConfig(const std::string fName);
34 
35  void setConfigFile(const std::string & fName) {configFile = fName;}
36 
37  void setPatternsFile(const std::string & fName) {patternsFile = fName;}
38 
39  void setEventsFile(const std::string & fName) {eventsFile = fName;}
40 
41  std::vector<GoldenPattern*> readPatterns(const L1TMuonOverlapParams &aConfig);
42 
43  void readLUT(l1t::LUT *lut, const L1TMuonOverlapParams & aConfig, const std::string & type);
44 
45  void readConfig(L1TMuonOverlapParams *aConfig) const;
46 
47  unsigned int getPatternsVersion() const;
48 
49  std::vector<std::vector<int> > readEvent(unsigned int iEvent=0,
50  unsigned int iProcessor=0,
51  bool readEta = false);
52 
53  private:
54 
55  std::string configFile; //XML file with general configuration
56  std::string patternsFile; //XML file with GoldenPatterns
57  std::string eventsFile; //XML file with events
58 
59  GoldenPattern * buildGP(xercesc::DOMElement* aGPElement,
60  const L1TMuonOverlapParams & aConfig,
61  unsigned int index=0,
62  unsigned int aGPNumber=999);
63 
64  // xercesc::XercesDOMParser *parser;
65  // xercesc::DOMDocument* doc;
66 
68  std::vector<GoldenPattern*> aGPs;
69 
70 };
71 
72 #endif
type
Definition: HCALResponse.h:21
GoldenPattern * buildGP(xercesc::DOMElement *aGPElement, const L1TMuonOverlapParams &aConfig, unsigned int index=0, unsigned int aGPNumber=999)
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
tuple lut
Definition: lumiPlot.py:244
void readConfig(const std::string fName)
std::string eventsFile
unsigned int getPatternsVersion() const
void setPatternsFile(const std::string &fName)
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