GooFit
v2.1.3
|
#include <Variable.h>
Public Member Functions | |
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::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... | |
This class is specifically for any indexable quanity: Observables or Variables. It contains the idea of a limited quanity (min==max means no limit). It can also take a value.
Definition at line 22 of file Variable.h.
|
inline |
Definition at line 40 of file Variable.h.
|
inline |
Definition at line 44 of file Variable.h.
References operator=().
|
inlinevirtual |
Definition at line 52 of file Variable.h.
References GOOFIT_DEBUG.
|
inline |
Get the GooFit index.
Definition at line 58 of file Variable.h.
References index.
Referenced by GooFit::max_index(), GooFit::operator<<(), and GooFit::PdfBase::registerParameter().
|
inline |
Get the lower limit.
Definition at line 78 of file Variable.h.
References lowerlimit.
Referenced by cpvFitFcn(), createWeightHistogram(), GooFit::DalitzPlotter::DalitzPlotter(), fitAndPlot(), fitRatio(), fitRatioCPU(), generateEvents(), GooFit::Observable::getBinSize(), GooFit::DalitzPlotter::getM13(), getToyData(), loadDataFile(), main(), make1BinSigmaMap(), make4BinSigmaMap(), GooFit::make_a_grid(), makeDalitzPlots(), makeSigmaMap(), makeTimePlots(), makeToyDalitzPlots(), operator bool(), GooFit::operator<<(), plotFit(), runBackgroundSigmaFit(), runEfficiencyFit(), and runSigmaFit().
|
inline |
Get the name.
Definition at line 63 of file Variable.h.
References name.
Referenced by GooFit::UnbinnedDataSet::getValue(), GooFit::operator<<(), plotFit(), GooFit::PdfBase::registerObservable(), GooFit::PdfBase::registerParameter(), and GooFit::PdfBase::unregisterParameter().
|
inline |
Get the upper limit.
Definition at line 73 of file Variable.h.
References upperlimit.
Referenced by cpvFitFcn(), createWeightHistogram(), fitAndPlot(), fitRatio(), fitRatioCPU(), generateEvents(), GooFit::Observable::getBinSize(), GooFit::DalitzPlotter::getM13(), getToyData(), loadDataFile(), main(), make1BinSigmaMap(), make4BinSigmaMap(), GooFit::make_a_grid(), makeDalitzPlots(), makeSigmaMap(), makeTimePlots(), makeToyDalitzPlots(), operator bool(), GooFit::operator<<(), plotFit(), runBackgroundSigmaFit(), runEfficiencyFit(), and runSigmaFit().
|
inline |
Get the value.
Definition at line 68 of file Variable.h.
References value.
Referenced by GooFit::DalitzPlotter::DalitzPlotter(), fitAndPlot(), getData(), getToyData(), loadDataFile(), main(), make1BinSigmaMap(), make4BinSigmaMap(), GooFit::make_a_grid(), makeDalitzPlots(), makeMikhailJSU_gg(), makeSigmaMap(), makeTimePlots(), makeToyDalitzPlots(), operator bool(), operator fptype(), GooFit::operator<<(), runCanonicalFit(), runEfficiencyFit(), runGeneratedMCFit(), runSigmaFit(), and GooFit::UnbinnedDataSet::setValueForAllEvents().
|
inline |
Check to see if in range.
Definition at line 103 of file Variable.h.
References getLowerLimit(), getUpperLimit(), and getValue().
|
inline |
|
inline |
Support for comparison - only if really the same object, not just the same value.
Definition at line 100 of file Variable.h.
References value.
|
inline |
Support for using as key in map - Notice this does NOT sort by index!
Definition at line 94 of file Variable.h.
References value.
|
inline |
Support for comparison - only if really the same object, not just the same value.
Definition at line 97 of file Variable.h.
References value.
|
inline |
Set the GooFit index.
Definition at line 60 of file Variable.h.
Referenced by GooFit::PdfBase::registerParameter(), and GooFit::PdfBase::unregisterParameter().
|
inline |
Set the lower limit.
Definition at line 80 of file Variable.h.
References lowerlimit.
Referenced by GooFit::readFromFile(), and runGeneratedMCFit().
|
inline |
Set the upper limit.
Definition at line 75 of file Variable.h.
References upperlimit.
Referenced by makeSignalJSU_gg(), GooFit::readFromFile(), and runGeneratedMCFit().
|
inline |
Set the value.
Definition at line 70 of file Variable.h.
Referenced by GooFit::DalitzPlotter::DalitzPlotter(), GooFit::DalitzPlotter::fillDataSetMC(), GooFit::fillDataSetMC1D(), getToyData(), loadDataFile(), main(), make1BinSigmaMap(), make4BinSigmaMap(), GooFit::make_a_grid(), makeDalitzPlots(), makeMikhailJSU_gg(), makeSigmaMap(), makeSignalJSU_gg(), makeSignalPdf(), makeToyDalitzPlots(), operator=(), GooFit::Observable::operator=(), GooFit::Variable::operator=(), GooFit::EventNumber::operator=(), GooFit::readFromFile(), runCanonicalFit(), runEfficiencyFit(), runGeneratedMCFit(), and runSigmaFit().
|
protected |
The goofit index, -1 if unset.
Definition at line 37 of file Variable.h.
Referenced by getIndex(), and setIndex().
The lower limit.
Definition at line 31 of file Variable.h.
Referenced by getLowerLimit(), and setLowerLimit().
|
protected |
The variable name. Should be unique.
Definition at line 25 of file Variable.h.
Referenced by getName().
The upper limit.
Definition at line 34 of file Variable.h.
Referenced by getUpperLimit(), and setUpperLimit().
|
protected |
The value of the variable.
Definition at line 28 of file Variable.h.
Referenced by GooFit::EventNumber::EventNumber(), getValue(), operator!=(), operator<(), operator==(), GooFit::operator>>(), GooFit::Variable::setFitterIndex(), and setIndex().