CMS 3D CMS Logo

TrackletProjectionsMemory.h
Go to the documentation of this file.
1 // TrackletProjectionsMemory: this class holds the
2 #ifndef L1Trigger_TrackFindingTracklet_interface_TrackletProjectionsMemory_h
3 #define L1Trigger_TrackFindingTracklet_interface_TrackletProjectionsMemory_h
4 
6 
7 #include <string>
8 #include <vector>
9 
10 namespace trklet {
11 
12  class Settings;
13  class Tracklet;
14 
16  public:
18 
19  ~TrackletProjectionsMemory() override = default;
20 
21  void addProj(Tracklet* tracklet);
22 
23  unsigned int nTracklets() const { return tracklets_.size(); }
24 
25  Tracklet* getTracklet(unsigned int i) { return tracklets_[i]; }
26 
27  void clean() override;
28 
29  void writeTPROJ(bool first, unsigned int iSector);
30 
31  int layer() const { return layer_; }
32  int disk() const { return disk_; }
33 
34  private:
35  std::vector<Tracklet*> tracklets_;
36 
37  int layer_;
38  int disk_;
39  };
40 
41 }; // namespace trklet
42 #endif
void writeTPROJ(bool first, unsigned int iSector)
~TrackletProjectionsMemory() override=default
TrackletProjectionsMemory(std::string name, Settings const &settings)