simple-tof-analysis
 All Classes Namespaces Functions Variables Groups Pages
TSChisquareCalculator.h
1 /*
2  * TSChisquareCalcuator.h
3  *
4  * Created on: Aug 19, 2014
5  * Author: Silvestro di Luise
6  * Silvestro.Di.Luise@cern.ch
7  *
8  *
9  * Specialization of the Class TSMinimizationFunction
10  *
11  *
12  *
13  */
14 
15 #ifndef TSCHISQUARECALCUATOR_H_
16 #define TSCHISQUARECALCUATOR_H_
17 
18 #include "MessageMgr.h"
19 
20 #include "TSMinimizationFunction.h"
21 
22 
23 /*
24  *
25  */
26 
28 
29 
30 
31 
32 public:
33 
35  TSChisquareCalculator(TString name, TString title);
36 
37  virtual ~TSChisquareCalculator();
38 
39  void Init();
40 
41  virtual double Compute() const;
42 
43 
44 private:
45 
46  void fClearCache();
47  void fFillCache();
48  mutable bool fCached;
49  mutable double *fCacheX;
50  mutable double *fCacheY;
51  mutable double *fCacheData1D;
52  mutable double *fCacheData2D;
53 
54  mutable double data2D[200][200];
55  mutable double errors2D[200][200];
56 
57 
58 };
59 
60 #endif /* TSCHISQUARECALCUATOR_H_ */
virtual double Compute() const
Definition: TSChisquareCalculator.cc:55
Definition: TSMinimizationFunction.h:46
Definition: TSChisquareCalculator.h:27