CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
AllInnerStubsMemory.h
Go to the documentation of this file.
1 #ifndef L1Trigger_TrackFindingTracklet_interface_AllInnerStubsMemory_h
2 #define L1Trigger_TrackFindingTracklet_interface_AllInnerStubsMemory_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 
17  public:
18  AllInnerStubsMemory(std::string name, Settings const& settings);
19 
20  ~AllInnerStubsMemory() 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
void writeStubs(bool first, unsigned int iSector)
~AllInnerStubsMemory() override=default
const Stub * getStub(unsigned int i) const
void addStub(const Stub *stub)
unsigned int nStubs() const
AllInnerStubsMemory(std::string name, Settings const &settings)
std::vector< const Stub * > stubs_