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

#include <DalitzPlotPdf.h>

Inheritance diagram for GooFit::DalitzPlotPdf:
GooFit::GooPdf GooFit::PdfBase

Public Member Functions

 DalitzPlotPdf (std::string n, Observable m12, Observable m13, EventNumber eventNumber, DecayInfo3 decay, GooPdf *eff=nullptr)
 
__host__ fptype normalize () const override
 A normalize function. This fills in the host_normalize. More...
 
__host__ void setDataSize (unsigned int dataSize, unsigned int evtSize=3)
 
__host__ void setForceIntegrals (bool f=true)
 
__host__ const thrust::device_vector< fpcomplex > & getCachedWaveNoCopy (size_t i) const
 Get the cached wave (device) vectors. More...
 
__host__ const std::vector< std::complex< fptype > > getCachedWave (size_t i) const
 
__host__ fpcomplex sumCachedWave (size_t i) const
 Sum up a cached wave. More...
 
__host__ DecayInfo3getDecayInfo ()
 Get the decay info struct. More...
 
__host__ std::vector< std::vector< fptype > > fit_fractions ()
 Calculate fit fractions (Cache should be pre-filled) More...
 
- Public Member Functions inherited from GooFit::GooPdf
double calculateNLL () const override
 
__host__ std::vector< fptypeevaluateAtPoints (Observable var)
 
__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 ()
 

Public Attributes

friend DalitzPlotter
 

Protected Attributes

DecayInfo3 decayInfo
 
Observable _m12
 
Observable _m13
 
EventNumber _eventNumber
 
fptypedalitzNormRange
 
thrust::device_vector< fpcomplex > * cachedWaves [16]
 
fpcomplex *** integrals
 
bool * redoIntegral
 
bool forceRedoIntegrals
 
fptypecachedMasses
 
fptypecachedWidths
 
int totalEventSize
 
int cacheToUse
 
SpecialResonanceIntegrator *** integrators
 
SpecialResonanceCalculator ** calculators
 
- 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}
 

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)
 
- 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...
 

Detailed Description

Definition at line 14 of file DalitzPlotPdf.h.

Constructor & Destructor Documentation

◆ DalitzPlotPdf()

GooFit::DalitzPlotPdf::DalitzPlotPdf ( std::string  n,
Observable  m12,
Observable  m13,
EventNumber  eventNumber,
DecayInfo3  decay,
GooPdf eff = nullptr 
)

Member Function Documentation

◆ fit_fractions()

__host__ std::vector<std::vector<fptype> > GooFit::DalitzPlotPdf::fit_fractions ( )

Calculate fit fractions (Cache should be pre-filled)

Referenced by getDecayInfo().

◆ getCachedWave()

__host__ const std::vector<std::complex<fptype> > GooFit::DalitzPlotPdf::getCachedWave ( size_t  i) const

Referenced by getCachedWaveNoCopy().

◆ getCachedWaveNoCopy()

__host__ const thrust::device_vector<fpcomplex>& GooFit::DalitzPlotPdf::getCachedWaveNoCopy ( size_t  i) const
inline

Get the cached wave (device) vectors.

Definition at line 31 of file DalitzPlotPdf.h.

References cachedWaves, getCachedWave(), and sumCachedWave().

31 { return *(cachedWaves[i]); }
thrust::device_vector< fpcomplex > * cachedWaves[16]
Definition: DalitzPlotPdf.h:55

◆ getDecayInfo()

__host__ DecayInfo3& GooFit::DalitzPlotPdf::getDecayInfo ( )
inline

Get the decay info struct.

Definition at line 39 of file DalitzPlotPdf.h.

References decayInfo, and fit_fractions().

39 { return decayInfo; }

◆ normalize()

__host__ fptype GooFit::DalitzPlotPdf::normalize ( ) const
overridevirtual

A normalize function. This fills in the host_normalize.

Reimplemented from GooFit::GooPdf.

◆ setDataSize()

__host__ void GooFit::DalitzPlotPdf::setDataSize ( unsigned int  dataSize,
unsigned int  evtSize = 3 
)

Referenced by runToyFit().

◆ setForceIntegrals()

__host__ void GooFit::DalitzPlotPdf::setForceIntegrals ( bool  f = true)
inline

Definition at line 28 of file DalitzPlotPdf.h.

References forceRedoIntegrals.

◆ sumCachedWave()

__host__ fpcomplex GooFit::DalitzPlotPdf::sumCachedWave ( size_t  i) const

Sum up a cached wave.

Referenced by getCachedWaveNoCopy().

Member Data Documentation

◆ _eventNumber

EventNumber GooFit::DalitzPlotPdf::_eventNumber
protected

Definition at line 50 of file DalitzPlotPdf.h.

◆ _m12

Observable GooFit::DalitzPlotPdf::_m12
protected

Definition at line 48 of file DalitzPlotPdf.h.

◆ _m13

Observable GooFit::DalitzPlotPdf::_m13
protected

Definition at line 49 of file DalitzPlotPdf.h.

◆ cachedMasses

fptype* GooFit::DalitzPlotPdf::cachedMasses
protected

Definition at line 60 of file DalitzPlotPdf.h.

◆ cachedWaves

thrust::device_vector<fpcomplex>* GooFit::DalitzPlotPdf::cachedWaves[16]
protected

Definition at line 55 of file DalitzPlotPdf.h.

Referenced by getCachedWaveNoCopy().

◆ cachedWidths

fptype* GooFit::DalitzPlotPdf::cachedWidths
protected

Definition at line 61 of file DalitzPlotPdf.h.

◆ cacheToUse

int GooFit::DalitzPlotPdf::cacheToUse
protected

Definition at line 63 of file DalitzPlotPdf.h.

◆ calculators

SpecialResonanceCalculator** GooFit::DalitzPlotPdf::calculators
protected

Definition at line 65 of file DalitzPlotPdf.h.

◆ dalitzNormRange

fptype* GooFit::DalitzPlotPdf::dalitzNormRange
protected

Definition at line 51 of file DalitzPlotPdf.h.

◆ DalitzPlotter

friend GooFit::DalitzPlotPdf::DalitzPlotter

Definition at line 44 of file DalitzPlotPdf.h.

◆ decayInfo

DecayInfo3 GooFit::DalitzPlotPdf::decayInfo
protected

Definition at line 47 of file DalitzPlotPdf.h.

Referenced by getDecayInfo().

◆ forceRedoIntegrals

bool GooFit::DalitzPlotPdf::forceRedoIntegrals
mutableprotected

Definition at line 59 of file DalitzPlotPdf.h.

Referenced by setForceIntegrals().

◆ integrals

fpcomplex*** GooFit::DalitzPlotPdf::integrals
protected

Definition at line 56 of file DalitzPlotPdf.h.

◆ integrators

SpecialResonanceIntegrator*** GooFit::DalitzPlotPdf::integrators
protected

Definition at line 64 of file DalitzPlotPdf.h.

◆ redoIntegral

bool* GooFit::DalitzPlotPdf::redoIntegral
protected

Definition at line 58 of file DalitzPlotPdf.h.

◆ totalEventSize

int GooFit::DalitzPlotPdf::totalEventSize
protected

Definition at line 62 of file DalitzPlotPdf.h.


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