|
GooFit
v2.1.3
|
#include <goofit/Application.h>#include <goofit/BinnedDataSet.h>#include <goofit/FitControl.h>#include <goofit/FitManager.h>#include <goofit/UnbinnedDataSet.h>#include <goofit/Variable.h>#include <CLI/Timer.hpp>#include <TCanvas.h>#include <TH1F.h>#include <TLatex.h>#include <TMinuit.h>#include <TRandom.h>#include <goofit/PDFs/basic/PolynomialPdf.h>#include <iostream>#include <string>#include <tuple>#include <vector>Go to the source code of this file.
Functions | |
| double | integralExpCon (double lo, double hi) |
| double | integralExpLin (double lo, double hi) |
| double | integralExpSqu (double lo, double hi) |
| void | generateEvents (Observable decayTime, vector< int > &rsEvtVec, vector< int > &wsEvtVec, double conCoef, double linCoef, double squCoef, int eventsToGenerate) |
| std::tuple< int, std::string > | fitRatio (Observable decayTime, vector< Variable > weights, vector< int > &rsEvts, vector< int > &wsEvts, std::string plotName="") |
| void | cpvFitFcn (int &npar, double *gin, double &fun, double *fp, int iflag) |
| void | fitRatioCPU (Observable decayTime, vector< int > &rsEvts, vector< int > &wsEvts) |
| int | main (int argc, char **argv) |
Variables | |
| TCanvas | foo |
| vector< double > | ratios |
| vector< double > | errors |
| Observable | decayTime {"decayTime", 0, 10} |
| void cpvFitFcn | ( | int & | npar, |
| double * | gin, | ||
| double & | fun, | ||
| double * | fp, | ||
| int | iflag | ||
| ) |
Definition at line 160 of file chisquare.cpp.
References decayTime, errors, GooFit::Indexable::getLowerLimit(), GooFit::Observable::getNumBins(), GooFit::Indexable::getUpperLimit(), and ratios.
Referenced by fitRatioCPU().
| std::tuple<int, std::string> fitRatio | ( | Observable | decayTime, |
| vector< Variable > | weights, | ||
| vector< int > & | rsEvts, | ||
| vector< int > & | wsEvts, | ||
| std::string | plotName = "" |
||
| ) |
Definition at line 76 of file chisquare.cpp.
References GooFit::GooPdf::evaluateAtPoints(), GooFit::Indexable::getLowerLimit(), GooFit::Observable::getNumBins(), GooFit::Indexable::getUpperLimit(), GooFit::PdfBase::setData(), and GooFit::GooPdf::setFitControl().
Referenced by main().
| void fitRatioCPU | ( | Observable | decayTime, |
| vector< int > & | rsEvts, | ||
| vector< int > & | wsEvts | ||
| ) |
Definition at line 177 of file chisquare.cpp.
References cpvFitFcn(), errors, GooFit::Indexable::getLowerLimit(), GooFit::Observable::getNumBins(), GooFit::Indexable::getUpperLimit(), and ratios.
Referenced by main().
| void generateEvents | ( | Observable | decayTime, |
| vector< int > & | rsEvtVec, | ||
| vector< int > & | wsEvtVec, | ||
| double | conCoef, | ||
| double | linCoef, | ||
| double | squCoef, | ||
| int | eventsToGenerate | ||
| ) |
Definition at line 41 of file chisquare.cpp.
References GooFit::Indexable::getLowerLimit(), GooFit::Observable::getNumBins(), GooFit::Indexable::getUpperLimit(), integralExpCon(), integralExpLin(), and integralExpSqu().
Referenced by main().
| double integralExpCon | ( | double | lo, |
| double | hi | ||
| ) |
Definition at line 33 of file chisquare.cpp.
Referenced by generateEvents().
| double integralExpLin | ( | double | lo, |
| double | hi | ||
| ) |
Definition at line 35 of file chisquare.cpp.
Referenced by generateEvents().
| double integralExpSqu | ( | double | lo, |
| double | hi | ||
| ) |
Definition at line 37 of file chisquare.cpp.
Referenced by generateEvents().
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 212 of file chisquare.cpp.
References decayTime, fitRatio(), fitRatioCPU(), generateEvents(), GooFit::Observable::getNumBins(), GOOFIT_PARSE, GooFit::Observable::setNumBins(), GooFit::Indexable::setValue(), and weights.
| Observable decayTime {"decayTime", 0, 10} |
Definition at line 31 of file chisquare.cpp.
Referenced by cpvFitFcn(), and main().
| vector<double> errors |
Definition at line 28 of file chisquare.cpp.
Referenced by cpvFitFcn(), and fitRatioCPU().
| TCanvas foo |
Definition at line 22 of file chisquare.cpp.
Referenced by getToyData(), main(), and runToyFit().
| vector<double> ratios |
Definition at line 27 of file chisquare.cpp.
Referenced by cpvFitFcn(), and fitRatioCPU().
1.8.13