CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
InputLinkMemory.h
Go to the documentation of this file.
1 // This class holds a list of stubs for an input link.
2 // This modules 'owns' the pointers to the stubs. All subsequent modules that handles stubs uses a pointer to the original stored here.
3 #ifndef L1Trigger_TrackFindingTracklet_interface_InputLinkMemory_h
4 #define L1Trigger_TrackFindingTracklet_interface_InputLinkMemory_h
5 
7 
8 #include <vector>
9 
10 namespace trklet {
11 
12  class Settings;
13  class Globals;
14  class Stub;
15 
16  class InputLinkMemory : public MemoryBase {
17  public:
18  InputLinkMemory(std::string name, Settings const& settings, double, double);
19 
20  ~InputLinkMemory() override = default;
21 
22  void addStub(Stub* stub);
23 
24  unsigned int nStubs() const { return stubs_.size(); }
25 
26  Stub* getStub(unsigned int i) { return stubs_[i]; }
27 
28  void writeStubs(bool first, unsigned int iSector);
29 
30  void clean() override;
31 
32  private:
33  std::vector<Stub*> stubs_;
34  };
35 
36 }; // namespace trklet
37 #endif
void writeStubs(bool first, unsigned int iSector)
unsigned int nStubs() const
~InputLinkMemory() override=default
void addStub(Stub *stub)
std::vector< Stub * > stubs_
InputLinkMemory(std::string name, Settings const &settings, double, double)
Stub * getStub(unsigned int i)