11 int main(
int argc,
char **argv) {
16 Observable xvar{
"xvar", 0, log(1 + RAND_MAX / 2)};
17 Observable yvar{
"yvar", 0, log(1 + RAND_MAX / 2)};
18 vector<Observable> varList = {xvar, yvar};
21 for(
int i = 0; i < 100000; ++i) {
22 xvar.setValue(xvar.getUpperLimit() - log(1 + rand() / 2));
23 yvar.setValue(yvar.getUpperLimit() - log(1 + rand() / 2));
27 Variable alpha_x{
"alpha_x", -2.4, 0.1, -10, 10};
28 Variable alpha_y{
"alpha_y", -1.1, 0.1, -10, 10};
30 ExpPdf exp_x{
"exp_x", xvar, alpha_x};
31 ExpPdf exp_y{
"exp_y", yvar, alpha_y};
32 ProdPdf product{
"product", {&exp_x, &exp_y}};
Special class for observables. Used in DataSets.
__host__ void setData(DataSet *data)
ROOT::Minuit2::FunctionMinimum fit()
This runs the fit.
#define GOOFIT_PARSE(app,...)
int main(int argc, char **argv)