#include <XMLConfigWriter.h>
Public Member Functions | |
void | finaliseXMLDocument (const std::string &fName) |
void | finaliseXMLDocument (const std::string &fName) |
unsigned int | findMaxInput (const OMTFConfiguration::vector1D &myCounts) |
unsigned int | findMaxInput (const OMTFConfiguration::vector1D &myCounts) |
void | initialiseXMLDocument (const std::string &docName) |
void | initialiseXMLDocument (const std::string &docName) |
void | writeAlgoMuon (xercesc::DOMElement *aTopElement, unsigned int iRefHit, const AlgoMuon &aMuon) |
void | writeAlgoMuon (xercesc::DOMElement *aTopElement, const AlgoMuon &aMuon) |
void | writeCandMuon (xercesc::DOMElement *aTopElement, const l1t::RegionalMuonCand &aCand) |
void | writeCandMuon (xercesc::DOMElement *aTopElement, const l1t::RegionalMuonCand &aCand) |
void | writeConnectionsData (const std::vector< std::vector< OMTFConfiguration::vector2D > > &measurements4D) |
void | writeConnectionsData (const std::vector< std::vector< OMTFConfiguration::vector2D > > &measurements4D) |
xercesc::DOMElement * | writeEventData (xercesc::DOMElement *aTopElement, const OmtfName &board, const OMTFinput &aInput) |
xercesc::DOMElement * | writeEventData (xercesc::DOMElement *aTopElement, const OmtfName &board, const OMTFinput &aInput) |
xercesc::DOMElement * | writeEventHeader (unsigned int eventId, unsigned int mixedEventId=0) |
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 | writeGPData (GoldenPattern &aGP) |
void | writeGPData (GoldenPattern *aGP1, GoldenPattern *aGP2, GoldenPattern *aGP3, GoldenPattern *aGP4) |
template<class GoldenPatternType > | |
void | writeGPs (const GoldenPatternVec< GoldenPatternType > &goldenPats, std::string fName) |
void | writeResultsData (xercesc::DOMElement *aTopElement, unsigned int iRegion, const Key &aKey, const OMTFResult &aResult) |
void | writeResultsData (xercesc::DOMElement *aTopElement, unsigned int iRegion, const Key &aKey, const GoldenPatternResult &aResult) |
XMLConfigWriter (const OMTFConfiguration *aOMTFConfig) | |
XMLConfigWriter (const OMTFConfiguration *aOMTFConfig, bool writePdfThresholds=false, bool writeMeanDistPhi1=false) | |
Private Attributes | |
xercesc::DOMImplementation * | domImpl |
const OMTFConfiguration * | myOMTFConfig |
xercesc::DOMDocument * | theDoc |
xercesc::DOMElement * | theTopElement |
bool | writeMeanDistPhi1 = false |
bool | writePdfThresholds = false |
Definition at line 28 of file XMLConfigWriter.h.
XMLConfigWriter::XMLConfigWriter | ( | const OMTFConfiguration * | aOMTFConfig | ) |
Initialise XML document
Definition at line 88 of file XMLConfigWriter.cc.
References _toDOMS(), domImpl, and myOMTFConfig.
XMLConfigWriter::XMLConfigWriter | ( | const OMTFConfiguration * | aOMTFConfig, |
bool | writePdfThresholds = false , |
||
bool | writeMeanDistPhi1 = false |
||
) |
Initialise XML document
Definition at line 88 of file XMLConfigWriter.cc.
References _toDOMS(), domImpl, and myOMTFConfig.
void XMLConfigWriter::finaliseXMLDocument | ( | const std::string & | fName | ) |
Definition at line 114 of file XMLConfigWriter.cc.
References domImpl, fileCollector2::fName, and theTopElement.
Referenced by OMTFReconstruction::endJob(), OMTFPatternMaker::endJob(), and writeGPs().
void XMLConfigWriter::finaliseXMLDocument | ( | const std::string & | fName | ) |
unsigned int XMLConfigWriter::findMaxInput | ( | const OMTFConfiguration::vector1D & | myCounts | ) |
Definition at line 659 of file XMLConfigWriter.cc.
References SiStripPI::max.
Referenced by writeConnectionsData().
unsigned int XMLConfigWriter::findMaxInput | ( | const OMTFConfiguration::vector1D & | myCounts | ) |
void XMLConfigWriter::initialiseXMLDocument | ( | const std::string & | docName | ) |
Definition at line 98 of file XMLConfigWriter.cc.
References _toDOMS(), domImpl, myOMTFConfig, OMTFConfiguration::patternsVersion(), theDoc, theTopElement, and BeamSplash_cfg::version.
Referenced by OMTFReconstruction::beginRun(), OMTFPatternMaker::endJob(), and writeGPs().
void XMLConfigWriter::initialiseXMLDocument | ( | const std::string & | docName | ) |
void XMLConfigWriter::writeAlgoMuon | ( | xercesc::DOMElement * | aTopElement, |
unsigned int | iRefHit, | ||
const AlgoMuon & | aMuon | ||
) |
Definition at line 219 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::writeAlgoMuon | ( | xercesc::DOMElement * | aTopElement, |
const AlgoMuon & | aMuon | ||
) |
Definition at line 218 of file XMLConfigWriter.cc.
References _toDOMS(), funct::abs(), XERCES_CPP_NAMESPACE_USE::eta2Bits(), AlgoMuon::getChargeConstr(), AlgoMuon::getDisc(), AlgoMuon::getEtaHw(), AlgoMuon::getFiredLayerBits(), AlgoMuon::getHwPatternNumConstr(), AlgoMuon::getPhi(), AlgoMuon::getPhiRHit(), AlgoMuon::getPtConstr(), AlgoMuon::getQ(), AlgoMuon::getRefHitNumber(), AlgoMuon::getRefLayer(), and theDoc.
void XMLConfigWriter::writeCandMuon | ( | xercesc::DOMElement * | aTopElement, |
const l1t::RegionalMuonCand & | aCand | ||
) |
Definition at line 260 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::writeCandMuon | ( | xercesc::DOMElement * | aTopElement, |
const l1t::RegionalMuonCand & | aCand | ||
) |
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 522 of file XMLConfigWriter.cc.
References _toDOMS(), mps_fire::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().
void XMLConfigWriter::writeConnectionsData | ( | const std::vector< std::vector< OMTFConfiguration::vector2D > > & | measurements4D | ) |
xercesc::DOMElement * XMLConfigWriter::writeEventData | ( | xercesc::DOMElement * | aTopElement, |
const OmtfName & | board, | ||
const OMTFinput & | aInput | ||
) |
Definition at line 168 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::writeEventData | ( | xercesc::DOMElement * | aTopElement, |
const OmtfName & | board, | ||
const OMTFinput & | aInput | ||
) |
xercesc::DOMElement * XMLConfigWriter::writeEventHeader | ( | unsigned int | eventId, |
unsigned int | mixedEventId = 0 |
||
) |
Definition at line 139 of file XMLConfigWriter.cc.
References _toDOMS(), theDoc, and theTopElement.
Referenced by OMTFReconstruction::reconstruct().
xercesc::DOMElement* XMLConfigWriter::writeEventHeader | ( | unsigned int | eventId, |
unsigned int | mixedEventId = 0 |
||
) |
void XMLConfigWriter::writeGPData | ( | const GoldenPattern & | aGP | ) |
Definition at line 358 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(), writeGPs(), and OMTFPatternMaker::writeMergedGPs().
void XMLConfigWriter::writeGPData | ( | GoldenPattern & | aGP | ) |
Definition at line 355 of file XMLConfigWriter.cc.
References _toDOMS(), GoldenPattern::getDistPhiBitShift(), GoldenPattern::getMeanDistPhi(), GoldenPattern::key(), myOMTFConfig, OMTFConfiguration::nLayers(), OMTFConfiguration::nPdfAddrBits(), OMTFConfiguration::nRefLayers(), GoldenPattern::pdfValue(), Key::theCharge, theDoc, Key::thePt, and theTopElement.
void XMLConfigWriter::writeGPData | ( | const GoldenPattern & | aGP1, |
const GoldenPattern & | aGP2, | ||
const GoldenPattern & | aGP3, | ||
const GoldenPattern & | aGP4 | ||
) |
Definition at line 423 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::writeGPData | ( | GoldenPattern * | aGP1, |
GoldenPattern * | aGP2, | ||
GoldenPattern * | aGP3, | ||
GoldenPattern * | aGP4 | ||
) |
Definition at line 429 of file XMLConfigWriter.cc.
References _toDOMS(), GoldenPattern::getDistPhiBitShift(), GoldenPattern::getMeanDistPhi(), GoldenPattern::key(), myOMTFConfig, Skims_PA_cff::name, OMTFConfiguration::nLayers(), OMTFConfiguration::nPdfAddrBits(), OMTFConfiguration::nRefLayers(), GoldenPattern::pdfValue(), AlCaHLTBitMon_QueryRunRegistry::string, Key::theCharge, theDoc, Key::thePt, theTopElement, relativeConstraints::value, writeMeanDistPhi1, and writePdfThresholds.
template void XMLConfigWriter::writeGPs | ( | const GoldenPatternVec< GoldenPatternType > & | goldenPats, |
std::string | fName | ||
) |
Definition at line 530 of file XMLConfigWriter.cc.
References Exception, finaliseXMLDocument(), fileCollector2::fName, OMTFConfiguration::getPatternGroups(), runTauDisplay::gp, mps_fire::i, initialiseXMLDocument(), myOMTFConfig, and writeGPData().
Referenced by PatternOptimizerBase::endJob().
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 305 of file XMLConfigWriter.cc.
References _toDOMS(), OMTFConfiguration::getRefToLogicNumber(), OMTFResult::getResults(), myOMTFConfig, OMTFConfiguration::nLayers(), OMTFConfiguration::nRefLayers(), mysort::results, Key::theCharge, theDoc, Key::theEtaCode, and Key::thePtCode.
Referenced by OMTFReconstruction::writeResultToXML().
void XMLConfigWriter::writeResultsData | ( | xercesc::DOMElement * | aTopElement, |
unsigned int | iRegion, | ||
const Key & | aKey, | ||
const GoldenPatternResult & | aResult | ||
) |
Write GP key parameters
Write results details for this GP
Definition at line 304 of file XMLConfigWriter.cc.
References _toDOMS(), GoldenPatternResult::getRefLayer(), OMTFConfiguration::getRefToLogicNumber(), GoldenPatternResult::getStubResults(), myOMTFConfig, OMTFConfiguration::nLayers(), Key::theCharge, theDoc, Key::theEtaCode, and Key::thePt.
|
private |
Definition at line 61 of file XMLConfigWriter.h.
Referenced by finaliseXMLDocument(), initialiseXMLDocument(), and XMLConfigWriter().
|
private |
Definition at line 65 of file XMLConfigWriter.h.
Referenced by initialiseXMLDocument(), writeConnectionsData(), writeEventData(), writeGPData(), writeGPs(), writeResultsData(), and XMLConfigWriter().
|
private |
Definition at line 63 of file XMLConfigWriter.h.
Referenced by initialiseXMLDocument(), writeAlgoMuon(), writeCandMuon(), writeConnectionsData(), writeEventData(), writeEventHeader(), writeGPData(), and writeResultsData().
|
private |
Definition at line 62 of file XMLConfigWriter.h.
Referenced by finaliseXMLDocument(), initialiseXMLDocument(), writeConnectionsData(), writeEventHeader(), and writeGPData().
|
private |
Definition at line 70 of file XMLConfigWriter.h.
Referenced by writeGPData().
|
private |
Definition at line 69 of file XMLConfigWriter.h.
Referenced by writeGPData().