CMS 3D CMS Logo

TrackletParametersMemory.h
Go to the documentation of this file.
1 // TrackletParametersMemory: This class holds the tracklet parameters for selected stub pairs.
2 // This class owns the tracklets. Further modules only holds pointers.
3 #ifndef L1Trigger_TrackFindingTracklet_interface_TrackletParametersMemory_h
4 #define L1Trigger_TrackFindingTracklet_interface_TrackletParametersMemory_h
5 
7 
8 #include <string>
9 #include <vector>
10 
11 namespace trklet {
12 
13  class Settings;
14  class Globals;
15  class Tracklet;
16 
18  public:
20 
21  ~TrackletParametersMemory() override = default;
22 
23  void addTracklet(Tracklet *tracklet) { tracklets_.push_back(tracklet); }
24 
25  unsigned int nTracklets() const { return tracklets_.size(); }
26 
27  Tracklet *getTracklet(unsigned int i) { return tracklets_[i]; }
28 
29  void clean() override;
30 
31  void writeTPAR(bool first, unsigned int iSector);
32 
33  private:
34  std::vector<Tracklet *> tracklets_;
35  };
36 
37 }; // namespace trklet
38 #endif
~TrackletParametersMemory() override=default
Tracklet * getTracklet(unsigned int i)
TrackletParametersMemory(std::string name, Settings const &settings)
void writeTPAR(bool first, unsigned int iSector)