source: tags/Mars-V1.0/mimage/MHHillas.h

Last change on this file was 7841, checked in by tbretz, 18 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 MGeomCam *fGeomCam; //! Camera geometry for plots (for the moment this is a feature for a loop only!)
27
28 Float_t fMm2Deg;
29 Bool_t fUseMmScale;
30
31 void Paint(Option_t *opt="");
32
33public:
34 MHHillas(const char *name=NULL, const char *title=NULL);
35 ~MHHillas();
36
37 void SetMmScale(Bool_t mmscale=kTRUE);
38 virtual void SetMm2Deg(Float_t mmdeg);
39
40 Bool_t SetupFill(const MParList *pList);
41 Bool_t Fill(const MParContainer *par, const Stat_t w=1);
42
43 TH1 *GetHistByName(const TString name) const;
44 TObject *FindObject(const TObject *obj) const { return 0; }
45 TObject *FindObject(const char *name) const
46 {
47 return (TObject*)GetHistByName(name);
48 }
49
50 TH1F *GetHistLength() { return fLength; }
51 TH1F *GetHistWidth() { return fWidth; }
52
53 TH1F *GetHistDistC() { return fDistC; }
54 TH1F *GetHistDelta() { return fDelta; }
55
56 TH1F *GetHistSize() { return fSize; }
57 TH2F *GetHistCenter() { return fCenter; }
58
59 void Draw(Option_t *opt=NULL);
60
61 //Int_t DistancetoPrimitive(Int_t px, Int_t py) { return 0; }
62
63 ClassDef(MHHillas, 1) // Container which holds histograms for the source independent image parameters
64};
65
66#endif
Note: See TracBrowser for help on using the repository browser.