16 :
omtfConfig(aOMTFConfig), xmlWriter(aOMTFConfig), currentElement(nullptr), fName(fName) {
26 const std::shared_ptr<OMTFinput>&
input,
29 const std::vector<l1t::RegionalMuonCand>& candMuons) {
36 if (candMuons.empty())
44 for (
auto& algoCand : algoCandidates) {
46 if (algoCand->isValid()) {
55 for (
auto& candMuon : candMuons)
70 std::unique_ptr<l1t::RegionalMuonCandBxCollection>& finalCandidates) {
EventNumber_t event() const
xercesc::DOMElement * currentElement
XMLConfigWriter xmlWriter
void initialiseXMLDocument(const std::string &docName)
xercesc::DOMElement * writeEventData(xercesc::DOMElement *aTopElement, const OmtfName &board, const OMTFinput &aInput)
void observeProcesorEmulation(unsigned int iProcessor, l1t::tftype mtfType, const std::shared_ptr< OMTFinput > &input, const AlgoMuons &algoCandidates, const AlgoMuons &gbCandidates, const std::vector< l1t::RegionalMuonCand > &candMuons) override
static std::string const input
void writeCandMuon(xercesc::DOMElement *aTopElement, const l1t::RegionalMuonCand &aCand)
std::vector< AlgoMuonPtr > AlgoMuons
void finaliseXMLDocument(const std::string &fName)
void writeAlgoMuon(xercesc::DOMElement *aTopElement, unsigned int iRefHit, const AlgoMuon &aMuon)
void observeEventEnd(const edm::Event &iEvent, std::unique_ptr< l1t::RegionalMuonCandBxCollection > &finalCandidates) override
XMLEventWriter(const OMTFConfiguration *aOMTFConfig, std::string fName)
xercesc::DOMElement * writeEventHeader(unsigned int eventId, unsigned int mixedEventId=0)
void observeEventBegin(const edm::Event &iEvent) override
~XMLEventWriter() override