Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:21:53

0001 // This class holds a list of stubs for an DTC link.
0002 // This modules 'owns' the pointers to the stubs. All subsequent modules that handles stubs uses a pointer to the original stored here.
0003 #ifndef L1Trigger_TrackFindingTracklet_interface_DTCLinkMemory_h
0004 #define L1Trigger_TrackFindingTracklet_interface_DTCLinkMemory_h
0005 
0006 #include "L1Trigger/TrackFindingTracklet/interface/MemoryBase.h"
0007 
0008 #include <vector>
0009 
0010 namespace trklet {
0011 
0012   class Settings;
0013   class Globals;
0014   class Stub;
0015   class L1TStub;
0016 
0017   class DTCLinkMemory : public MemoryBase {
0018   public:
0019     DTCLinkMemory(std::string name, Settings const& settings, double, double);
0020 
0021     ~DTCLinkMemory() override = default;
0022 
0023     void addStub(const L1TStub& al1stub, const Stub& stub);
0024 
0025     unsigned int nStubs() const { return stubs_.size(); }
0026 
0027     Stub* getStub(unsigned int i) { return stubs_[i]; }
0028 
0029     void writeStubs(bool first, unsigned int iSector);
0030 
0031     void clean() override;
0032 
0033   private:
0034     std::vector<Stub*> stubs_;
0035   };
0036 
0037 };  // namespace trklet
0038 #endif