CMS 3D CMS Logo

CandidateMatchMemory.h
Go to the documentation of this file.
1 #ifndef L1Trigger_TrackFindingTracklet_interface_CandidateMatchMemory_h
2 #define L1Trigger_TrackFindingTracklet_interface_CandidateMatchMemory_h
3 
5 
6 #include <vector>
7 #include <string>
8 #include <utility>
9 
10 namespace trklet {
11 
12  class Settings;
13  class Stub;
14  class L1TStub;
15  class Tracklet;
16 
18  public:
20 
21  ~CandidateMatchMemory() override = default;
22 
23  void addMatch(std::pair<Tracklet*, int> tracklet, const Stub* stub);
24 
25  unsigned int nMatches() const { return matches_.size(); }
26 
27  std::pair<std::pair<Tracklet*, int>, const Stub*> getMatch(unsigned int i) { return matches_[i]; }
28 
29  void clean() override { matches_.clear(); }
30 
31  void writeCM(bool first, unsigned int iSector);
32 
33  private:
34  std::vector<std::pair<std::pair<Tracklet*, int>, const Stub*> > matches_;
35  };
36 
37 }; // namespace trklet
38 #endif
std::pair< std::pair< Tracklet *, int >, const Stub * > getMatch(unsigned int i)
void writeCM(bool first, unsigned int iSector)
void addMatch(std::pair< Tracklet *, int > tracklet, const Stub *stub)
~CandidateMatchMemory() override=default
std::vector< std::pair< std::pair< Tracklet *, int >, const Stub * > > matches_
CandidateMatchMemory(std::string name, Settings const &settings)