Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef L1Trigger_TrackFindingTracklet_interface_AllInnerStubsMemory_h
0002 #define L1Trigger_TrackFindingTracklet_interface_AllInnerStubsMemory_h
0003 
0004 #include "L1Trigger/TrackFindingTracklet/interface/MemoryBase.h"
0005 
0006 #include <utility>
0007 #include <string>
0008 #include <vector>
0009 
0010 namespace trklet {
0011 
0012   class Settings;
0013   class Stub;
0014   class L1TStub;
0015 
0016   class AllInnerStubsMemory : public MemoryBase {
0017   public:
0018     AllInnerStubsMemory(std::string name, Settings const& settings);
0019 
0020     ~AllInnerStubsMemory() override = default;
0021 
0022     void addStub(const Stub* stub) { stubs_.push_back(stub); }
0023 
0024     unsigned int nStubs() const { return stubs_.size(); }
0025 
0026     const Stub* getStub(unsigned int i) const { return stubs_[i]; }
0027 
0028     void clean() override { stubs_.clear(); }
0029 
0030     void writeStubs(bool first, unsigned int iSector);
0031 
0032   private:
0033     std::vector<const Stub*> stubs_;
0034   };
0035 
0036 };  // namespace trklet
0037 #endif