Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:21:49

0001 #ifndef L1Trigger_TrackFindingTMTT_TrackFitGeneric_h
0002 #define L1Trigger_TrackFindingTMTT_TrackFitGeneric_h
0003 
0004 ///=== This is the base class for all the track fit algorithms
0005 
0006 ///=== Written by: Alexander D. Morton and Sioni Summers
0007 
0008 #include "L1Trigger/TrackFindingTMTT/interface/L1fittedTrack.h"
0009 #include "L1Trigger/TrackFindingTMTT/interface/L1track3D.h"
0010 
0011 #include <vector>
0012 #include <utility>
0013 
0014 namespace tmtt {
0015 
0016   class Settings;
0017 
0018   class TrackFitGeneric {
0019   public:
0020     // Set configuration parameters.
0021     TrackFitGeneric(const Settings* settings, const std::string& fitterName = "")
0022         : settings_(settings), fitterName_(fitterName) {}
0023 
0024     virtual ~TrackFitGeneric() = default;
0025 
0026     // Fit a track candidate obtained from the Hough Transform.
0027     virtual L1fittedTrack fit(const L1track3D& l1track3D) { return L1fittedTrack(); }
0028 
0029   protected:
0030     // Configuration parameters
0031     const Settings* settings_;
0032     const std::string fitterName_;
0033   };
0034 
0035 }  // namespace tmtt
0036 
0037 #endif