GooFit
v2.1.3
|
Special class for observables. Used in DataSets. More...
#include <Variable.h>
Public Member Functions | |
Observable (std::string name, fptype lowerlimit, fptype upperlimit) | |
~Observable () override=default | |
Observable & | operator= (const Observable &)=delete |
void | setNumBins (size_t num) |
Set the number of bins. More... | |
size_t | getNumBins () const |
Get the number of bins. More... | |
fptype | getBinSize () const |
Get the bin size, (upper-lower) / bins. More... | |
bool | isEventNumber () const |
Check to see if this is an event number. More... | |
const Observable & | operator= (const fptype &val) |
Support var = 3. More... | |
Public Member Functions inherited from GooFit::Indexable | |
Indexable (std::string n, fptype val=0) | |
Indexable (std::string n, fptype val, fptype lowerlimit, fptype upperlimit) | |
Indexable & | operator= (const Indexable &)=delete |
virtual | ~Indexable () |
int | getIndex () const |
Get the GooFit index. More... | |
void | setIndex (int value) |
Set the GooFit index. More... | |
const std::string & | getName () const |
Get the name. More... | |
fptype | getValue () const |
Get the value. More... | |
void | setValue (fptype val) |
Set the value. More... | |
fptype | getUpperLimit () const |
Get the upper limit. More... | |
void | setUpperLimit (fptype val) |
Set the upper limit. More... | |
fptype | getLowerLimit () const |
Get the lower limit. More... | |
void | setLowerLimit (fptype val) |
Set the lower limit. More... | |
const Indexable & | operator= (const fptype &val) |
Support var = 3. More... | |
operator fptype () const | |
Support fptype val = var. More... | |
bool | operator< (const Indexable &other) const |
Support for using as key in map - Notice this does NOT sort by index! More... | |
bool | operator== (const Indexable &other) const |
Support for comparison - only if really the same object, not just the same value. More... | |
bool | operator!= (const Indexable &other) const |
Support for comparison - only if really the same object, not just the same value. More... | |
operator bool () const | |
Check to see if in range. More... | |
Protected Attributes | |
std::shared_ptr< size_t > | numbins {std::make_shared<size_t>(100)} |
The number of bins (mostly for BinnedData, or plotting help) More... | |
bool | is_event_number {false} |
This identifies this as an EventNumber if copies are made. More... | |
Protected Attributes inherited from GooFit::Indexable | |
std::string | name |
The variable name. Should be unique. More... | |
std::shared_ptr< fptype > | value |
The value of the variable. More... | |
std::shared_ptr< fptype > | lowerlimit {std::make_shared<fptype>(0)} |
The lower limit. More... | |
std::shared_ptr< fptype > | upperlimit {std::make_shared<fptype>(0)} |
The upper limit. More... | |
std::shared_ptr< int > | index {std::make_shared<int>(-1)} |
The goofit index, -1 if unset. More... | |
Friends | |
std::istream & | operator>> (std::istream &o, Observable &var) |
Allow Observable to be read in. More... | |
Special class for observables. Used in DataSets.
Definition at line 109 of file Variable.h.
Definition at line 120 of file Variable.h.
References GooFit::Indexable::operator=().
|
overridedefault |
|
inline |
Get the bin size, (upper-lower) / bins.
Definition at line 133 of file Variable.h.
References GooFit::Indexable::getLowerLimit(), and GooFit::Indexable::getUpperLimit().
Referenced by GooFit::DalitzPlotter::DalitzPlotter(), GooFit::DalitzPlotter::fillDataSetMC(), GooFit::fillDataSetMC1D(), runEfficiencyFit(), and runSigmaFit().
|
inline |
Get the number of bins.
Definition at line 130 of file Variable.h.
Referenced by coarseBin(), cpvFitFcn(), createWeightHistogram(), GooFit::DalitzPlotter::DalitzPlotter(), fitAndPlot(), fitRatio(), fitRatioCPU(), generateEvents(), GooFit::DalitzPlotter::getM13(), getToyData(), main(), make1BinSigmaMap(), make4BinSigmaMap(), GooFit::make_a_grid(), makeBkg3Eff(), makeDalitzPlots(), makeOverallSignal(), makeSigmaMap(), makeTimePlots(), makeToyDalitzPlots(), GooFit::operator<<(), plotFit(), runBackgroundSigmaFit(), runCanonicalFit(), runEfficiencyFit(), runGeneratedMCFit(), and runSigmaFit().
|
inline |
Check to see if this is an event number.
Definition at line 136 of file Variable.h.
Referenced by GooFit::make_a_grid().
|
delete |
|
inline |
Support var = 3.
Definition at line 139 of file Variable.h.
References GooFit::Indexable::setValue().
|
inline |
Set the number of bins.
Definition at line 128 of file Variable.h.
Referenced by main(), makeBkg3Eff(), makeFullFitVariables(), makeOverallSignal(), makeTimePlots(), runCanonicalFit(), runEfficiencyFit(), runGeneratedMCFit(), and runToyFit().
|
friend |
Allow Observable to be read in.
Definition at line 59 of file Variable.cpp.
|
protected |
This identifies this as an EventNumber if copies are made.
Definition at line 117 of file Variable.h.
|
protected |
The number of bins (mostly for BinnedData, or plotting help)
Definition at line 114 of file Variable.h.