CMS 3D CMS Logo

XMLEventWriter.h
Go to the documentation of this file.
1 /*
2  * XMLEventWriter.h
3  *
4  * Created on: Oct 12, 2017
5  * Author: kbunkow
6  */
7 
8 #ifndef L1T_OmtfP1_XMLEVENTWRITER_H_
9 #define L1T_OmtfP1_XMLEVENTWRITER_H_
10 
16 #include "xercesc/util/XercesDefs.hpp"
17 #include <memory>
18 #include <string>
19 #include <vector>
20 
22 public:
24 
25  ~XMLEventWriter() override;
26 
27  void observeProcesorEmulation(unsigned int iProcessor,
28  l1t::tftype mtfType,
29  const std::shared_ptr<OMTFinput>& input,
30  const AlgoMuons& algoCandidates,
31  const AlgoMuons& gbCandidates,
32  const std::vector<l1t::RegionalMuonCand>& candMuons) override;
33 
34  void observeEventBegin(const edm::Event& iEvent) override;
35 
36  void observeEventEnd(const edm::Event& iEvent,
37  std::unique_ptr<l1t::RegionalMuonCandBxCollection>& finalCandidates) override;
38 
39  void endJob() override;
40 
41 private:
44  xercesc::DOMElement* currentElement;
45 
47 
48  unsigned int eventNum = 0;
49 
50  unsigned int eventId = 0;
51 };
52 
53 #endif /* L1T_OmtfP1_XMLEVENTWRITER_H_ */
xercesc::DOMElement * currentElement
XMLConfigWriter xmlWriter
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
Definition: EdmProvDump.cc:47
int iEvent
Definition: GenABIO.cc:224
unsigned int eventNum
std::string fName
std::vector< AlgoMuonPtr > AlgoMuons
Definition: AlgoMuon.h:102
void endJob() override
unsigned int eventId
void observeEventEnd(const edm::Event &iEvent, std::unique_ptr< l1t::RegionalMuonCandBxCollection > &finalCandidates) override
XMLEventWriter(const OMTFConfiguration *aOMTFConfig, std::string fName)
void observeEventBegin(const edm::Event &iEvent) override
~XMLEventWriter() override
const OMTFConfiguration * omtfConfig