File indexing completed on 2024-09-07 04:37:00
0001
0002
0003
0004
0005
0006
0007
0008 #ifndef L1T_OmtfP1_IOMTFRECONSTRUCTIONOBSERVER_H_
0009 #define L1T_OmtfP1_IOMTFRECONSTRUCTIONOBSERVER_H_
0010
0011 #include "L1Trigger/L1TMuonOverlapPhase1/interface/Omtf/AlgoMuon.h"
0012 #include "L1Trigger/L1TMuonOverlapPhase1/interface/Omtf/OMTFinput.h"
0013
0014 #include "FWCore/Framework/interface/EventSetup.h"
0015 #include "DataFormats/L1TMuon/interface/RegionalMuonCand.h"
0016 #include "DataFormats/L1TMuon/interface/RegionalMuonCandFwd.h"
0017
0018 #include <boost/property_tree/ptree.hpp>
0019
0020 #include <memory>
0021 #include <vector>
0022
0023 namespace edm {
0024 class Event;
0025 }
0026
0027 class IOMTFEmulationObserver {
0028 public:
0029 IOMTFEmulationObserver();
0030 virtual ~IOMTFEmulationObserver();
0031
0032 virtual void beginRun(edm::EventSetup const& eventSetup) {}
0033
0034 virtual void observeProcesorBegin(unsigned int iProcessor, l1t::tftype mtfType) {}
0035
0036 virtual void addProcesorData(std::string key, boost::property_tree::ptree& procDataTree) {}
0037
0038 virtual void observeProcesorEmulation(unsigned int iProcessor,
0039 l1t::tftype mtfType,
0040 const std::shared_ptr<OMTFinput>& input,
0041 const AlgoMuons& algoCandidates,
0042 const AlgoMuons& gbCandidates,
0043 const std::vector<l1t::RegionalMuonCand>& candMuons) = 0;
0044
0045 virtual void observeEventBegin(const edm::Event& iEvent) {}
0046
0047 virtual void observeEventEnd(const edm::Event& iEvent,
0048 std::unique_ptr<l1t::RegionalMuonCandBxCollection>& finalCandidates) {};
0049
0050 virtual void endJob() = 0;
0051 };
0052
0053 #endif