CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
CleanTrackMemory.h
Go to the documentation of this file.
1 #ifndef L1Trigger_TrackFindingTracklet_interface_CleanTrackMemory_h
2 #define L1Trigger_TrackFindingTracklet_interface_CleanTrackMemory_h
3 
5 
6 #include <vector>
7 
8 namespace trklet {
9 
10  class Settings;
11  class Tracklet;
12 
13  class CleanTrackMemory : public MemoryBase {
14  public:
15  CleanTrackMemory(std::string name, Settings const& settings, double phimin, double phimax);
16 
17  ~CleanTrackMemory() override = default;
18 
19  void addTrack(Tracklet* tracklet) { tracks_.push_back(tracklet); }
20 
21  unsigned int nTracks() const { return tracks_.size(); }
22 
23  void clean() override { tracks_.clear(); }
24 
25  void writeCT(bool first, unsigned int iSector);
26 
27  private:
28  double phimin_;
29  double phimax_;
30  std::vector<Tracklet*> tracks_;
31  };
32 
33 }; // namespace trklet
34 #endif
CleanTrackMemory(std::string name, Settings const &settings, double phimin, double phimax)
~CleanTrackMemory() override=default
void writeCT(bool first, unsigned int iSector)
unsigned int nTracks() const
void addTrack(Tracklet *tracklet)
std::vector< Tracklet * > tracks_