13 #ifndef ROOT_Fit_BasicFCN 14 #define ROOT_Fit_BasicFCN 39 template<
class FunType,
class DataType>
53 BasicFCN (
const std::shared_ptr<DataType> &
data,
const std::shared_ptr<IModelFunction> &
func) :
54 BaseObjFunction(func->
NPar(), data->
Size() ),
70 virtual const DataType &
Data()
const {
return *
fData; }
93 std::shared_ptr<DataType>
fData;
94 std::shared_ptr<IModelFunction>
fFunc;
::ROOT::Math::BasicFitMethodFunction< FunType > BaseObjFunction
Namespace for new ROOT classes and functions.
virtual const IModelFunction & ModelFunction() const
access to const reference to the model function
void SetModelFunction(const std::shared_ptr< IModelFunction > &func)
Set the function pointer.
BasicFCN(const std::shared_ptr< DataType > &data, const std::shared_ptr< IModelFunction > &func)
Constructor from data set and model function.
std::shared_ptr< DataType > fData
std::shared_ptr< IModelFunction > fFunc
virtual const DataType & Data() const
access to const reference to the data
void SetData(const std::shared_ptr< DataType > &data)
Set the data pointer.
BasicFCN class: base class for the objective functions used in the fits It has a reference to the dat...
std::shared_ptr< IModelFunction > ModelFunctionPtr() const
access to function pointer
FunType ::BaseFunc BaseFunction
FitMethodFunction class Interface for objective functions (like chi2 and likelihood used in the fit) ...
TFitResultPtr Fit(FitObject *h1, TF1 *f1, Foption_t &option, const ROOT::Math::MinimizerOptions &moption, const char *goption, ROOT::Fit::DataRange &range)
double func(double *x, double *p)
::ROOT::Math::IParamMultiFunction IModelFunction
IParametricFunctionMultiDim IParamMultiFunction
BaseObjFunction::BaseFunction BaseFunction
std::shared_ptr< DataType > DataPtr() const
access to data pointer
virtual ~BasicFCN()
Destructor (no operations)