source: trunk/MagicSoft/Mars/mtemp/MVPPlotter.h@ 1681

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