CMS 3D CMS Logo

DTCLinkMemory.h
Go to the documentation of this file.
1 // This class holds a list of stubs for an DTC 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_DTCLinkMemory_h
4 #define L1Trigger_TrackFindingTracklet_interface_DTCLinkMemory_h
5 
7 
8 #include <vector>
9 
10 namespace trklet {
11 
12  class Settings;
13  class Globals;
14  class Stub;
15  class L1TStub;
16 
17  class DTCLinkMemory : public MemoryBase {
18  public:
19  DTCLinkMemory(std::string name, Settings const& settings, double, double);
20 
21  ~DTCLinkMemory() override = default;
22 
23  void addStub(const L1TStub& al1stub, const Stub& stub);
24 
25  unsigned int nStubs() const { return stubs_.size(); }
26 
27  Stub* getStub(unsigned int i) { return stubs_[i]; }
28 
29  void writeStubs(bool first, unsigned int iSector);
30 
31  void clean() override;
32 
33  private:
34  std::vector<Stub*> stubs_;
35  };
36 
37 }; // namespace trklet
38 #endif
std::vector< Stub * > stubs_
Definition: DTCLinkMemory.h:34
void writeStubs(bool first, unsigned int iSector)
Stub * getStub(unsigned int i)
Definition: DTCLinkMemory.h:27
unsigned int nStubs() const
Definition: DTCLinkMemory.h:25
~DTCLinkMemory() override=default
void addStub(const L1TStub &al1stub, const Stub &stub)
void clean() override
DTCLinkMemory(std::string name, Settings const &settings, double, double)