Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-07-07 22:33:29

0001 // TrackletParametersMemory: This class holds the tracklet parameters for selected stub pairs.
0002 // This class owns the tracklets. Further modules only holds pointers.
0003 #ifndef L1Trigger_TrackFindingTracklet_interface_TrackletParametersMemory_h
0004 #define L1Trigger_TrackFindingTracklet_interface_TrackletParametersMemory_h
0005 
0006 #include "L1Trigger/TrackFindingTracklet/interface/MemoryBase.h"
0007 
0008 #include <string>
0009 #include <vector>
0010 
0011 namespace trklet {
0012 
0013   class Settings;
0014   class Globals;
0015   class Tracklet;
0016 
0017   class TrackletParametersMemory : public MemoryBase {
0018   public:
0019     TrackletParametersMemory(std::string name, Settings const &settings);
0020 
0021     ~TrackletParametersMemory() override = default;
0022 
0023     void addTracklet(Tracklet *tracklet) { tracklets_.push_back(tracklet); }
0024 
0025     unsigned int nTracklets() const { return tracklets_.size(); }
0026 
0027     Tracklet *getTracklet(unsigned int i) { return tracklets_[i]; }
0028 
0029     void clean() override;
0030 
0031     void writeTPAR(bool first, unsigned int iSector);
0032 
0033   private:
0034     std::vector<Tracklet *> tracklets_;
0035   };
0036 
0037 };  // namespace trklet
0038 #endif