GooFit
v2.1.3
|
#include <TCanvas.h>
#include <TFile.h>
#include <TH1F.h>
#include <TH2F.h>
#include <TLegend.h>
#include <TLine.h>
#include <TRandom.h>
#include <TRandom3.h>
#include <fstream>
#include <sys/time.h>
#include <sys/times.h>
#include <goofit/Application.h>
#include <goofit/FitManager.h>
#include <goofit/PDFs/GooPdf.h>
#include <goofit/PDFs/basic/PolynomialPdf.h>
#include <goofit/PDFs/combine/AddPdf.h>
#include <goofit/PDFs/combine/ProdPdf.h>
#include <goofit/PDFs/physics/DalitzPlotPdf.h>
#include <goofit/PDFs/physics/DalitzPlotter.h>
#include <goofit/PDFs/physics/DalitzVetoPdf.h>
#include <goofit/PDFs/physics/ResonancePdf.h>
#include <goofit/UnbinnedDataSet.h>
#include <goofit/Variable.h>
#include <goofit/utilities/Style.h>
Go to the source code of this file.
Functions | |
fptype | cpuGetM23 (fptype massPZ, fptype massPM) |
void | getToyData (std::string toyFileName, GooFit::Application &app, DataSet &data) |
void | makeToyData (DalitzPlotter &dplotter, UnbinnedDataSet &data) |
DalitzPlotPdf * | makeSignalPdf (Observable m12, Observable m13, EventNumber eventNumber, GooPdf *eff=0) |
int | runToyFit (DalitzPlotPdf *signal, UnbinnedDataSet *data) |
int | main (int argc, char **argv) |
Variables | |
Variable | fixedRhoMass ("rho_mass", 0.7758, 0.01, 0.7, 0.8) |
Variable | fixedRhoWidth ("rho_width", 0.1503, 0.01, 0.1, 0.2) |
const fptype | _mD0 = 1.86484 |
const fptype | _mD02 = _mD0 * _mD0 |
const fptype | _mD02inv = 1. / _mD02 |
const fptype | piPlusMass = 0.13957018 |
const fptype | piZeroMass = 0.1349766 |
Variable | motherM ("motherM", _mD0) |
Variable | chargeM ("chargeM", piPlusMass) |
Variable | neutrlM ("neutrlM", piZeroMass) |
Variable | massSum ("massSum", _mD0 *_mD0+2 *piPlusMass *piPlusMass+piZeroMass *piZeroMass) |
Variable | constantOne ("constantOne", 1) |
Variable | constantZero ("constantZero", 0) |
Definition at line 51 of file dalitz.cpp.
References _mD02, piPlusMass, and piZeroMass.
void getToyData | ( | std::string | toyFileName, |
GooFit::Application & | app, | ||
DataSet & | data | ||
) |
Definition at line 55 of file dalitz.cpp.
References GooFit::DataSet::addEvent(), eventNumber, foo, GooFit::Application::get_filename(), GooFit::Indexable::getLowerLimit(), GooFit::Observable::getNumBins(), GooFit::DataSet::getNumEvents(), GooFit::DataSet::getObservables(), GooFit::Indexable::getUpperLimit(), GooFit::Indexable::getValue(), GOOFIT_INFO, m12, m13, and GooFit::Indexable::setValue().
Referenced by main().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 348 of file dalitz.cpp.
References data, eventNumber, GooFit::DalitzPlotter::fillDataSetMC(), getToyData(), GOOFIT_PARSE, m12, m13, makeSignalPdf(), runToyFit(), and GooFit::Observable::setNumBins().
DalitzPlotPdf* makeSignalPdf | ( | Observable | m12, |
Observable | m13, | ||
EventNumber | eventNumber, | ||
GooPdf * | eff = 0 |
||
) |
Definition at line 125 of file dalitz.cpp.
References _mD0, _mD02, _mD02inv, constantOne, constantZero, GooFit::DecayInfo3::daug1Mass, GooFit::DecayInfo3::daug2Mass, GooFit::DecayInfo3::daug3Mass, dtop0pp, fitMasses, fixedRhoMass, fixedRhoWidth, m12, GooFit::DecayInfo3::meson_radius, GooFit::DecayInfo3::motherMass, GooFit::PAIR_12, GooFit::PAIR_13, GooFit::PAIR_23, piPlusMass, piZeroMass, and GooFit::DecayInfo3::resonances.
Referenced by main().
void makeToyData | ( | DalitzPlotter & | dplotter, |
UnbinnedDataSet & | data | ||
) |
Definition at line 123 of file dalitz.cpp.
int runToyFit | ( | DalitzPlotPdf * | signal, |
UnbinnedDataSet * | data | ||
) |
Definition at line 319 of file dalitz.cpp.
References GooFit::FitManagerMinuit2::fit(), foo, GooFit::DataSet::getNumEvents(), GooFit::PdfBase::setData(), and GooFit::DalitzPlotPdf::setDataSize().
Referenced by main().
const fptype _mD0 = 1.86484 |
Definition at line 37 of file dalitz.cpp.
Referenced by makeSignalPdf().
Definition at line 38 of file dalitz.cpp.
Referenced by cpuGetM23(), and makeSignalPdf().
Definition at line 39 of file dalitz.cpp.
Referenced by makeSignalPdf().
Variable chargeM("chargeM", piPlusMass) |
Variable constantOne("constantOne", 1) |
Referenced by main(), and makeSignalPdf().
Variable constantZero("constantZero", 0) |
Referenced by main(), and makeSignalPdf().
Variable fixedRhoMass("rho_mass", 0.7758, 0.01, 0.7, 0.8) |
Referenced by makeSignalPdf().
Variable fixedRhoWidth("rho_width", 0.1503, 0.01, 0.1, 0.2) |
Referenced by makeSignalPdf().
Variable massSum("massSum", _mD0 *_mD0+2 *piPlusMass *piPlusMass+piZeroMass *piZeroMass) |
Variable motherM("motherM", _mD0) |
Variable neutrlM("neutrlM", piZeroMass) |
const fptype piPlusMass = 0.13957018 |
Definition at line 40 of file dalitz.cpp.
Referenced by cpuGetM23(), and makeSignalPdf().
const fptype piZeroMass = 0.1349766 |
Definition at line 41 of file dalitz.cpp.
Referenced by cpuGetM23(), and makeSignalPdf().