GooFit
v2.1.3
|
#include <BinnedDataSet.h>
Public Member Functions | |
BinnedDataSet (const Observable &var, std::string n="") | |
BinnedDataSet (const std::vector< Observable > &vars, std::string n="") | |
BinnedDataSet (const std::set< Observable > &vars, std::string n="") | |
BinnedDataSet (std::initializer_list< Observable > vars, std::string n="") | |
~BinnedDataSet () override=default | |
void | addEvent () override |
void | addWeightedEvent (double weight) override |
fptype | getBinContent (size_t bin) const |
Get the content of a bin. More... | |
fptype | getBinCenter (size_t ivar, size_t bin) const |
fptype | getBinCenter (const Observable &var, size_t bin) const |
fptype | getBinSize (size_t ivar) const |
Get the size of a bin. More... | |
size_t | getBinNumber () const |
fptype | getBinVolume (size_t bin) const |
fptype | getBinError (size_t bin) const |
std::vector< size_t > | getDiminsions () const |
Get the size of each diminsion. More... | |
size_t | getNumBins () const |
fptype | getNumWeightedEvents () const |
This includes weights. More... | |
void | setBinContent (unsigned int bin, fptype value) |
void | setBinError (unsigned int bin, fptype value) |
Public Member Functions inherited from GooFit::DataSet | |
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 |
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 |
Additional Inherited Members | |
Protected Member Functions inherited from GooFit::DataSet | |
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 inherited from GooFit::DataSet | |
size_t | numEventsAdded {0} |
std::vector< Observable > | observables |
Definition at line 10 of file BinnedDataSet.h.
GooFit::BinnedDataSet::BinnedDataSet | ( | const Observable & | var, |
std::string | n = "" |
||
) |
GooFit::BinnedDataSet::BinnedDataSet | ( | const std::vector< Observable > & | vars, |
std::string | n = "" |
||
) |
GooFit::BinnedDataSet::BinnedDataSet | ( | const std::set< Observable > & | vars, |
std::string | n = "" |
||
) |
GooFit::BinnedDataSet::BinnedDataSet | ( | std::initializer_list< Observable > | vars, |
std::string | n = "" |
||
) |
|
overridedefault |
|
overridevirtual |
Implements GooFit::DataSet.
Definition at line 36 of file BinnedDataSet.cpp.
References GooFit::DataSet::checkAllVars(), getBinNumber(), and GooFit::DataSet::numEventsAdded.
Referenced by makeBackgroundHistogram(), and makeBkg3Eff().
|
overridevirtual |
Reimplemented from GooFit::DataSet.
Definition at line 43 of file BinnedDataSet.cpp.
References GooFit::DataSet::checkAllVars(), getBinNumber(), GooFit::DataSet::numEventsAdded, and GooFit::DataSet::observables.
Referenced by loadDataFile().
fptype GooFit::BinnedDataSet::getBinCenter | ( | size_t | ivar, |
size_t | bin | ||
) | const |
Definition at line 92 of file BinnedDataSet.cpp.
References getBinSize(), and GooFit::DataSet::observables.
Referenced by getBinCenter(), and getBinContent().
fptype GooFit::BinnedDataSet::getBinCenter | ( | const Observable & | var, |
size_t | bin | ||
) | const |
Definition at line 102 of file BinnedDataSet.cpp.
References getBinCenter(), and GooFit::DataSet::indexOfVariable().
|
inline |
Get the content of a bin.
Definition at line 26 of file BinnedDataSet.h.
References getBinCenter(), getBinError(), getBinNumber(), getBinSize(), and getBinVolume().
Referenced by makeBackgroundHistogram().
fptype GooFit::BinnedDataSet::getBinError | ( | size_t | bin | ) | const |
Definition at line 121 of file BinnedDataSet.cpp.
Referenced by getBinContent().
size_t GooFit::BinnedDataSet::getBinNumber | ( | ) | const |
Definition at line 58 of file BinnedDataSet.cpp.
References GooFit::DataSet::getCurrentValues(), and GooFit::DataSet::observables.
Referenced by addEvent(), addWeightedEvent(), and getBinContent().
fptype GooFit::BinnedDataSet::getBinSize | ( | size_t | ivar | ) | const |
Get the size of a bin.
Definition at line 107 of file BinnedDataSet.cpp.
References GooFit::DataSet::observables.
Referenced by getBinCenter(), getBinContent(), getBinVolume(), and getNumWeightedEvents().
fptype GooFit::BinnedDataSet::getBinVolume | ( | size_t | bin | ) | const |
Definition at line 111 of file BinnedDataSet.cpp.
References getBinSize(), and GooFit::DataSet::observables.
Referenced by getBinContent().
|
inline |
Get the size of each diminsion.
Definition at line 38 of file BinnedDataSet.h.
References getNumBins(), and getNumWeightedEvents().
size_t GooFit::BinnedDataSet::getNumBins | ( | ) | const |
Definition at line 135 of file BinnedDataSet.cpp.
Referenced by BinnedDataSet(), getDiminsions(), and makeBackgroundHistogram().
fptype GooFit::BinnedDataSet::getNumWeightedEvents | ( | ) | const |
This includes weights.
Definition at line 139 of file BinnedDataSet.cpp.
References getBinSize(), GooFit::DataSet::getName(), GOOFIT_INFO, and GooFit::DataSet::observables.
Referenced by getDiminsions().
|
inline |
Definition at line 45 of file BinnedDataSet.h.
References setBinError().
Referenced by makeBackgroundHistogram().
void GooFit::BinnedDataSet::setBinError | ( | unsigned int | bin, |
fptype | value | ||
) |
Definition at line 128 of file BinnedDataSet.cpp.
Referenced by setBinContent().