CMS 3D CMS Logo

AllProjectionsMemory.h
Go to the documentation of this file.
1 #ifndef L1Trigger_TrackFindingTracklet_interface_AllProjectionsMemory_h
2 #define L1Trigger_TrackFindingTracklet_interface_AllProjectionsMemory_h
3 
5 
6 #include <string>
7 #include <vector>
8 
9 namespace trklet {
10 
11  class Settings;
12  class Tracklet;
13 
15  public:
17 
18  ~AllProjectionsMemory() override = default;
19 
20  void addTracklet(Tracklet* tracklet) { tracklets_.push_back(tracklet); }
21 
22  unsigned int nTracklets() const { return tracklets_.size(); }
23 
24  const Tracklet* getTracklet(unsigned int i) const { return tracklets_[i]; }
25 
26  void clean() override { tracklets_.clear(); }
27 
28  void writeAP(bool first, unsigned int iSector);
29 
30  private:
31  std::vector<Tracklet*> tracklets_;
32 
33  int layer_;
34  int disk_;
35  };
36 }; // namespace trklet
37 #endif
void addTracklet(Tracklet *tracklet)
const Tracklet * getTracklet(unsigned int i) const
std::vector< Tracklet * > tracklets_
void writeAP(bool first, unsigned int iSector)
~AllProjectionsMemory() override=default
AllProjectionsMemory(std::string name, Settings const &settings)