source: tags/Mars-V0.8.1/mtemp/MVPPlotter.h

Last change on this file was 1745, checked in by tbretz, 22 years ago
*** empty log message ***
File size: 1.4 KB
Line 
1#ifndef MARS_MVPPlotter
2#define MARS_MVPPlotter
3
4#ifndef MARS_MTaskList
5#include "MTaskList.h"
6#endif
7
8#ifndef MARS_MVPObject
9#include "MVPObject.h"
10#endif
11
12#ifndef MARS_MVPTime
13#include "MVPTime.h"
14#endif
15
16#ifndef MARS_MObservatoryLocation
17#include "MObservatoryLocation.h"
18#endif
19
20class TH1D;
21class TH2D;
22class TCanvas;
23
24class MVPPlotter
25{
26private:
27
28 MVPTime *fTime;
29 MObservatoryLocation *fObs;
30
31 MParList fPlist;
32 MTaskList fTlist;
33
34 Bool_t fUseSun;
35 Bool_t fUseMoon;
36 Bool_t fUsePlanets;
37
38 Double_t fAstronomicalDarkness;
39
40 Int_t fgSecPerDay;
41 Int_t fgMJD010170; // 01-01-70 is JD 40586
42 Double_t fgDegToRad;
43
44 TH2D *fMjdUtcYear;
45 TH2D *fMjdUtcYearMoon;
46 TH1D *fMjdMoonPhase;
47 TH1D *fMjdMoonDistance;
48 TH1D *fMjdPlanetDistance;
49 TH1D *fMjdMoonIntensity;
50 TH1D *fMjdObsHours;
51
52 MVPObject *fObject;
53 MVPObject *fSun;
54 MVPObject *fMoon;
55 MVPObject *fVenus;
56 MVPObject *fMars;
57 MVPObject *fJupiter;
58 MVPObject *fSaturn;
59
60 void SetupObjects();
61
62public:
63 MVPPlotter(const char *name=NULL, const char *title=NULL);
64 ~MVPPlotter();
65
66 void SetObject(MVPObject *o) { fObject=o; }
67 void SetObservatory(MObservatoryLocation *l) { fObs=l; }
68 void SetAstronomicalDarkness(Double_t d) { fAstronomicalDarkness=d; }
69
70 Double_t LunSkyBright(Double_t moon_phase,Double_t rho,Double_t altmoon,Double_t alt);
71 Bool_t CalcYear(Int_t year, UInt_t daySlices);
72
73 ClassDef(MVPPlotter, 2) // Visibility Plotter: The Plotter Routine itself
74};
75
76#endif
77
Note: See TracBrowser for help on using the repository browser.