Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 10:22:33

0001 /// \file ROOT/RFit.hxx
0002 /// \ingroup MathCore ROOT7
0003 /// \author Axel Naumann <axel@cern.ch>
0004 /// \date 2015-09-06
0005 /// \warning This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback
0006 /// is welcome!
0007 
0008 /*************************************************************************
0009  * Copyright (C) 1995-2015, Rene Brun and Fons Rademakers.               *
0010  * All rights reserved.                                                  *
0011  *                                                                       *
0012  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0013  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0014  *************************************************************************/
0015 
0016 #ifndef ROOT_RFit
0017 #define ROOT_RFit
0018 
0019 #include <array>
0020 #include <functional>
0021 
0022 #include "ROOT/RSpan.hxx"
0023 
0024 #include "ROOT/RHist.hxx"
0025 
0026 namespace ROOT {
0027 namespace Experimental {
0028 
0029 class RFitResult {
0030 };
0031 
0032 template <int DIMENSION>
0033 class RFunction {
0034 public:
0035    RFunction(std::function<double(const std::array<double, DIMENSION> &, const std::span<const double> par)> func) {}
0036 };
0037 
0038 template <int DIMENSIONS, class PRECISION, template <int D_, class P_> class... STAT>
0039 RFitResult FitTo(const RHist<DIMENSIONS, PRECISION, STAT...> &hist, const RFunction<DIMENSIONS> &func,
0040                  std::span<const double> paramInit)
0041 {
0042    return RFitResult();
0043 }
0044 
0045 } // namespace Experimental
0046 } // namespace ROOT
0047 
0048 #endif