Line | |
---|
1 | #ifndef MARS_MHStarMap
|
---|
2 | #define MARS_MHStarMap
|
---|
3 |
|
---|
4 | #ifndef MARS_MH
|
---|
5 | #include "MH.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | class TH2F;
|
---|
9 | class MHillas;
|
---|
10 | class MSrcPosCam;
|
---|
11 | class MObservatory;
|
---|
12 | class MPointingPos;
|
---|
13 |
|
---|
14 | class MHStarMap : public MH
|
---|
15 | {
|
---|
16 | private:
|
---|
17 | MSrcPosCam *fSrcPos; //!
|
---|
18 | MPointingPos *fPointPos; //!
|
---|
19 | MObservatory *fObservatory; //!
|
---|
20 |
|
---|
21 | TH2F *fStarMap; //->
|
---|
22 |
|
---|
23 | Float_t fMm2Deg;
|
---|
24 |
|
---|
25 | Bool_t fUseMmScale;
|
---|
26 |
|
---|
27 | Float_t fCosLat; //!
|
---|
28 | Float_t fSinLat; //!
|
---|
29 |
|
---|
30 | void PrepareDrawing() const;
|
---|
31 |
|
---|
32 | void Paint(Option_t *opt="");
|
---|
33 |
|
---|
34 | Bool_t SetupFill(const MParList *pList);
|
---|
35 | Bool_t Fill(const MParContainer *par, const Stat_t w=1);
|
---|
36 |
|
---|
37 | Bool_t ReInit(MParList *pList);
|
---|
38 | void GetRotationAngle(Double_t &sin, Double_t &cos);
|
---|
39 |
|
---|
40 | public:
|
---|
41 | MHStarMap(const char *name=NULL, const char *title=NULL);
|
---|
42 | ~MHStarMap();
|
---|
43 |
|
---|
44 | void SetMmScale(Bool_t mmscale=kTRUE);
|
---|
45 | void SetMm2Deg(Float_t mmdeg);
|
---|
46 |
|
---|
47 | TH1 *GetHistByName(const TString name) const { return (TH1*)fStarMap; }
|
---|
48 |
|
---|
49 | TH2F *GetHist() { return fStarMap; }
|
---|
50 |
|
---|
51 | void Draw(Option_t *opt=NULL);
|
---|
52 | TObject *DrawClone(Option_t *opt=NULL) const;
|
---|
53 |
|
---|
54 | ClassDef(MHStarMap, 1) // Container to hold the Starmap
|
---|
55 | };
|
---|
56 |
|
---|
57 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.