source: trunk/MagicSoft/Mars/mtemp/MStarLocalPos.h@ 4245

Last change on this file since 4245 was 4053, checked in by jlopez, 21 years ago
*** empty log message ***
File size: 2.6 KB
Line 
1#ifndef MARS_MStarLocalPos
2#define MARS_MStarLocalPos
3
4#ifndef MARS_MParContainer
5#include "MParContainer.h"
6#endif
7
8class MStarLocalPos : public MParContainer
9{
10private:
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 fMaxFit; //[uA]
31 Float_t fMeanXFit; //[mm]
32 Float_t fMeanYFit; //[mm]
33 Float_t fSigmaMinorAxisFit; //[mm]
34 Float_t fSigmaMajorAxisFit; //[mm]
35 Float_t fChiSquare;
36 Int_t fNdof;
37
38public:
39
40 MStarLocalPos(const char *name=NULL, const char *title=NULL);
41 //~MStarLocalPos();
42
43 Float_t GetMagExp() {return fMagExp;}
44 Float_t GetXExp() {return fXExp;}
45 Float_t GetYExp() {return fYExp;}
46
47 Float_t GetMagCalc() {return fMagCalc;}
48 Float_t GetMaxCalc() {return fMaxCalc;}
49 Float_t GetMeanXCalc() {return fMeanXCalc;}
50 Float_t GetMeanYCalc() {return fMeanYCalc;}
51 Float_t GetSigmaMinorAxisCalc() {return fSigmaMinorAxisCalc;}
52 Float_t GetSigmaMajorAxisCalc() {return fSigmaMajorAxisCalc;}
53
54 Float_t GetMagFit() {return fMagFit;}
55 Float_t GetMaxFit() {return fMaxFit;}
56 Float_t GetMeanXFit() {return fMeanXFit;}
57 Float_t GetMeanYFit() {return fMeanYFit;}
58 Float_t GetSigmaMinorAxisFit() {return fSigmaMinorAxisFit;}
59 Float_t GetSigmaMajorAxisFit() {return fSigmaMajorAxisFit;}
60 Float_t GetChiSquare() {return fChiSquare;}
61 Float_t GetNdof() {return fNdof;}
62 Float_t GetChiSquareNdof() {return fChiSquare/fNdof;}
63
64 Float_t GetMeanX() {return fMeanXFit!=0?fMeanXFit:fMeanXCalc;}
65 Float_t GetMeanY() {return fMeanXFit!=0?fMeanYFit:fMeanYCalc;}
66 Float_t GetSigmaMinorAxis() {return fSigmaMinorAxisFit!=0?fSigmaMinorAxisFit:fSigmaMinorAxisCalc;}
67 Float_t GetSigmaMajorAxis() {return fSigmaMajorAxisFit!=0?fSigmaMajorAxisFit:fSigmaMajorAxisCalc;}
68
69 void Reset();
70
71 void SetExpValues(Float_t mag, Float_t x, Float_t y);
72 void SetCalcValues(Float_t mag, Float_t max, Float_t x, Float_t y, Float_t sigmaMinorAxis, Float_t sigmaMajorAxis);
73 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);
74
75 void Paint(Option_t *opt=NULL);
76 void Print(Option_t *opt=NULL) const;
77
78 ClassDef(MStarLocalPos, 1) // Container that holds the star information in the PMT camera
79};
80
81#endif
Note: See TracBrowser for help on using the repository browser.