source: branches/Mars_MC/mhist/MHStarMap.h@ 17832

Last change on this file since 17832 was 9153, checked in by tbretz, 16 years ago
*** empty log message ***
File size: 1.1 KB
Line 
1#ifndef MARS_MHStarMap
2#define MARS_MHStarMap
3
4#ifndef MARS_MH
5#include "MH.h"
6#endif
7
8class TH2F;
9class MHillas;
10class MSrcPosCam;
11class MObservatory;
12class MPointingPos;
13
14class MHStarMap : public MH
15{
16private:
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 Int_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
40public:
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.