GooFit  v2.1.3
AddPdf.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <goofit/PDFs/GooPdf.h>
4 
5 namespace GooFit {
6 
7 class AddPdf : public GooPdf {
8  public:
9  AddPdf(std::string n, std::vector<Variable> weights, std::vector<PdfBase *> comps);
10  AddPdf(std::string n, Variable frac1, PdfBase *func1, PdfBase *func2);
11  __host__ fptype normalize() const override;
12  __host__ bool hasAnalyticIntegral() const override { return false; }
13 
14  protected:
15  __host__ double sumOfNll(int numVars) const override;
16 
17  private:
18  bool extended;
19 };
20 
21 } // namespace GooFit
double fptype
std::vector< Variable > weights
__host__ double sumOfNll(int numVars) const override
__host__ bool hasAnalyticIntegral() const override
Definition: AddPdf.h:12
__host__ fptype normalize() const override
std::vector< PdfBase * > comps
AddPdf(std::string n, std::vector< Variable > weights, std::vector< PdfBase *> comps)