forked from GooFit/GooFit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
FitControl.hh
54 lines (41 loc) · 984 Bytes
/
FitControl.hh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#ifndef FITCONTROL_HH
#define FITCONTROL_HH
#include <string>
#include "GlobalCudaDefines.hh"
#include "Variable.hh"
#include <vector>
class PdfBase;
class FitControl {
public:
FitControl (bool bin, std::string mn);
~FitControl ();
inline bool binnedFit () const {return binned;}
inline bool binErrors () const {return errorsOnBins;}
inline bool metricIsPdf () const {return !errorsOnBins;}
inline std::string getMetric () const {return metricName;}
inline PdfBase* getOwner () const {return owner;}
void setOwner (PdfBase* dat);
protected:
bool errorsOnBins;
private:
bool binned;
std::string metricName;
PdfBase* owner;
};
class UnbinnedNllFit : public FitControl {
public:
UnbinnedNllFit ();
};
class BinnedNllFit : public FitControl {
public:
BinnedNllFit ();
};
class BinnedErrorFit : public FitControl {
public:
BinnedErrorFit ();
};
class BinnedChisqFit : public FitControl {
public:
BinnedChisqFit ();
};
#endif