GooFit  v2.1.3
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
GooFit::ResonancePdf Class Reference

#include <ResonancePdf.h>

Inheritance diagram for GooFit::ResonancePdf:
GooFit::GooPdf GooFit::PdfBase GooFit::Resonances::FLATTE GooFit::Resonances::Gauss GooFit::Resonances::GS GooFit::Resonances::LASS GooFit::Resonances::NonRes GooFit::Resonances::RBW GooFit::Resonances::Spline

Public Member Functions

 ~ResonancePdf () override=default
 
virtual __host__ void recalculateCache () const
 
__host__ Variable get_amp_real () const
 
__host__ Variable get_amp_img () const
 
- Public Member Functions inherited from GooFit::GooPdf
double calculateNLL () const override
 
__host__ std::vector< fptypeevaluateAtPoints (Observable var)
 
__host__ fptype normalize () const override
 A normalize function. This fills in the host_normalize. More...
 
__host__ fptype normalise () const
 Just in case you are British and the previous spelling is offensive. More...
 
virtual __host__ fptype integrate (fptype lo, fptype hi) const
 
__host__ bool hasAnalyticIntegral () const override
 
__host__ fptype getValue (EvalFunc evalfunc=EvalFunc::Eval)
 
__host__ std::vector< std::vector< fptype > > getCompProbsAtDataPoints ()
 Produce a list of probabilies at points. More...
 
__host__ UnbinnedDataSet makeGrid ()
 Set an equidistant grid based on the stored variable binning. More...
 
__host__ void initialize (std::vector< unsigned int > pindices, void *dev_functionPtr=host_fcn_ptr)
 
__host__ void scan (Observable var, std::vector< fptype > &values)
 
__host__ void setFitControl (std::shared_ptr< FitControl > fc) override
 
virtual __host__ void setMetrics ()
 
__host__ void setParameterConstantness (bool constant=true)
 
virtual __host__ void transformGrid (fptype *host_output)
 
__host__ void setDebugMask (int mask, bool setSpecific=true) const
 
- Public Member Functions inherited from GooFit::PdfBase
template<typename... Args>
 PdfBase (std::string n, Args... args)
 
virtual ~PdfBase ()=default
 
__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< ObservablegetObservables () const
 
virtual __host__ std::vector< VariablegetParameters () const
 
__host__ VariablegetParameterByName (std::string n)
 
__host__ int getSpecialMask () const
 
__host__ void setData (DataSet *data)
 
__host__ DataSetgetData ()
 
__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

 ResonancePdf (std::string name, Variable ar, Variable ai)
 Special constructor that subclasses use. More...
 
void setConstantIndex (unsigned int idx)
 
- Protected Member Functions inherited from GooFit::GooPdf
virtual __host__ double sumOfNll (int numVars) const
 
- Protected Member Functions inherited from GooFit::PdfBase
void setNumPerTask (PdfBase *p, const int &c)
 This needs to be set before a call to setData. More...
 

Protected Attributes

Variable amp_real
 
Variable amp_imag
 
std::vector< unsigned int > pindices
 
std::vector< fptypehost_constants
 
- Protected Attributes inherited from GooFit::GooPdf
std::shared_ptr< MetricTakerlogger
 
- Protected Attributes inherited from GooFit::PdfBase
DataSetdata_ = nullptr
 
fptype numEvents {0}
 
unsigned int numEntries {0}
 
fptypenormRanges
 
unsigned int parameters {0}
 
unsigned int cIndex {1}
 
std::vector< Observableobservables
 
std::vector< VariableparameterList
 
std::shared_ptr< FitControlfitControl
 
std::vector< PdfBase * > components
 
int integrationBins {-1}
 
int specialMask {0}
 
bool properlyInitialised {true}
 
unsigned int functionIdx {0}
 
int m_iEventsPerTask {0}
 

Friends

class TddpPdf
 
class DalitzPlotPdf
 
class IncoherentSumPdf
 

Additional Inherited Members

- Public Types inherited from GooFit::PdfBase
enum  Specials { ForceSeparateNorm = 1, ForceCommonNorm = 2 }
 
- Static Public Member Functions inherited from GooFit::GooPdf
static __host__ int findFunctionIdx (void *dev_functionPtr)
 

Detailed Description

Service class intended to hold parametrisations of resonances on Dalitz plots. Don't try to use this as a standalone PDF! It should only be used as a component in one of the friend classes. It extends GooPdf so as to take advantage of the infrastructure, but will crash if used on its own.

Definition at line 32 of file ResonancePdf.h.

Constructor & Destructor Documentation

◆ ~ResonancePdf()

GooFit::ResonancePdf::~ResonancePdf ( )
overridedefault

◆ ResonancePdf()

GooFit::ResonancePdf::ResonancePdf ( std::string  name,
Variable  ar,
Variable  ai 
)
inlineprotected

Special constructor that subclasses use.

Definition at line 47 of file ResonancePdf.h.

References pindices.

48  : GooPdf(name)
49  , amp_real(ar)
50  , amp_imag(ai) {
51  // Dummy index for constants - won't use it, but calling
52  // functions can't know that and will call setConstantIndex anyway.
53  pindices.push_back(0);
54  }
std::vector< unsigned int > pindices
Definition: ResonancePdf.h:61

Member Function Documentation

◆ get_amp_img()

__host__ Variable GooFit::ResonancePdf::get_amp_img ( ) const
inline

Definition at line 43 of file ResonancePdf.h.

References amp_imag.

43 { return amp_imag; }

◆ get_amp_real()

__host__ Variable GooFit::ResonancePdf::get_amp_real ( ) const
inline

Definition at line 42 of file ResonancePdf.h.

References amp_real.

42 { return amp_real; }

◆ recalculateCache()

virtual __host__ void GooFit::ResonancePdf::recalculateCache ( ) const
inlinevirtual

Reimplemented in GooFit::Resonances::Spline.

Definition at line 40 of file ResonancePdf.h.

40 {}

◆ setConstantIndex()

void GooFit::ResonancePdf::setConstantIndex ( unsigned int  idx)
inlineprotected

Definition at line 56 of file ResonancePdf.h.

References GooFit::host_indices, and GooFit::PdfBase::parameters.

56 { host_indices[parameters + 1] = idx; }
unsigned int host_indices[maxParams]
Definition: PdfBase.cpp:31
unsigned int parameters
Definition: PdfBase.h:132

Friends And Related Function Documentation

◆ DalitzPlotPdf

friend class DalitzPlotPdf
friend

Definition at line 34 of file ResonancePdf.h.

◆ IncoherentSumPdf

friend class IncoherentSumPdf
friend

Definition at line 35 of file ResonancePdf.h.

◆ TddpPdf

friend class TddpPdf
friend

Definition at line 33 of file ResonancePdf.h.

Member Data Documentation

◆ amp_imag

Variable GooFit::ResonancePdf::amp_imag
protected

Definition at line 59 of file ResonancePdf.h.

Referenced by get_amp_img().

◆ amp_real

Variable GooFit::ResonancePdf::amp_real
protected

Definition at line 58 of file ResonancePdf.h.

Referenced by get_amp_real().

◆ host_constants

std::vector<fptype> GooFit::ResonancePdf::host_constants
protected

Definition at line 63 of file ResonancePdf.h.

◆ pindices

std::vector<unsigned int> GooFit::ResonancePdf::pindices
protected

Definition at line 61 of file ResonancePdf.h.

Referenced by ResonancePdf().


The documentation for this class was generated from the following file: