39using std::setprecision;
49 funct.getParameters(
nullptr, out);
63 _multiGenFcn = std::make_unique<ROOT::Math::GradFunctor>(
this, &RooMinimizerFcn::operator(),
64 &RooMinimizerFcn::evaluateGradient,
nDim);
66 _multiGenFcn = std::make_unique<ROOT::Math::Functor>(std::cref(*
this),
getNDim());
76double RooMinimizerFcn::operator()(
const double *
x)
const
81 (*_logfile) <<
x[
index] <<
" ";
106void RooMinimizerFcn::evaluateGradient(
const double *
x,
double *out)
const
111 (*_logfile) <<
x[
index] <<
" ";
117 std::size_t
iAll = 0;
129 std::cout <<
"\n gradient = ";
130 for (std::size_t i = 0; i <
getNDim(); ++i) {
131 std::cout << out[i] <<
", ";
136std::string RooMinimizerFcn::getFunctionName()
const
141std::string RooMinimizerFcn::getFunctionTitle()
const
143 return _funct->GetTitle();
146void RooMinimizerFcn::setOffsetting(
bool flag)
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t index
Common abstract base class for objects that represent a value and a "shape" in RooFit.
Abstract base class for objects that represent a real value and implements functionality common to al...
static void setHideOffset(bool flag)
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Wrapper class around ROOT::Math::Minimizer that provides a seamless interface between the minimizer f...
RooMinimizer::Config _cfg