1 | #ifndef MARS_MStarLocalPos
|
---|
2 | #define MARS_MStarLocalPos
|
---|
3 |
|
---|
4 | #ifndef MARS_MParContainer
|
---|
5 | #include "MParContainer.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | class MStarLocalPos : public MParContainer
|
---|
9 | {
|
---|
10 | private:
|
---|
11 |
|
---|
12 | //Expected position on camera
|
---|
13 |
|
---|
14 | Float_t fMagExp;
|
---|
15 | Float_t fXExp; //[mm]
|
---|
16 | Float_t fYExp; //[mm]
|
---|
17 |
|
---|
18 | //Info from calculation
|
---|
19 |
|
---|
20 | Float_t fMagCalc;
|
---|
21 | Float_t fMaxCalc; //[uA]
|
---|
22 | Float_t fMeanXCalc; //[mm]
|
---|
23 | Float_t fMeanYCalc; //[mm]
|
---|
24 | Float_t fSigmaMinorAxisCalc; //[mm]
|
---|
25 | Float_t fSigmaMajorAxisCalc; //[mm]
|
---|
26 |
|
---|
27 | //Info from fit
|
---|
28 |
|
---|
29 | Float_t fMagFit;
|
---|
30 | Float_t fBkFit; //[uA]
|
---|
31 | Float_t fMaxFit; //[uA]
|
---|
32 | Float_t fMeanXFit; //[mm]
|
---|
33 | Float_t fMeanYFit; //[mm]
|
---|
34 | Float_t fSigmaMinorAxisFit; //[mm]
|
---|
35 | Float_t fSigmaMajorAxisFit; //[mm]
|
---|
36 | Float_t fPhiFit; //[rad]
|
---|
37 | Float_t fChiSquare;
|
---|
38 | Int_t fNdof;
|
---|
39 |
|
---|
40 | public:
|
---|
41 |
|
---|
42 | MStarLocalPos(const char *name=NULL, const char *title=NULL);
|
---|
43 | //~MStarLocalPos();
|
---|
44 |
|
---|
45 | Float_t GetMagExp() {return fMagExp;}
|
---|
46 | Float_t GetXExp() {return fXExp;}
|
---|
47 | Float_t GetYExp() {return fYExp;}
|
---|
48 |
|
---|
49 | Float_t GetMagCalc() {return fMagCalc;}
|
---|
50 | Float_t GetMaxCalc() {return fMaxCalc;}
|
---|
51 | Float_t GetMeanXCalc() {return fMeanXCalc;}
|
---|
52 | Float_t GetMeanYCalc() {return fMeanYCalc;}
|
---|
53 | Float_t GetSigmaMinorAxisCalc() {return fSigmaMinorAxisCalc;}
|
---|
54 | Float_t GetSigmaMajorAxisCalc() {return fSigmaMajorAxisCalc;}
|
---|
55 |
|
---|
56 | Float_t GetMagFit() {return fMagFit;}
|
---|
57 | Float_t GetBkFit() {return fBkFit;}
|
---|
58 | Float_t GetMaxFit() {return fMaxFit;}
|
---|
59 | Float_t GetMeanXFit() {return fMeanXFit;}
|
---|
60 | Float_t GetMeanYFit() {return fMeanYFit;}
|
---|
61 | Float_t GetSigmaMinorAxisFit() {return fSigmaMinorAxisFit;}
|
---|
62 | Float_t GetSigmaMajorAxisFit() {return fSigmaMajorAxisFit;}
|
---|
63 | Float_t GetPhiFit() {return fPhiFit;}
|
---|
64 | Float_t GetChiSquare() {return fChiSquare;}
|
---|
65 | UInt_t GetNdof() {return fNdof;}
|
---|
66 | Float_t GetChiSquareNdof() {return fChiSquare/fNdof;}
|
---|
67 |
|
---|
68 | Float_t GetMeanX() {return fMeanXFit!=0?fMeanXFit:fMeanXCalc;}
|
---|
69 | Float_t GetMeanY() {return fMeanXFit!=0?fMeanYFit:fMeanYCalc;}
|
---|
70 | Float_t GetSigmaMinorAxis() {return fSigmaMinorAxisFit!=0?fSigmaMinorAxisFit:fSigmaMinorAxisCalc;}
|
---|
71 | Float_t GetSigmaMajorAxis() {return fSigmaMajorAxisFit!=0?fSigmaMajorAxisFit:fSigmaMajorAxisCalc;}
|
---|
72 |
|
---|
73 | void Reset();
|
---|
74 |
|
---|
75 | void SetExpValues(Float_t mag, Float_t x, Float_t y);
|
---|
76 | void SetCalcValues(Float_t mag, Float_t max, Float_t x, Float_t y, Float_t sigmaMinorAxis, Float_t sigmaMajorAxis);
|
---|
77 | void SetFitValues(Float_t mag, Float_t max, Float_t x, Float_t y, Float_t sigmaMinorAxis, Float_t sigmaMajorAxis, Float_t chi, Int_t ndof);
|
---|
78 | void SetFitValues(Float_t mag, Float_t bk, Float_t max, Float_t x, Float_t y, Float_t sigmaMinorAxis, Float_t sigmaMajorAxis, Float_t phi, Float_t chi, Int_t ndof);
|
---|
79 |
|
---|
80 | void Paint(Option_t *opt=NULL);
|
---|
81 | void Print(Option_t *opt=NULL) const;
|
---|
82 |
|
---|
83 | ClassDef(MStarLocalPos, 1) // Container that holds the star information in the PMT camera
|
---|
84 | };
|
---|
85 |
|
---|
86 | #endif
|
---|