GooFit  v2.1.3
Macros
Macros.h File Reference
#include <goofit/Log.h>

Go to the source code of this file.

Macros

#define GOOFIT_START_PDF
 
#define GOOFIT_ADD_PARAM(i, par, name)
 
#define GOOFIT_ADD_OBS(par)   {registarObservable((par))};
 
#define GOOFIT_ADD_CONST(i, par, name)
 
#define GOOFIT_ADD_INT(i, par, name)
 
#define GOOFIT_FINALIZE_PDF
 
#define GOOFIT_GET_PARAM(i)   cudaArray[indices[(i)]]
 
#define GOOFIT_GET_INT(i)   indices[(i)]
 
#define GOOFIT_GET_CONST(i)   functorConstants[indices[(i)]]
 
#define GOOFIT_PDF_IMPL_1(n)   __device__ fptype #n(fptype *evt, fptype *p, unsigned int *indices)
 
#define GOOFIT_PDF_IMPL_3(n)   __device__ fpcomplex #n(fptype Mpair, fptype m1, fptype m2, unsigned int *indices)
 

Macro Definition Documentation

◆ GOOFIT_ADD_CONST

#define GOOFIT_ADD_CONST (   i,
  par,
  name 
)
Value:
{ \
pindices.push_back(registerConstants(1)); \
MEMCPY_TO_SYMBOL(functorConstants, &(par), sizeof par, cIndex * sizeof par, cudaMemcpyHostToDevice); \
if((i) != pindices.size()) \
"{}: Const {} {} actually has number {}", getName(), (name), (i), pindices.size()); \
GOOFIT_DEBUG("{}: Registered constant value {}={} at c:{}", getName(), (name), (par), pindices.size()); \
}
Thrown when a general error is encountered.
Definition: Error.h:10

Definition at line 21 of file Macros.h.

◆ GOOFIT_ADD_INT

#define GOOFIT_ADD_INT (   i,
  par,
  name 
)
Value:
{ \
GOOFIT_DEBUG("{}: Registered integer {} at {}", getName(), (name), (par), pindices.size()); \
pindices.push_back((par)); \
if((i) != pindices.size()) \
"{}: Int {} {} actually has number {}", getName(), (name), (i), pindices.size()); \
}
Thrown when a general error is encountered.
Definition: Error.h:10

Definition at line 31 of file Macros.h.

◆ GOOFIT_ADD_OBS

#define GOOFIT_ADD_OBS (   par)    {registarObservable((par))};

Definition at line 19 of file Macros.h.

◆ GOOFIT_ADD_PARAM

#define GOOFIT_ADD_PARAM (   i,
  par,
  name 
)
Value:
{ \
pindices.push_back(registerParameter((par))); \
if((i) != pindices.size()) \
"{}: Param {} {} actually has number {}", getName(), (name), (i), pindices.size()); \
}
Thrown when a general error is encountered.
Definition: Error.h:10

Definition at line 11 of file Macros.h.

◆ GOOFIT_FINALIZE_PDF

#define GOOFIT_FINALIZE_PDF
Value:
initialize(pindices); \
GOOFIT_DEBUG("{}: Initializing indices", getName());

Definition at line 40 of file Macros.h.

◆ GOOFIT_GET_CONST

#define GOOFIT_GET_CONST (   i)    functorConstants[indices[(i)]]

Definition at line 46 of file Macros.h.

◆ GOOFIT_GET_INT

#define GOOFIT_GET_INT (   i)    indices[(i)]

Definition at line 45 of file Macros.h.

◆ GOOFIT_GET_PARAM

#define GOOFIT_GET_PARAM (   i)    cudaArray[indices[(i)]]

Definition at line 44 of file Macros.h.

◆ GOOFIT_PDF_IMPL_1

#define GOOFIT_PDF_IMPL_1 (   n)    __device__ fptype #n(fptype *evt, fptype *p, unsigned int *indices)

Definition at line 48 of file Macros.h.

◆ GOOFIT_PDF_IMPL_3

#define GOOFIT_PDF_IMPL_3 (   n)    __device__ fpcomplex #n(fptype Mpair, fptype m1, fptype m2, unsigned int *indices)

Definition at line 49 of file Macros.h.

◆ GOOFIT_START_PDF

#define GOOFIT_START_PDF
Value:
std::vector<unsigned int> pindices; \
pindices.push_back(0);

Definition at line 7 of file Macros.h.