MINT2
binflipChi2.h
Go to the documentation of this file.
1 #include "Mint/IMinimisable.h"
3 #include "Mint/Minimisable.h"
4 #include "Mint/FitParameter.h"
5 #include "TH2F.h"
6 #include "TGraph.h"
7 #include "TGraphErrors.h"
8 #include "TRandom3.h"
9 #include "cmath"
10 #include "complex"
11 
12 using namespace MINT;
13 using namespace std;
14 
15 
16 class binflipChi2 : public Minimisable{
19  vector<complex<double> > m_X;
20  vector<double> m_r;
21  vector<double> m_tAv;
22  vector<double> m_tSqAv;
23  TH2F m_pHistD0;
25  TH2F m_nHistD0;
32  vector<double> m_Fm;
33  vector<double> m_Fp;
35 
36  public:
37  binflipChi2(vector<complex<double> > X, vector<double> r, vector<double> tAv, vector<double> tSqAv,
38  TH2F pHistD0, TH2F pHistD0bar, TH2F nHistD0, TH2F nHistD0bar, double ReZcp, double ImZcp,
39  double ReDz, double ImDz, double stepSize, int fakeData = 0, vector<double> Fm = vector<double>(),
40  vector<double> Fp = vector<double>(), int verbosity = 0);
41  ~binflipChi2();
42  double getVal();
43  vector<vector<TGraph> > getFits();
44  void genFakeData();
45  TGraph getFit(int i, int b);
46 };
47 
FitParameter m_ReZcp
Definition: binflipChi2.h:27
vector< double > m_tSqAv
Definition: binflipChi2.h:22
vector< double > m_Fm
Definition: binflipChi2.h:32
TH2F m_nHistD0
Definition: binflipChi2.h:25
TH2F m_pHistD0
Definition: binflipChi2.h:23
FitParameter m_ImDz
Definition: binflipChi2.h:30
TH2F m_nHistD0bar
Definition: binflipChi2.h:26
int m_nbinsPhase
Definition: binflipChi2.h:17
vector< double > m_Fp
Definition: binflipChi2.h:33
FitParameter m_ReDz
Definition: binflipChi2.h:29
int m_fakeData
Definition: binflipChi2.h:31
int m_verbosity
Definition: binflipChi2.h:34
vector< double > m_r
Definition: binflipChi2.h:20
int m_nbinsTime
Definition: binflipChi2.h:18
vector< complex< double > > m_X
Definition: binflipChi2.h:19
FitParameter m_ImZcp
Definition: binflipChi2.h:28
TH2F m_pHistD0bar
Definition: binflipChi2.h:24
vector< double > m_tAv
Definition: binflipChi2.h:21