51 RooAbsTestStatistic::Configuration cfg;
110 bool integrate, RooAbsTestStatistic::Configuration
const &cfg)
119 if (!
extPdf.canBeExtended()) {
120 throw std::runtime_error(
121 Form(
"RooXYChi2Var::RooXYChi2Var(%s) ERROR: Input p.d.f. must be extendable", GetName()));
138 _extended(
other._extended),
152void RooXYChi2Var::initialize()
157 if(operMode() !=
Slave)
return;
160 if (
auto* var =
dynamic_cast<RooRealVar*
>(arg)) {
173#ifdef R__HAS_MATHMORE
174 _intConfig.method1D().setLabel(
"RooGaussKronrodIntegrator1D") ;
176 _intConfig.methodND().setLabel(
"RooAdaptiveIntegratorND") ;
187void RooXYChi2Var::initIntegrator()
192 _binList.push_back(&
x->getBinning(
"bin",
false,
true)) ;
199RooXYChi2Var::~RooXYChi2Var() =
default;
206double RooXYChi2Var::xErrorContribution(
double ydata)
const
212 if (var->hasAsymError()) {
215 double cxval = var->getVal() ;
216 double xerrLo = -var->getAsymErrorLo() ;
217 double xerrHi = var->getAsymErrorHi() ;
242 }
else if (var->hasError()) {
245 double cxval = var->getVal() ;
246 double xerr = var->getError() ;
285double RooXYChi2Var::fy()
const
296 double xmin =
x->getVal() +
x->getErrorLo() ;
297 double xmax =
x->getVal() +
x->getErrorHi() ;
304 return ret / volume ;
361 coutE(Eval) <<
"RooXYChi2Var::RooXYChi2Var(" << GetName() <<
") INFINITY ERROR: data point " << i
362 <<
" has zero error, but function is not zero (f=" <<
yfunc <<
")" << std::endl ;
368 double y =
term - carry;
380RooArgSet RooXYChi2Var::requiredExtraObservables()
const
ROOT::RRangeCast< T, false, Range_t > static_range_cast(Range_t &&coll)
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 data
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t result
char * Form(const char *fmt,...)
Formats a string in a circular formatting buffer.
const_iterator begin() const
const_iterator end() const
Common abstract base class for objects that represent a value and a "shape" in RooFit.
Abstract base class for binned and unbinned datasets.
Abstract interface for all probability density functions.
virtual double expectedEvents(const RooArgSet *nset) const
Return expected number of events to be used in calculation of extended likelihood.
Abstract base class for objects that represent a real value and implements functionality common to al...
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Container class to hold unbinned data.
Variable that can be changed from the outside.
void initialize(typename Architecture_t::Matrix_t &A, EInitialization m)