CMS 3D CMS Logo

EventCapture.h
Go to the documentation of this file.
1 /*
2  * EventCapture.h
3  *
4  * Created on: Oct 23, 2019
5  * Author: kbunkow
6  */
7 
8 #ifndef L1T_OmtfP1_EVENTCAPTURE_H_
9 #define L1T_OmtfP1_EVENTCAPTURE_H_
10 
12 
17 
19 
21 public:
22  EventCapture(const edm::ParameterSet& edmCfg,
25  const MuonGeometryTokens& muonGeometryTokens,
26  const GoldenPatternVec<GoldenPattern>* gps = nullptr);
27 
28  ~EventCapture() override;
29 
30  void beginRun(edm::EventSetup const& eventSetup) override;
31 
32  void observeProcesorEmulation(unsigned int iProcessor,
33  l1t::tftype mtfType,
34  const std::shared_ptr<OMTFinput>&,
35  const AlgoMuons& algoCandidates,
36  const AlgoMuons& gbCandidates,
37  const std::vector<l1t::RegionalMuonCand>& candMuons) override;
38 
39  void observeEventBegin(const edm::Event& event) override;
40 
41  void observeEventEnd(const edm::Event& event,
42  std::unique_ptr<l1t::RegionalMuonCandBxCollection>& finalCandidates) override;
43 
44  void endJob() override;
45 
46 private:
48  const OMTFConfiguration* omtfConfig = nullptr;
49 
51 
53 
54  std::vector<edm::Ptr<SimTrack> > simMuons;
55 
56  std::vector<std::shared_ptr<OMTFinput> > inputInProcs;
57  std::vector<AlgoMuons> algoMuonsInProcs;
58  std::vector<AlgoMuons> gbCandidatesInProcs;
59 
60  std::unique_ptr<StubsSimHitsMatcher> stubsSimHitsMatcher;
61 };
62 
63 #endif /* L1T_OmtfP1_EVENTCAPTURE_H_ */
CandidateSimMuonMatcher * candidateSimMuonMatcher
Definition: EventCapture.h:52
std::vector< AlgoMuons > gbCandidatesInProcs
Definition: EventCapture.h:58
void observeEventBegin(const edm::Event &event) override
Definition: EventCapture.cc:53
void observeProcesorEmulation(unsigned int iProcessor, l1t::tftype mtfType, const std::shared_ptr< OMTFinput > &, const AlgoMuons &algoCandidates, const AlgoMuons &gbCandidates, const std::vector< l1t::RegionalMuonCand > &candMuons) override
Definition: EventCapture.cc:76
const OMTFConfiguration * omtfConfig
Definition: EventCapture.h:48
std::unique_ptr< StubsSimHitsMatcher > stubsSimHitsMatcher
Definition: EventCapture.h:60
edm::InputTag simTracksTag
Definition: EventCapture.h:47
std::vector< edm::Ptr< SimTrack > > simMuons
Definition: EventCapture.h:54
void beginRun(edm::EventSetup const &eventSetup) override
Definition: EventCapture.cc:48
const GoldenPatternVec< GoldenPattern > * goldenPatterns
Definition: EventCapture.h:50
~EventCapture() override
Definition: EventCapture.cc:44
void observeEventEnd(const edm::Event &event, std::unique_ptr< l1t::RegionalMuonCandBxCollection > &finalCandidates) override
Definition: EventCapture.cc:90
EventCapture(const edm::ParameterSet &edmCfg, const OMTFConfiguration *omtfConfig, CandidateSimMuonMatcher *candidateSimMuonMatcher, const MuonGeometryTokens &muonGeometryTokens, const GoldenPatternVec< GoldenPattern > *gps=nullptr)
Definition: EventCapture.cc:22
std::vector< std::shared_ptr< OMTFinput > > inputInProcs
Definition: EventCapture.h:56
std::vector< std::unique_ptr< GoldenPatternType > > GoldenPatternVec
std::vector< AlgoMuonPtr > AlgoMuons
Definition: AlgoMuon.h:102
void endJob() override
std::vector< AlgoMuons > algoMuonsInProcs
Definition: EventCapture.h:57
Definition: event.py:1