CMS 3D CMS Logo

EmulationObserverBase.h
Go to the documentation of this file.
1 /*
2  * EmulationObserverBase.h
3  *
4  * Created on: Aug 18, 2021
5  * Author: kbunkow
6  */
7 
8 #ifndef L1T_OmtfP1_TOOLS_EMULATIONOBSERVERBASE_H_
9 #define L1T_OmtfP1_TOOLS_EMULATIONOBSERVERBASE_H_
10 
12 
18 
20 public:
22 
23  ~EmulationObserverBase() override;
24 
25  void observeProcesorEmulation(unsigned int iProcessor,
26  l1t::tftype mtfType,
27  const std::shared_ptr<OMTFinput>& input,
28  const AlgoMuons& algoCandidates,
29  const AlgoMuons& gbCandidates,
30  const std::vector<l1t::RegionalMuonCand>& candMuons) override;
31 
32  void observeEventBegin(const edm::Event& iEvent) override;
33 
34  //void observeEventEnd(const edm::Event& iEvent,
35  // std::unique_ptr<l1t::RegionalMuonCandBxCollection>& finalCandidates) override;
36 
37  //void endJob() override;
38 
39  const SimTrack* findSimMuon(const edm::Event& event, const SimTrack* previous = nullptr);
40 
41  const std::vector<const reco::GenParticle*> findGenMuon(const edm::Event& event);
42 
43 protected:
46 
47  const SimTrack* simMuon = nullptr;
48 
49  //candidate found by omtf in a given event
51 
53 
54  //AlgoMuons algoCandidates;
55 
56  unsigned int candProcIndx = 0;
57 };
58 
59 #endif /* INTERFACE_TOOLS_EMULATIONOBSERVERBASE_H_ */
AlgoMuons::value_type omtfCand
EmulationObserverBase(const edm::ParameterSet &edmCfg, const OMTFConfiguration *omtfConfig)
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:50
int iEvent
Definition: GenABIO.cc:224
l1t::RegionalMuonCand regionalMuonCand
const SimTrack * findSimMuon(const edm::Event &event, const SimTrack *previous=nullptr)
void observeEventBegin(const edm::Event &iEvent) override
std::vector< AlgoMuonPtr > AlgoMuons
Definition: AlgoMuon.h:176
const OMTFConfiguration * omtfConfig
const std::vector< const reco::GenParticle * > findGenMuon(const edm::Event &event)
Definition: event.py:1