CMS 3D CMS Logo

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