CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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_
unsigned int nStubs() const
void writeStubs(bool first, unsigned int iSector)
void addStub(const Stub *stub)
void clean() override
~AllStubsMemory() override=default