#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 | writeAlgoMuon (xercesc::DOMElement *aTopElement, unsigned int iRefHit, const AlgoMuon &aMuon) |
void | writeCandMuon (xercesc::DOMElement *aTopElement, const l1t::RegionalMuonCand &aCand) |
void | writeConnectionsData (const std::vector< std::vector< OMTFConfiguration::vector2D > > &measurements4D) |
xercesc::DOMElement * | writeEventData (xercesc::DOMElement *aTopElement, const OmtfName &board, 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 27 of file XMLConfigWriter.h.
XMLConfigWriter::XMLConfigWriter | ( | const OMTFConfiguration * | aOMTFConfig | ) |
Initialise XML document
Definition at line 74 of file XMLConfigWriter.cc.
References _toDOMS(), domImpl, and myOMTFConfig.
void XMLConfigWriter::finaliseXMLDocument | ( | const std::string & | fName | ) |
Definition at line 104 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 647 of file XMLConfigWriter.cc.
References bookConverter::max.
Referenced by writeConnectionsData().
void XMLConfigWriter::initialiseXMLDocument | ( | const std::string & | docName | ) |
Definition at line 86 of file XMLConfigWriter.cc.
References _toDOMS(), domImpl, myOMTFConfig, OMTFConfiguration::patternsVersion(), theDoc, theTopElement, and relval_steps::version.
Referenced by OMTFReconstruction::beginRun(), and OMTFPatternMaker::endJob().
void XMLConfigWriter::writeAlgoMuon | ( | xercesc::DOMElement * | aTopElement, |
unsigned int | iRefHit, | ||
const AlgoMuon & | aMuon | ||
) |
Definition at line 211 of file XMLConfigWriter.cc.
References _toDOMS(), funct::abs(), XERCES_CPP_NAMESPACE_USE::eta2Bits(), AlgoMuon::getCharge(), AlgoMuon::getDisc(), AlgoMuon::getEta(), AlgoMuon::getHits(), AlgoMuon::getPatternNumber(), AlgoMuon::getPhi(), AlgoMuon::getPhiRHit(), AlgoMuon::getPt(), AlgoMuon::getQ(), AlgoMuon::getRefLayer(), and theDoc.
Referenced by OMTFReconstruction::writeResultToXML().
void XMLConfigWriter::writeCandMuon | ( | xercesc::DOMElement * | aTopElement, |
const l1t::RegionalMuonCand & | aCand | ||
) |
Definition at line 255 of file XMLConfigWriter.cc.
References _toDOMS(), l1t::RegionalMuonCand::hwEta(), l1t::RegionalMuonCand::hwPhi(), l1t::RegionalMuonCand::hwPt(), l1t::RegionalMuonCand::hwQual(), l1t::RegionalMuonCand::hwSign(), l1t::RegionalMuonCand::hwSignValid(), l1t::RegionalMuonCand::link(), l1t::omtf_neg, l1t::omtf_pos, l1t::RegionalMuonCand::processor(), theDoc, l1t::RegionalMuonCand::trackAddress(), and l1t::RegionalMuonCand::trackFinderType().
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 516 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, |
const OmtfName & | board, | ||
const OMTFinput & | aInput | ||
) |
Definition at line 161 of file XMLConfigWriter.cc.
References _toDOMS(), funct::abs(), XERCES_CPP_NAMESPACE_USE::eta2Bits(), OMTFinput::getLayerData(), myOMTFConfig, OmtfName::name(), OMTFConfiguration::nLayers(), OMTFConfiguration::nPhiBins(), OmtfName::position(), OmtfName::processor(), and theDoc.
Referenced by OMTFReconstruction::writeResultToXML().
xercesc::DOMElement * XMLConfigWriter::writeEventHeader | ( | unsigned int | eventId, |
unsigned int | mixedEventId = 0 |
||
) |
Definition at line 130 of file XMLConfigWriter.cc.
References _toDOMS(), theDoc, and theTopElement.
Referenced by OMTFReconstruction::reconstruct().
void XMLConfigWriter::writeGPData | ( | const GoldenPattern & | aGP | ) |
Definition at line 350 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 416 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 299 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 69 of file XMLConfigWriter.h.
Referenced by finaliseXMLDocument(), initialiseXMLDocument(), and XMLConfigWriter().
|
private |
Definition at line 73 of file XMLConfigWriter.h.
Referenced by initialiseXMLDocument(), writeConnectionsData(), writeEventData(), writeGPData(), writeResultsData(), and XMLConfigWriter().
|
private |
Definition at line 71 of file XMLConfigWriter.h.
Referenced by initialiseXMLDocument(), writeAlgoMuon(), writeCandMuon(), writeConnectionsData(), writeEventData(), writeEventHeader(), writeGPData(), and writeResultsData().
|
private |
Definition at line 70 of file XMLConfigWriter.h.
Referenced by finaliseXMLDocument(), initialiseXMLDocument(), writeConnectionsData(), writeEventHeader(), and writeGPData().