|
GooFit
v2.1.3
|
#include <DataSet.h>
Public Member Functions | |
| DataSet (const Observable &var, std::string n="") | |
| DataSet (const std::vector< Observable > &vars, std::string n="") | |
| DataSet (const std::set< Observable > &vars, std::string n="") | |
| DataSet (std::initializer_list< Observable > vars, std::string n="") | |
| virtual | ~DataSet ()=default |
| virtual void | addEvent ()=0 |
| virtual void | addWeightedEvent (fptype weight) |
| template<typename... Args> | |
| void | addEvent (fptype value, Args... args) |
| This is a helper that allows multiple values to be passed in instead of relying on the content of the Variables. More... | |
| const std::vector< Observable > & | getObservables () const |
| size_t | numVariables () const |
| size_t | getNumEvents () const |
| std::string | getName () const |
Protected Member Functions | |
| std::vector< fptype > | getCurrentValues () const |
| size_t | indexOfVariable (const Observable &var) const |
| void | checkAllVars () const |
| Throw an error if any variables are out of range, call in addEvent. More... | |
Protected Attributes | |
| size_t | numEventsAdded {0} |
| std::vector< Observable > | observables |
| GooFit::DataSet::DataSet | ( | const Observable & | var, |
| std::string | n = "" |
||
| ) |
Definition at line 11 of file DataSet.cpp.
| GooFit::DataSet::DataSet | ( | const std::vector< Observable > & | vars, |
| std::string | n = "" |
||
| ) |
Definition at line 17 of file DataSet.cpp.
| GooFit::DataSet::DataSet | ( | const std::set< Observable > & | vars, |
| std::string | n = "" |
||
| ) |
Definition at line 23 of file DataSet.cpp.
| GooFit::DataSet::DataSet | ( | std::initializer_list< Observable > | vars, |
| std::string | n = "" |
||
| ) |
Definition at line 29 of file DataSet.cpp.
|
virtualdefault |
|
pure virtual |
Implemented in GooFit::UnbinnedDataSet, and GooFit::BinnedDataSet.
Referenced by addEvent(), getData(), and getToyData().
|
inline |
This is a helper that allows multiple values to be passed in instead of relying on the content of the Variables.
Definition at line 31 of file DataSet.h.
References addEvent(), getObservables(), and observables.
|
virtual |
|
protected |
Throw an error if any variables are out of range, call in addEvent.
Definition at line 71 of file DataSet.cpp.
References observables.
Referenced by GooFit::BinnedDataSet::addEvent(), GooFit::UnbinnedDataSet::addEvent(), and GooFit::BinnedDataSet::addWeightedEvent().
|
protected |
Definition at line 39 of file DataSet.cpp.
References observables.
Referenced by GooFit::BinnedDataSet::getBinNumber(), and getName().
|
inline |
Definition at line 49 of file DataSet.h.
References getCurrentValues(), and indexOfVariable().
Referenced by GooFit::BinnedDataSet::getNumWeightedEvents().
|
inline |
Definition at line 47 of file DataSet.h.
References numEventsAdded.
Referenced by GooFit::DalitzPlotter::DalitzPlotter(), fitAndPlot(), GooFit::UnbinnedDataSet::from_matrix(), getData(), GooFit::DalitzPlotter::getNumEvents(), getToyData(), GooFit::UnbinnedDataSet::getValue(), main(), make1BinSigmaMap(), make4BinSigmaMap(), makeBackgroundHistogram(), makeDalitzPlots(), makeSigmaMap(), makeTimePlots(), makeToyDalitzPlots(), plotFit(), runBackgroundDalitzFit(), runCanonicalFit(), runEfficiencyFit(), runGeneratedMCFit(), runSigmaFit(), runToyFit(), runTruthMCFit(), and GooFit::UnbinnedDataSet::setValueForAllEvents().
| const std::vector< Observable > & GooFit::DataSet::getObservables | ( | ) | const |
Definition at line 49 of file DataSet.cpp.
References observables.
Referenced by addEvent(), GooFit::UnbinnedDataSet::fillWithGrid(), getToyData(), and runGeneratedMCFit().
|
protected |
Definition at line 51 of file DataSet.cpp.
References observables.
Referenced by GooFit::BinnedDataSet::getBinCenter(), getName(), GooFit::UnbinnedDataSet::getValue(), and GooFit::UnbinnedDataSet::setValueForAllEvents().
|
inline |
|
protected |
Definition at line 54 of file DataSet.h.
Referenced by GooFit::BinnedDataSet::addEvent(), GooFit::UnbinnedDataSet::addEvent(), GooFit::BinnedDataSet::addWeightedEvent(), and getNumEvents().
|
protected |
Definition at line 66 of file DataSet.h.
Referenced by GooFit::UnbinnedDataSet::addEvent(), addEvent(), GooFit::BinnedDataSet::addWeightedEvent(), checkAllVars(), GooFit::UnbinnedDataSet::from_matrix(), GooFit::BinnedDataSet::getBinCenter(), GooFit::BinnedDataSet::getBinNumber(), GooFit::BinnedDataSet::getBinSize(), GooFit::BinnedDataSet::getBinVolume(), getCurrentValues(), GooFit::BinnedDataSet::getNumWeightedEvents(), getObservables(), indexOfVariable(), GooFit::UnbinnedDataSet::loadEvent(), and numVariables().
1.8.13