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

Last change on this file since 2811 was 2416, checked in by tbretz, 21 years ago
*** empty log message ***
File size: 1.3 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;
11
12class MHHillas : public MH
13{
14private:
15
16 TH1F *fLength; //-> Length
17 TH1F *fWidth; //-> Width
18
19 TH1F *fDistC; //-> Distance to Camera Center
20 TH1F *fDelta; //-> Angle between Length axis and x-axis
21
22 TH1F *fSize; //-> Sum of used pixels
23 TH2F *fCenter; //-> Center
24
25 void SetColors() const;
26
27 Float_t fMm2Deg;
28 Bool_t fUseMmScale;
29
30 void Paint(Option_t *opt="");
31
32public:
33 MHHillas(const char *name=NULL, const char *title=NULL);
34 ~MHHillas();
35
36 void SetMmScale(Bool_t mmscale=kTRUE);
37 virtual void SetMm2Deg(Float_t mmdeg);
38
39 Bool_t SetupFill(const MParList *pList);
40 Bool_t Fill(const MParContainer *par, const Stat_t w=1);
41
42 TH1 *GetHistByName(const TString name);
43
44 TH1F *GetHistLength() { return fLength; }
45 TH1F *GetHistWidth() { return fWidth; }
46
47 TH1F *GetHistDistC() { return fDistC; }
48 TH1F *GetHistDelta() { return fDelta; }
49
50 TH1F *GetHistSize() { return fSize; }
51 TH2F *GetHistCenter() { return fCenter; }
52
53 void Draw(Option_t *opt=NULL);
54
55 //Int_t DistancetoPrimitive(Int_t px, Int_t py) { return 0; }
56
57 ClassDef(MHHillas, 1) // Container which holds histograms for the source independent image parameters
58};
59
60#endif
Note: See TracBrowser for help on using the repository browser.