CMS 3D CMS Logo

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 
11 
12 class GoldenPattern;
13 class OMTFConfiguration;
14 class OMTFinput;
15 class OMTFResult;
16 class AlgoMuon;
17 namespace l1t {
18  class RegionalMuonCand;
19 }
20 struct Key;
21 
22 namespace XERCES_CPP_NAMESPACE {
23  class DOMElement;
24  class DOMDocument;
25  class DOMImplementation;
26 } // namespace XERCES_CPP_NAMESPACE
27 
29 public:
30  XMLConfigWriter(const OMTFConfiguration* aOMTFConfig);
31 
32  void initialiseXMLDocument(const std::string& docName);
33 
35 
36  xercesc::DOMElement* writeEventHeader(unsigned int eventId, unsigned int mixedEventId = 0);
37 
38  xercesc::DOMElement* writeEventData(xercesc::DOMElement* aTopElement, const OmtfName& board, const OMTFinput& aInput);
39 
40  void writeAlgoMuon(xercesc::DOMElement* aTopElement, unsigned int iRefHit, const AlgoMuon& aMuon);
41 
42  void writeCandMuon(xercesc::DOMElement* aTopElement, const l1t::RegionalMuonCand& aCand);
43 
44  void writeResultsData(xercesc::DOMElement* aTopElement,
45  unsigned int iRegion,
46  const Key& aKey,
47  const OMTFResult& aResult);
48 
49  void writeGPData(const GoldenPattern& aGP);
50 
51  void writeGPData(const GoldenPattern& aGP1,
52  const GoldenPattern& aGP2,
53  const GoldenPattern& aGP3,
54  const GoldenPattern& aGP4);
55 
56  void writeConnectionsData(const std::vector<std::vector<OMTFConfiguration::vector2D> >& measurements4D);
57 
58  unsigned int findMaxInput(const OMTFConfiguration::vector1D& myCounts);
59 
60 private:
61  xercesc::DOMImplementation* domImpl;
62  xercesc::DOMElement* theTopElement;
63  xercesc::DOMDocument* theDoc;
64 
66 };
67 
70 #endif
XMLConfigWriter::writeEventData
xercesc::DOMElement * writeEventData(xercesc::DOMElement *aTopElement, const OmtfName &board, const OMTFinput &aInput)
Definition: XMLConfigWriter.cc:168
XMLConfigWriter::XMLConfigWriter
XMLConfigWriter(const OMTFConfiguration *aOMTFConfig)
Definition: XMLConfigWriter.cc:88
OmtfName
Definition: OmtfName.h:9
XMLConfigWriter::findMaxInput
unsigned int findMaxInput(const OMTFConfiguration::vector1D &myCounts)
Definition: XMLConfigWriter.cc:659
XMLConfigWriter::theDoc
xercesc::DOMDocument * theDoc
Definition: XMLConfigWriter.h:63
OMTFConfiguration
Definition: OMTFConfiguration.h:44
MainPageGenerator.fName
fName
Definition: MainPageGenerator.py:301
OMTFConfiguration.h
XMLConfigWriter::domImpl
xercesc::DOMImplementation * domImpl
Definition: XMLConfigWriter.h:61
XMLConfigWriter::initialiseXMLDocument
void initialiseXMLDocument(const std::string &docName)
Definition: XMLConfigWriter.cc:98
Key
Definition: GoldenPattern.h:15
OmtfName.h
XERCES_CPP_NAMESPACE
Definition: XmlConfigParser.h:12
XMLConfigWriter::finaliseXMLDocument
void finaliseXMLDocument(const std::string &fName)
Definition: XMLConfigWriter.cc:114
XMLConfigWriter::writeResultsData
void writeResultsData(xercesc::DOMElement *aTopElement, unsigned int iRegion, const Key &aKey, const OMTFResult &aResult)
Definition: XMLConfigWriter.cc:305
AlgoMuon
Definition: AlgoMuon.h:6
OMTFConfiguration::vector1D
std::vector< int > vector1D
Definition: OMTFConfiguration.h:50
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
XMLConfigWriter::myOMTFConfig
const OMTFConfiguration * myOMTFConfig
Definition: XMLConfigWriter.h:65
l1t
delete x;
Definition: CaloConfig.h:22
XMLConfigWriter::writeEventHeader
xercesc::DOMElement * writeEventHeader(unsigned int eventId, unsigned int mixedEventId=0)
Definition: XMLConfigWriter.cc:139
trackerHitRTTI::vector
Definition: trackerHitRTTI.h:21
XMLConfigWriter::writeGPData
void writeGPData(const GoldenPattern &aGP)
Definition: XMLConfigWriter.cc:358
GoldenPattern
Definition: GoldenPattern.h:44
XMLConfigWriter::writeCandMuon
void writeCandMuon(xercesc::DOMElement *aTopElement, const l1t::RegionalMuonCand &aCand)
Definition: XMLConfigWriter.cc:260
XMLConfigWriter::writeConnectionsData
void writeConnectionsData(const std::vector< std::vector< OMTFConfiguration::vector2D > > &measurements4D)
Definition: XMLConfigWriter.cc:522
XMLConfigWriter::writeAlgoMuon
void writeAlgoMuon(xercesc::DOMElement *aTopElement, unsigned int iRefHit, const AlgoMuon &aMuon)
Definition: XMLConfigWriter.cc:219
XMLConfigWriter::theTopElement
xercesc::DOMElement * theTopElement
Definition: XMLConfigWriter.h:62
OMTFinput
Definition: OMTFinput.h:11
XMLConfigWriter
Definition: XMLConfigWriter.h:28
l1t::RegionalMuonCand
Definition: RegionalMuonCand.h:8
OMTFResult
Definition: OMTFResult.h:9