GooFit
v2.1.3
|
#include <PdfBase.h>
Public Types | |
enum | Specials { ForceSeparateNorm = 1, ForceCommonNorm = 2 } |
Public Member Functions | |
template<typename... Args> | |
PdfBase (std::string n, Args... args) | |
virtual | ~PdfBase ()=default |
virtual __host__ double | calculateNLL () const =0 |
virtual __host__ fptype | normalize () const =0 |
__host__ void | initializeIndices (std::vector< unsigned int > pindices) |
__host__ void | addSpecialMask (int m) |
__host__ void | copyParams (const std::vector< double > &pars) const |
__host__ void | copyParams () |
__host__ void | copyNormFactors () const |
__host__ void | generateNormRange () |
__host__ std::string | getName () const |
virtual __host__ std::vector< Observable > | getObservables () const |
virtual __host__ std::vector< Variable > | getParameters () const |
__host__ Variable * | getParameterByName (std::string n) |
__host__ int | getSpecialMask () const |
__host__ void | setData (DataSet *data) |
__host__ DataSet * | getData () |
virtual __host__ void | setFitControl (std::shared_ptr< FitControl >)=0 |
virtual __host__ bool | hasAnalyticIntegral () const |
__host__ ROOT::Minuit2::FunctionMinimum | fitTo (DataSet *data, int verbosity=3) |
RooFit style fitting shortcut. More... | |
__host__ unsigned int | getFunctionIndex () const |
__host__ unsigned int | getParameterIndex () const |
__host__ unsigned int | registerParameter (Variable var) |
__host__ unsigned int | registerConstants (unsigned int amount) |
virtual __host__ void | recursiveSetNormalisation (fptype norm=1) const |
__host__ void | unregisterParameter (Variable var) |
__host__ void | registerObservable (Observable obs) |
__host__ void | setIntegrationFineness (int i) |
__host__ void | printProfileInfo (bool topLevel=true) |
__host__ bool | parametersChanged () const |
__host__ void | checkInitStatus (std::vector< std::string > &unInited) const |
void | clearCurrentFit () |
__host__ void | SigGenSetIndices () |
Protected Member Functions | |
void | setNumPerTask (PdfBase *p, const int &c) |
This needs to be set before a call to setData. More... | |
Protected Attributes | |
DataSet * | data_ = nullptr |
fptype | numEvents {0} |
unsigned int | numEntries {0} |
fptype * | normRanges |
unsigned int | parameters {0} |
unsigned int | cIndex {1} |
std::vector< Observable > | observables |
std::vector< Variable > | parameterList |
std::shared_ptr< FitControl > | fitControl |
std::vector< PdfBase * > | components |
int | integrationBins {-1} |
int | specialMask {0} |
bool | properlyInitialised {true} |
unsigned int | functionIdx {0} |
int | m_iEventsPerTask {0} |
Enumerator | |
---|---|
ForceSeparateNorm | |
ForceCommonNorm |
Definition at line 82 of file PdfBase.h.
|
inlineexplicit |
Definition at line 72 of file PdfBase.h.
|
virtualdefault |
|
inline |
Definition at line 88 of file PdfBase.h.
Referenced by makeBackground3DalitzParam(), makeBackground4DalitzParam(), makeBkg2DalitzPdf(), makeBkg3DalitzPdf(), makeBkg4DalitzPdf(), makeOverallSignal(), and runToyFit().
|
pure virtual |
Implemented in GooFit::GooPdf.
Referenced by GooFit::Minuit1::Eval(), and GooFit::FCN::operator()().
__host__ void GooFit::PdfBase::checkInitStatus | ( | std::vector< std::string > & | unInited | ) | const |
Definition at line 37 of file PdfBase.cpp.
References components, getName(), and properlyInitialised.
void GooFit::PdfBase::clearCurrentFit | ( | ) |
__host__ void GooFit::PdfBase::copyNormFactors | ( | ) | const |
__host__ void GooFit::PdfBase::copyParams | ( | const std::vector< double > & | pars | ) | const |
Referenced by GooFit::Minuit1::Eval(), GooFit::Params::from_minuit_vector(), and GooFit::Minuit1::Minuit1().
__host__ void GooFit::PdfBase::copyParams | ( | ) |
__host__ ROOT::Minuit2::FunctionMinimum GooFit::PdfBase::fitTo | ( | DataSet * | data, |
int | verbosity = 3 |
||
) |
RooFit style fitting shortcut.
Definition at line 159 of file PdfBase.cpp.
References setData(), and GooFit::FitManagerMinuit2::setVerbosity().
__host__ void GooFit::PdfBase::generateNormRange | ( | ) |
Referenced by setIntegrationFineness().
__host__ DataSet* GooFit::PdfBase::getData | ( | ) |
Referenced by GooFit::fillDataSetMC1D().
|
inline |
|
inline |
Definition at line 93 of file PdfBase.h.
Referenced by GooFit::abort(), checkInitStatus(), GooFit::SpinFactor::operator==(), GooFit::Lineshape::operator==(), registerObservable(), registerParameter(), and unregisterParameter().
|
virtual |
Definition at line 111 of file PdfBase.cpp.
References components, and observables.
Referenced by makeDalitzPlots().
__host__ Variable * GooFit::PdfBase::getParameterByName | ( | std::string | n | ) |
Definition at line 95 of file PdfBase.cpp.
References components, and parameterList.
Referenced by runCanonicalFit().
|
inline |
|
virtual |
Definition at line 81 of file PdfBase.cpp.
References components, and parameterList.
Referenced by GooFit::abort(), GooFit::Params::Params(), GooFit::readFromFile(), and GooFit::writeToFile().
|
inline |
|
inlinevirtual |
__host__ void GooFit::PdfBase::initializeIndices | ( | std::vector< unsigned int > | pindices | ) |
|
pure virtual |
__host__ bool GooFit::PdfBase::parametersChanged | ( | ) | const |
Definition at line 147 of file PdfBase.cpp.
References GooFit::Variable::getChanged(), and parameterList.
__host__ void GooFit::PdfBase::printProfileInfo | ( | bool | topLevel = true | ) |
Referenced by runCanonicalFit().
|
virtual |
__host__ unsigned int GooFit::PdfBase::registerConstants | ( | unsigned int | amount | ) |
Definition at line 125 of file PdfBase.cpp.
References cIndex, GooFit::maxParams, and GooFit::totalConstants.
void GooFit::PdfBase::registerObservable | ( | Observable | obs | ) |
Definition at line 134 of file PdfBase.cpp.
References GooFit::Indexable::getName(), getName(), GOOFIT_DEBUG, and observables.
__host__ unsigned int GooFit::PdfBase::registerParameter | ( | Variable | var | ) |
Definition at line 54 of file PdfBase.cpp.
References GooFit::Indexable::getIndex(), GooFit::Indexable::getName(), getName(), GOOFIT_DEBUG, parameterList, and GooFit::Indexable::setIndex().
__host__ void GooFit::PdfBase::setData | ( | DataSet * | data | ) |
Referenced by GooFit::fillDataSetMC1D(), fitAndPlot(), fitRatio(), fitTo(), main(), make1BinSigmaMap(), make4BinSigmaMap(), makeDalitzPlots(), makeOverallSignal(), makeSigmaMap(), makeToyDalitzPlots(), runBackgroundDalitzFit(), runBackgroundSigmaFit(), runCanonicalFit(), runEfficiencyFit(), runGeneratedMCFit(), runSigmaFit(), runToyFit(), and runTruthMCFit().
|
pure virtual |
Implemented in GooFit::GooPdf.
__host__ void GooFit::PdfBase::setIntegrationFineness | ( | int | i | ) |
Definition at line 142 of file PdfBase.cpp.
References generateNormRange(), and integrationBins.
|
protected |
This needs to be set before a call to setData.
Definition at line 152 of file PdfBase.cpp.
References m_iEventsPerTask.
|
inline |
__host__ void GooFit::PdfBase::unregisterParameter | ( | Variable | var | ) |
Definition at line 69 of file PdfBase.cpp.
References components, GooFit::Indexable::getName(), getName(), GOOFIT_DEBUG, and GooFit::Indexable::setIndex().
|
protected |
Definition at line 133 of file PdfBase.h.
Referenced by registerConstants().
|
protected |
Definition at line 137 of file PdfBase.h.
Referenced by checkInitStatus(), getObservables(), getParameterByName(), getParameters(), recursiveSetNormalisation(), and unregisterParameter().
|
protected |
|
protected |
Definition at line 138 of file PdfBase.h.
Referenced by setIntegrationFineness().
|
protected |
Definition at line 144 of file PdfBase.h.
Referenced by setNumPerTask().
|
protected |
|
protected |
Definition at line 128 of file PdfBase.h.
Referenced by GooFit::DPPdf::setGenerationOffset(), and GooFit::TDDP4::setMaxWeight().
|
protected |
Definition at line 134 of file PdfBase.h.
Referenced by getObservables(), and registerObservable().
|
protected |
Definition at line 135 of file PdfBase.h.
Referenced by getParameterByName(), getParameters(), parametersChanged(), and registerParameter().
|
protected |
Definition at line 132 of file PdfBase.h.
Referenced by GooFit::ExpPdf::hasAnalyticIntegral(), recursiveSetNormalisation(), and GooFit::ResonancePdf::setConstantIndex().
|
protected |
Definition at line 140 of file PdfBase.h.
Referenced by checkInitStatus().