#include <XMLConfigWriter.h>
Public Member Functions | |
void | finaliseXMLDocument (const std::string &fName) |
unsigned int | findMaxInput (const OMTFConfiguration::vector1D &myCounts) |
void | initialiseXMLDocument (const std::string &docName) |
void | writeCandidateData (xercesc::DOMElement *aTopElement, unsigned int iRefHit, const AlgoMuon &aCand) |
void | writeConnectionsData (const std::vector< std::vector< OMTFConfiguration::vector2D > > &measurements4D) |
xercesc::DOMElement * | writeEventData (xercesc::DOMElement *aTopElement, unsigned int iProcessor, const OMTFinput &aInput) |
xercesc::DOMElement * | writeEventHeader (unsigned int eventId, unsigned int mixedEventId=0) |
void | writeGPData (const GoldenPattern &aGP) |
void | writeGPData (const GoldenPattern &aGP1, const GoldenPattern &aGP2, const GoldenPattern &aGP3, const GoldenPattern &aGP4) |
void | writeResultsData (xercesc::DOMElement *aTopElement, unsigned int iRegion, const Key &aKey, const OMTFResult &aResult) |
XMLConfigWriter (const OMTFConfiguration *aOMTFConfig) | |
Private Attributes | |
xercesc::DOMImplementation * | domImpl |
const OMTFConfiguration * | myOMTFConfig |
xercesc::DOMDocument * | theDoc |
xercesc::DOMElement * | theTopElement |
Definition at line 24 of file XMLConfigWriter.h.
XMLConfigWriter::XMLConfigWriter | ( | const OMTFConfiguration * | aOMTFConfig | ) |
Initialise XML document
Definition at line 53 of file XMLConfigWriter.cc.
References _toDOMS(), domImpl, and myOMTFConfig.
void XMLConfigWriter::finaliseXMLDocument | ( | const std::string & | fName | ) |
Definition at line 83 of file XMLConfigWriter.cc.
References domImpl, and theTopElement.
Referenced by OMTFPatternMaker::endJob(), and OMTFReconstruction::endJob().
unsigned int XMLConfigWriter::findMaxInput | ( | const OMTFConfiguration::vector1D & | myCounts | ) |
Definition at line 572 of file XMLConfigWriter.cc.
References bookConverter::max.
Referenced by writeConnectionsData().
void XMLConfigWriter::initialiseXMLDocument | ( | const std::string & | docName | ) |
Definition at line 65 of file XMLConfigWriter.cc.
References _toDOMS(), domImpl, OMTFConfiguration::fwVersion(), myOMTFConfig, funct::pow(), theDoc, theTopElement, and relval_steps::version.
Referenced by OMTFPatternMaker::beginRun(), OMTFReconstruction::beginRun(), and OMTFPatternMaker::endJob().
void XMLConfigWriter::writeCandidateData | ( | xercesc::DOMElement * | aTopElement, |
unsigned int | iRefHit, | ||
const AlgoMuon & | aCand | ||
) |
Definition at line 183 of file XMLConfigWriter.cc.
References _toDOMS(), AlgoMuon::getCharge(), AlgoMuon::getDisc(), AlgoMuon::getEta(), AlgoMuon::getHits(), AlgoMuon::getPhi(), AlgoMuon::getPhiRHit(), AlgoMuon::getPt(), AlgoMuon::getQ(), AlgoMuon::getRefLayer(), and theDoc.
Referenced by OMTFReconstruction::writeResultToXML().
void XMLConfigWriter::writeConnectionsData | ( | const std::vector< std::vector< OMTFConfiguration::vector2D > > & | measurements4D | ) |
iPhiMin and iPhiMax are expressed in n bit scale -2**n, +2**2-1 used in each processor
Definition at line 441 of file XMLConfigWriter.cc.
References _toDOMS(), begin, end, findMaxInput(), OMTFConfiguration::getMeasurements4D(), OMTFConfiguration::getMeasurements4Dref(), OMTFConfiguration::getProcessorPhiVsRefLayer(), OMTFConfiguration::globalPhiStart(), myOMTFConfig, OMTFConfiguration::nLayers(), OMTFConfiguration::nPhiBins(), OMTFConfiguration::nPhiBits(), OMTFConfiguration::nRefHits(), OMTFConfiguration::nRefLayers(), funct::pow(), theDoc, and theTopElement.
Referenced by OMTFPatternMaker::endJob().
xercesc::DOMElement * XMLConfigWriter::writeEventData | ( | xercesc::DOMElement * | aTopElement, |
unsigned int | iProcessor, | ||
const OMTFinput & | aInput | ||
) |
Definition at line 140 of file XMLConfigWriter.cc.
References _toDOMS(), OMTFinput::getLayerData(), myOMTFConfig, OMTFConfiguration::nLayers(), OMTFConfiguration::nPhiBins(), and theDoc.
Referenced by OMTFReconstruction::writeResultToXML().
xercesc::DOMElement * XMLConfigWriter::writeEventHeader | ( | unsigned int | eventId, |
unsigned int | mixedEventId = 0 |
||
) |
Definition at line 109 of file XMLConfigWriter.cc.
References _toDOMS(), theDoc, and theTopElement.
Referenced by OMTFReconstruction::reconstruct().
void XMLConfigWriter::writeGPData | ( | const GoldenPattern & | aGP | ) |
Definition at line 275 of file XMLConfigWriter.cc.
References _toDOMS(), GoldenPattern::key(), GoldenPattern::meanDistPhiValue(), myOMTFConfig, OMTFConfiguration::nLayers(), OMTFConfiguration::nPdfAddrBits(), OMTFConfiguration::nRefLayers(), GoldenPattern::pdfValue(), Key::theCharge, theDoc, Key::thePtCode, and theTopElement.
Referenced by OMTFPatternMaker::endJob(), and OMTFPatternMaker::writeMergedGPs().
void XMLConfigWriter::writeGPData | ( | const GoldenPattern & | aGP1, |
const GoldenPattern & | aGP2, | ||
const GoldenPattern & | aGP3, | ||
const GoldenPattern & | aGP4 | ||
) |
Definition at line 341 of file XMLConfigWriter.cc.
References _toDOMS(), GoldenPattern::key(), GoldenPattern::meanDistPhiValue(), myOMTFConfig, OMTFConfiguration::nLayers(), OMTFConfiguration::nPdfAddrBits(), OMTFConfiguration::nRefLayers(), GoldenPattern::pdfValue(), Key::theCharge, theDoc, Key::thePtCode, and theTopElement.
void XMLConfigWriter::writeResultsData | ( | xercesc::DOMElement * | aTopElement, |
unsigned int | iRegion, | ||
const Key & | aKey, | ||
const OMTFResult & | aResult | ||
) |
Write GP key parameters
Write results details for this GP
Definition at line 224 of file XMLConfigWriter.cc.
References _toDOMS(), OMTFConfiguration::getRefToLogicNumber(), OMTFResult::getResults(), myOMTFConfig, OMTFConfiguration::nLayers(), OMTFConfiguration::nRefLayers(), mps_update::results, Key::theCharge, theDoc, Key::theEtaCode, and Key::thePtCode.
Referenced by OMTFReconstruction::writeResultToXML().
|
private |
Definition at line 63 of file XMLConfigWriter.h.
Referenced by finaliseXMLDocument(), initialiseXMLDocument(), and XMLConfigWriter().
|
private |
Definition at line 67 of file XMLConfigWriter.h.
Referenced by initialiseXMLDocument(), writeConnectionsData(), writeEventData(), writeGPData(), writeResultsData(), and XMLConfigWriter().
|
private |
Definition at line 65 of file XMLConfigWriter.h.
Referenced by initialiseXMLDocument(), writeCandidateData(), writeConnectionsData(), writeEventData(), writeEventHeader(), writeGPData(), and writeResultsData().
|
private |
Definition at line 64 of file XMLConfigWriter.h.
Referenced by finaliseXMLDocument(), initialiseXMLDocument(), writeConnectionsData(), writeEventHeader(), and writeGPData().