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:
19  CandidateMatchMemory(std::string name, Settings const& settings, unsigned int iSector);
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);
32 
33  private:
34  std::vector<std::pair<std::pair<Tracklet*, int>, const Stub*> > matches_;
35  };
36 
37 }; // namespace trklet
38 #endif
trklet::CandidateMatchMemory::CandidateMatchMemory
CandidateMatchMemory(std::string name, Settings const &settings, unsigned int iSector)
Definition: CandidateMatchMemory.cc:14
mps_fire.i
i
Definition: mps_fire.py:428
trklet::CandidateMatchMemory::getMatch
std::pair< std::pair< Tracklet *, int >, const Stub * > getMatch(unsigned int i)
Definition: CandidateMatchMemory.h:27
trklet::Settings
Definition: Settings.h:31
trklet::CandidateMatchMemory::addMatch
void addMatch(std::pair< Tracklet *, int > tracklet, const Stub *stub)
Definition: CandidateMatchMemory.cc:17
trklet::Stub
Definition: Stub.h:16
trklet::CandidateMatchMemory::~CandidateMatchMemory
~CandidateMatchMemory() override=default
first
auto first
Definition: CAHitNtupletGeneratorKernelsImpl.h:112
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
trklet::MemoryBase
Definition: MemoryBase.h:13
trklet::CandidateMatchMemory::clean
void clean() override
Definition: CandidateMatchMemory.h:29
trklet
Definition: AllProjectionsMemory.h:9
trklet::CandidateMatchMemory
Definition: CandidateMatchMemory.h:17
MemoryBase.h
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
trklet::CandidateMatchMemory::writeCM
void writeCM(bool first)
Definition: CandidateMatchMemory.cc:31
trklet::CandidateMatchMemory::nMatches
unsigned int nMatches() const
Definition: CandidateMatchMemory.h:25
trklet::CandidateMatchMemory::matches_
std::vector< std::pair< std::pair< Tracklet *, int >, const Stub * > > matches_
Definition: CandidateMatchMemory.h:34