#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 InternalObj &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) |
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 () | |
Private Member Functions | |
bool | removeLayers (unsigned int iLayer) |
Utility function to set which layers should be ignored. More... | |
Private Attributes | |
xercesc::DOMImplementation * | domImpl |
xercesc::DOMDocument * | theDoc |
xercesc::DOMElement * | theTopElement |
Definition at line 24 of file XMLConfigWriter.h.
XMLConfigWriter::XMLConfigWriter | ( | ) |
Initialise XML document
Definition at line 52 of file XMLConfigWriter.cc.
References _toDOMS(), and domImpl.
void XMLConfigWriter::finaliseXMLDocument | ( | const std::string & | fName | ) |
Definition at line 84 of file XMLConfigWriter.cc.
References domImpl, and theTopElement.
Referenced by L1TMuonOverlapTrackProducer::endJob().
unsigned int XMLConfigWriter::findMaxInput | ( | const OMTFConfiguration::vector1D & | myCounts | ) |
Definition at line 667 of file XMLConfigWriter.cc.
References bookConverter::max.
Referenced by writeConnectionsData().
void XMLConfigWriter::initialiseXMLDocument | ( | const std::string & | docName | ) |
Definition at line 63 of file XMLConfigWriter.cc.
References _toDOMS(), domImpl, funct::pow(), theDoc, theTopElement, and relval_steps::version.
Referenced by L1TMuonOverlapTrackProducer::endJob(), and L1TMuonOverlapTrackProducer::L1TMuonOverlapTrackProducer().
|
private |
Utility function to set which layers should be ignored.
Definition at line 681 of file XMLConfigWriter.cc.
Referenced by writeConnectionsData(), and writeGPData().
void XMLConfigWriter::writeCandidateData | ( | xercesc::DOMElement * | aTopElement, |
unsigned int | iRefHit, | ||
const InternalObj & | aCand | ||
) |
Definition at line 184 of file XMLConfigWriter.cc.
References _toDOMS(), InternalObj::charge, InternalObj::disc, InternalObj::eta, InternalObj::phi, InternalObj::pt, InternalObj::q, InternalObj::refLayer, and theDoc.
Referenced by L1TMuonOverlapTrackProducer::produce().
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 529 of file XMLConfigWriter.cc.
References _toDOMS(), begin, end, findMaxInput(), OMTFConfiguration::globalPhiStart(), OMTFConfiguration::measurements4D, OMTFConfiguration::measurements4Dref, OMTFConfiguration::nLayers, OMTFConfiguration::nPhiBins, OMTFConfiguration::nPhiBits, OMTFConfiguration::nRefHits, OMTFConfiguration::nRefLayers, funct::pow(), OMTFConfiguration::processorPhiVsRefLayer, removeLayers(), theDoc, and theTopElement.
xercesc::DOMElement * XMLConfigWriter::writeEventData | ( | xercesc::DOMElement * | aTopElement, |
unsigned int | iProcessor, | ||
const OMTFinput & | aInput | ||
) |
Definition at line 141 of file XMLConfigWriter.cc.
References _toDOMS(), OMTFinput::getLayerData(), OMTFConfiguration::nLayers, OMTFConfiguration::nPhiBins, and theDoc.
Referenced by L1TMuonOverlapTrackProducer::produce().
xercesc::DOMElement * XMLConfigWriter::writeEventHeader | ( | unsigned int | eventId, |
unsigned int | mixedEventId = 0 |
||
) |
Definition at line 110 of file XMLConfigWriter.cc.
References _toDOMS(), theDoc, and theTopElement.
Referenced by L1TMuonOverlapTrackProducer::produce().
void XMLConfigWriter::writeGPData | ( | const GoldenPattern & | aGP | ) |
Remove some layers.
Definition at line 269 of file XMLConfigWriter.cc.
References _toDOMS(), GoldenPattern::key(), GoldenPattern::meanDistPhiValue(), OMTFConfiguration::nLayers, OMTFConfiguration::nPdfAddrBits, OMTFConfiguration::nRefLayers, GoldenPattern::pdfValue(), removeLayers(), Key::theCharge, theDoc, Key::theEtaCode, Key::thePtCode, and theTopElement.
Referenced by L1TMuonOverlapTrackProducer::endJob(), and L1TMuonOverlapTrackProducer::writeMergedGPs().
void XMLConfigWriter::writeGPData | ( | const GoldenPattern & | aGP1, |
const GoldenPattern & | aGP2 | ||
) |
Remove some layers.
Definition at line 341 of file XMLConfigWriter.cc.
References _toDOMS(), GoldenPattern::key(), GoldenPattern::meanDistPhiValue(), OMTFConfiguration::nLayers, OMTFConfiguration::nPdfAddrBits, OMTFConfiguration::nRefLayers, GoldenPattern::pdfValue(), removeLayers(), Key::theCharge, theDoc, Key::theEtaCode, Key::thePtCode, and theTopElement.
void XMLConfigWriter::writeGPData | ( | const GoldenPattern & | aGP1, |
const GoldenPattern & | aGP2, | ||
const GoldenPattern & | aGP3, | ||
const GoldenPattern & | aGP4 | ||
) |
Remove some layers.
Definition at line 428 of file XMLConfigWriter.cc.
References _toDOMS(), GoldenPattern::key(), GoldenPattern::meanDistPhiValue(), OMTFConfiguration::nLayers, OMTFConfiguration::nPdfAddrBits, OMTFConfiguration::nRefLayers, GoldenPattern::pdfValue(), removeLayers(), Key::theCharge, theDoc, Key::theEtaCode, 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 218 of file XMLConfigWriter.cc.
References _toDOMS(), OMTFResult::getResults(), OMTFConfiguration::nLayers, OMTFConfiguration::nRefLayers, OMTFConfiguration::refToLogicNumber, bookConverter::results, Key::theCharge, theDoc, Key::theEtaCode, and Key::thePtCode.
Referenced by L1TMuonOverlapTrackProducer::produce().
|
private |
Definition at line 69 of file XMLConfigWriter.h.
Referenced by finaliseXMLDocument(), initialiseXMLDocument(), and XMLConfigWriter().
|
private |
Definition at line 71 of file XMLConfigWriter.h.
Referenced by initialiseXMLDocument(), writeCandidateData(), writeConnectionsData(), writeEventData(), writeEventHeader(), writeGPData(), and writeResultsData().
|
private |
Definition at line 70 of file XMLConfigWriter.h.
Referenced by finaliseXMLDocument(), initialiseXMLDocument(), writeConnectionsData(), writeEventHeader(), and writeGPData().