CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
XMLConfigWriter.h
Go to the documentation of this file.
1 #ifndef OMTF_XMLConfigWriter_H
2 #define OMTF_XMLConfigWriter_H
3 
4 #include <string>
5 #include <vector>
6 
7 #include "xercesc/util/XercesDefs.hpp"
8 
10 
11 class GoldenPattern;
12 class OMTFConfiguration;
13 class OMTFinput;
14 class OMTFResult;
15 class InternalObj;
16 struct Key;
17 
18 namespace XERCES_CPP_NAMESPACE{
19  class DOMElement;
20  class DOMDocument;
21  class DOMImplementation;
22 }
23 
25 
26  public:
27 
29 
30  void initialiseXMLDocument(const std::string & docName);
31 
33 
34  xercesc::DOMElement * writeEventHeader(unsigned int eventId,
35  unsigned int mixedEventId = 0);
36 
37  xercesc::DOMElement * writeEventData(xercesc::DOMElement *aTopElement,
38  unsigned int iProcessor,
39  const OMTFinput & aInput);
40 
41  void writeCandidateData(xercesc::DOMElement *aTopElement,
42  unsigned int iRefHit,
43  const InternalObj & aCand);
44 
45  void writeResultsData(xercesc::DOMElement *aTopElement,
46  unsigned int iRegion,
47  const Key& aKey,
48  const OMTFResult & aResult);
49 
50  void writeGPData(const GoldenPattern & aGP);
51 
52  void writeGPData(const GoldenPattern & aGP1,
53  const GoldenPattern & aGP2);
54 
55  void writeGPData(const GoldenPattern & aGP1,
56  const GoldenPattern & aGP2,
57  const GoldenPattern & aGP3,
58  const GoldenPattern & aGP4);
59 
60  void writeConnectionsData(const std::vector<std::vector <OMTFConfiguration::vector2D> > & measurements4D);
61 
62  unsigned int findMaxInput(const OMTFConfiguration::vector1D & myCounts);
63 
64  private:
65 
67  bool removeLayers(unsigned int iLayer);
68 
69  xercesc::DOMImplementation* domImpl;
70  xercesc::DOMElement* theTopElement;
71  xercesc::DOMDocument* theDoc;
72 
73 };
74 
75 
78 #endif
void writeConnectionsData(const std::vector< std::vector< OMTFConfiguration::vector2D > > &measurements4D)
void writeCandidateData(xercesc::DOMElement *aTopElement, unsigned int iRefHit, const InternalObj &aCand)
void initialiseXMLDocument(const std::string &docName)
xercesc::DOMElement * writeEventData(xercesc::DOMElement *aTopElement, unsigned int iProcessor, const OMTFinput &aInput)
void writeResultsData(xercesc::DOMElement *aTopElement, unsigned int iRegion, const Key &aKey, const OMTFResult &aResult)
unsigned int findMaxInput(const OMTFConfiguration::vector1D &myCounts)
std::vector< int > vector1D
bool removeLayers(unsigned int iLayer)
Utility function to set which layers should be ignored.
xercesc::DOMImplementation * domImpl
void finaliseXMLDocument(const std::string &fName)
xercesc::DOMElement * writeEventHeader(unsigned int eventId, unsigned int mixedEventId=0)
xercesc::DOMDocument * theDoc
xercesc::DOMElement * theTopElement
void writeGPData(const GoldenPattern &aGP)