GooFit
v2.1.3
|
#include <goofit/Application.h>
#include <goofit/FitManager.h>
#include <goofit/PDFs/basic/BifurGaussPdf.h>
#include <goofit/PDFs/basic/LandauPdf.h>
#include <goofit/PDFs/basic/NovosibirskPdf.h>
#include <goofit/UnbinnedDataSet.h>
#include <goofit/Variable.h>
#include <goofit/utilities/Style.h>
#include <TCanvas.h>
#include <TH1F.h>
#include <TRandom.h>
#include <TStyle.h>
#include <iostream>
Go to the source code of this file.
Functions | |
double | novosib (double x, double peak, double width, double tail) |
void | fitAndPlot (GooPdf *total, UnbinnedDataSet *data, TH1F &dataHist, Observable xvar, const char *fname) |
int | main (int argc, char **argv) |
Variables | |
TCanvas * | foo = 0 |
void fitAndPlot | ( | GooPdf * | total, |
UnbinnedDataSet * | data, | ||
TH1F & | dataHist, | ||
Observable | xvar, | ||
const char * | fname | ||
) |
Definition at line 45 of file simpleFit.cpp.
References GooFit::FitManagerMinuit2::fit(), foo, GooFit::GooPdf::getCompProbsAtDataPoints(), GooFit::Indexable::getLowerLimit(), GooFit::Observable::getNumBins(), GooFit::DataSet::getNumEvents(), GooFit::Indexable::getUpperLimit(), GooFit::Indexable::getValue(), GooFit::UnbinnedDataSet::loadEvent(), GooFit::GooPdf::makeGrid(), and GooFit::PdfBase::setData().
Referenced by main().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 85 of file simpleFit.cpp.
References GooFit::UnbinnedDataSet::addEvent(), fitAndPlot(), foo, GooFit::Indexable::getLowerLimit(), GooFit::Observable::getNumBins(), GooFit::DataSet::getNumEvents(), GooFit::Indexable::getUpperLimit(), GooFit::Indexable::getValue(), GOOFIT_PARSE, novosib(), GooFit::Observable::setNumBins(), GooFit::Indexable::setValue(), and sigma.
double novosib | ( | double | x, |
double | peak, | ||
double | width, | ||
double | tail | ||
) |
TCanvas* foo = 0 |
Definition at line 43 of file simpleFit.cpp.
Referenced by fitAndPlot(), and main().