GooFit  v2.1.3
FCN.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <Minuit2/FCNBase.h>
4 
5 #include <vector>
6 
8 
9 namespace GooFit {
10 
11 class FCN : public Minuit2::FCNBase {
12  protected:
14 
15  public:
17  FCN(Params &params);
18 
20  double operator()(const std::vector<double> &pars) const override;
21 
23  double operator()() const;
24 
26  double Up() const override { return 0.5; }
27 
29  Params *GetParams();
30 };
31 } // namespace GooFit
Params * params_
Definition: FCN.h:13
FCN(Params &params)
Create an FCN given parameters (PDF reference is inside params)
Definition: FCN.cpp:9
double operator()() const
produce the FCN value for the current values of the parameters
Definition: FCN.cpp:30
double Up() const override
This value is 0.5 for ll, 1 for chi2.
Definition: FCN.h:26
Params * GetParams()
Get a pointer to the parameters.
Definition: FCN.cpp:44