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

Last change on this file since 6724 was 4700, checked in by tbretz, 20 years ago
*** empty log message ***
File size: 1.4 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);
46
47 TH1F *GetHistLength() { return fLength; }
48 TH1F *GetHistWidth() { return fWidth; }
49
50 TH1F *GetHistDistC() { return fDistC; }
51 TH1F *GetHistDelta() { return fDelta; }
52
53 TH1F *GetHistSize() { return fSize; }
54 TH2F *GetHistCenter() { return fCenter; }
55
56 void Draw(Option_t *opt=NULL);
57
58 //Int_t DistancetoPrimitive(Int_t px, Int_t py) { return 0; }
59
60 ClassDef(MHHillas, 1) // Container which holds histograms for the source independent image parameters
61};
62
63#endif
Note: See TracBrowser for help on using the repository browser.