Last change
on this file since 114 was
114,
checked in by moretto, 11 years ago
|
actual version of ESAF at CCin2p3
|
File size:
1.1 KB
|
Line | |
---|
1 | // ESAF : Euso Simulation and Analysis Framework |
---|
2 | // $Id: LeastSquaresFit.hh 1011 2004-09-14 12:39:04Z naumov $ |
---|
3 | // R. Pesce created May, 10 2004 |
---|
4 | |
---|
5 | #ifndef __LEASTSQUARESFIT_HH_ |
---|
6 | #define __LEASTSQUARESFIT_HH_ |
---|
7 | |
---|
8 | #include "euso.hh" |
---|
9 | #include <vector> |
---|
10 | |
---|
11 | class LeastSquaresFit { |
---|
12 | public: |
---|
13 | // ctor |
---|
14 | LeastSquaresFit(Int_t, vector<Double_t>, vector<Double_t>, vector<Double_t> ); |
---|
15 | |
---|
16 | // dtor |
---|
17 | virtual ~LeastSquaresFit(); |
---|
18 | |
---|
19 | //getters |
---|
20 | inline Double_t GetSlope() { return fSlope; } |
---|
21 | inline Double_t GetOffset() { return fOffset; } |
---|
22 | inline Double_t GetSigmaSlope() { return fSigmaSlope; } |
---|
23 | inline Double_t GetSigmaOffset() { return fSigmaOffset; } |
---|
24 | inline Double_t GetChiSquare() { return fChiSquare; } |
---|
25 | inline Int_t GetNumPoints() { return fNumPoints; } |
---|
26 | |
---|
27 | private: |
---|
28 | Int_t fNumPoints; |
---|
29 | Double_t fSlope; |
---|
30 | Double_t fOffset; |
---|
31 | Double_t fSigmaSlope; |
---|
32 | Double_t fSigmaOffset; |
---|
33 | Double_t fChiSquare; |
---|
34 | vector<Double_t> fPointsX; |
---|
35 | vector<Double_t> fPointsY; |
---|
36 | vector<Double_t> fErr; |
---|
37 | |
---|
38 | void Do(); |
---|
39 | ClassDef(LeastSquaresFit,0) |
---|
40 | }; |
---|
41 | |
---|
42 | #endif /* __LEASTSQUARESFIT_HH_ */ |
---|
43 | |
---|
Note: See
TracBrowser
for help on using the repository browser.