source: trunk/MagicSoft/Mars/mtemp/MHTelAxisFromStars.h@ 4692

Last change on this file since 4692 was 4560, checked in by wittek, 20 years ago
*** empty log message ***
File size: 2.1 KB
Line 
1#ifndef MARS_MHTelAxisFromStars
2#define MARS_MHTelAxisFromStars
3
4#ifndef MARS_MH
5#include "MH.h"
6#endif
7
8class TH1D;
9class TH2D;
10class MTelAxisFromStars;
11class MSrcPosCam;
12class MSkyCamTrans;
13class MStarLocalCam;
14
15class MHTelAxisFromStars : public MH
16{
17private:
18
19 TH1D *fNStars; //-> Number of stars
20 TH1D *fNdoF; //-> Number of degrees of freedom
21 TH1D *fChi2Prob; //-> Chi2 probability
22 TH1D *fNumIter; //-> Number of iterations
23 TH1D *fLambda; //-> Scale factor lambda
24 TH1D *fAlfa; //-> Rotation angle alfa
25
26 TH2D *fShift; //-> Shift between Sky and Camera system
27 TH2D *fEstPos1; //-> Estimated position 1
28 TH2D *fEstPos2; //-> Estimated position 2
29
30 MStarLocalCam *fStarLocalCam; //!
31 MStarLocalCam *fSourceLocalCam; //!
32 MSrcPosCam *fSrcPos; //!
33 MSkyCamTrans *fSkyCamTrans; //!
34
35
36
37 Float_t fMm2Deg; //!
38 Bool_t fUseMmScale; //!
39 Int_t fInputType; //!
40
41 void SetColors() const;
42 void Paint(Option_t *opt="");
43
44public:
45 MHTelAxisFromStars(const char *name=NULL, const char *title=NULL);
46 ~MHTelAxisFromStars();
47
48 void SetInputType(Int_t type=2);
49 void SetMmScale(Bool_t mmscale=kTRUE);
50 virtual void SetMm2Deg(Float_t mmdeg);
51
52 Bool_t SetupFill(const MParList *pList);
53 Bool_t Fill(const MParContainer *par, const Stat_t w=1);
54 Bool_t Finalize();
55
56 TH1 *GetHistByName(const TString name);
57
58 TH1D *GetHistNStars() { return fNStars; }
59 TH1D *GetHistNdoF() { return fNdoF; }
60 TH1D *GetHistChi2Prob() { return fChi2Prob; }
61
62 TH1D *GetHistNumIter() { return fNumIter; }
63 TH1D *GetHistLambda() { return fLambda; }
64
65 TH1D *GetHistAlfa() { return fAlfa; }
66
67 TH2D *GetHistShift() { return fShift; }
68 TH2D *GetHistEstPos1() { return fEstPos1; }
69 TH2D *GetHistEstPos2() { return fEstPos2; }
70
71 void Draw(Option_t *opt=NULL);
72
73 ClassDef(MHTelAxisFromStars, 1) // Container which holds histograms for MTelAxisFromStars
74};
75
76#endif
77
78
79
80
81
Note: See TracBrowser for help on using the repository browser.