Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-05 08:18:20

0001 /* Copyright 2013, Ludwig-Maximilians Universität München,
0002    Authors: Tobias Schlüter & Johannes Rauch
0003 
0004    This file is part of GENFIT.
0005 
0006    GENFIT is free software: you can redistribute it and/or modify
0007    it under the terms of the GNU Lesser General Public License as published
0008    by the Free Software Foundation, either version 3 of the License, or
0009    (at your option) any later version.
0010 
0011    GENFIT is distributed in the hope that it will be useful,
0012    but WITHOUT ANY WARRANTY; without even the implied warranty of
0013    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0014    GNU Lesser General Public License for more details.
0015 
0016    You should have received a copy of the GNU Lesser General Public License
0017    along with GENFIT.  If not, see <http://www.gnu.org/licenses/>.
0018 */
0019 /** @addtogroup genfit
0020  * @{
0021  */
0022 
0023 #ifndef genfit_AbsFitter_h
0024 #define genfit_AbsFitter_h
0025 
0026 
0027 namespace genfit {
0028 
0029 class Track;
0030 class AbsTrackRep;
0031 
0032 /**
0033  * @brief Abstract base class for fitters.
0034  */
0035 class AbsFitter {
0036  public:
0037   AbsFitter() : debugLvl_(0) {}
0038   virtual ~AbsFitter() {}
0039 
0040   /**
0041    * Process Track with one AbsTrackRep of the Track. Optionally resort the hits if necessary (and supported by the fitter)
0042    */
0043   virtual void processTrackWithRep(Track*, const AbsTrackRep*, bool resortHits = false) = 0;
0044 
0045   /**
0046    * Process all reps. Start with the cardinalRep and resort the hits if necessary (and supported by the fitter)
0047    */
0048   void processTrack(Track*, bool resortHits = false);
0049 
0050   virtual void setDebugLvl(unsigned int lvl = 1) {debugLvl_ = lvl;}
0051 
0052 
0053  protected:
0054 
0055   unsigned int debugLvl_;
0056 
0057 };
0058 
0059 }  /* End of namespace genfit */
0060 /** @} */
0061 
0062 #endif //genfit_AbsFitter_h