File indexing completed on 2024-04-06 12:21:53
0001 #ifndef L1Trigger_TrackFindingTracklet_interface_AllProjectionsMemory_h
0002 #define L1Trigger_TrackFindingTracklet_interface_AllProjectionsMemory_h
0003
0004 #include "L1Trigger/TrackFindingTracklet/interface/MemoryBase.h"
0005
0006 #include <string>
0007 #include <vector>
0008
0009 namespace trklet {
0010
0011 class Settings;
0012 class Tracklet;
0013
0014 class AllProjectionsMemory : public MemoryBase {
0015 public:
0016 AllProjectionsMemory(std::string name, Settings const& settings);
0017
0018 ~AllProjectionsMemory() override = default;
0019
0020 void addTracklet(Tracklet* tracklet) { tracklets_.push_back(tracklet); }
0021
0022 unsigned int nTracklets() const { return tracklets_.size(); }
0023
0024 const Tracklet* getTracklet(unsigned int i) const { return tracklets_[i]; }
0025
0026 void clean() override { tracklets_.clear(); }
0027
0028 void writeAP(bool first, unsigned int iSector);
0029
0030 private:
0031 std::vector<Tracklet*> tracklets_;
0032
0033 int layer_;
0034 int disk_;
0035 };
0036 };
0037 #endif