source: trunk/MagicSoft/Mars/mimage/MHHillas.h@ 7753

Last change on this file since 7753 was 6977, checked in by tbretz, 20 years ago
*** empty log message ***
File size: 1.6 KB
Line 
1#ifndef MARS_MHHillas
2#define MARS_MHHillas
3
4#ifndef MARS_MH
5#include "MH.h"
6#endif
7
8class TH1F;
9class TH2F;
10class MHillas;
11class MGeomCam;
12
13class MHHillas : public MH
14{
15private:
16
17 TH1F *fLength; //-> Length
18 TH1F *fWidth; //-> Width
19
20 TH1F *fDistC; //-> Distance to Camera Center
21 TH1F *fDelta; //-> Angle between Length axis and x-axis
22
23 TH1F *fSize; //-> Sum of used pixels
24 TH2F *fCenter; //-> Center
25
26 void SetColors() const;
27
28 MGeomCam *fGeomCam; //! Camera geometry for plots (for the moment this is a feature for a loop only!)
29
30 Float_t fMm2Deg;
31 Bool_t fUseMmScale;
32
33 void Paint(Option_t *opt="");
34
35public:
36 MHHillas(const char *name=NULL, const char *title=NULL);
37 ~MHHillas();
38
39 void SetMmScale(Bool_t mmscale=kTRUE);
40 virtual void SetMm2Deg(Float_t mmdeg);
41
42 Bool_t SetupFill(const MParList *pList);
43 Bool_t Fill(const MParContainer *par, const Stat_t w=1);
44
45 TH1 *GetHistByName(const TString name) const;
46 TObject *FindObject(const TObject *obj) const { return 0; }
47 TObject *FindObject(const char *name) const
48 {
49 return (TObject*)GetHistByName(name);
50 }
51
52 TH1F *GetHistLength() { return fLength; }
53 TH1F *GetHistWidth() { return fWidth; }
54
55 TH1F *GetHistDistC() { return fDistC; }
56 TH1F *GetHistDelta() { return fDelta; }
57
58 TH1F *GetHistSize() { return fSize; }
59 TH2F *GetHistCenter() { return fCenter; }
60
61 void Draw(Option_t *opt=NULL);
62
63 //Int_t DistancetoPrimitive(Int_t px, Int_t py) { return 0; }
64
65 ClassDef(MHHillas, 1) // Container which holds histograms for the source independent image parameters
66};
67
68#endif
Note: See TracBrowser for help on using the repository browser.