1 | #ifndef MARS_MHHillas
|
---|
2 | #define MARS_MHHillas
|
---|
3 |
|
---|
4 | #ifndef MARS_MH
|
---|
5 | #include "MH.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | class TH1F;
|
---|
9 | class TH2F;
|
---|
10 | class MHillas;
|
---|
11 |
|
---|
12 | class MHHillas : public MH
|
---|
13 | {
|
---|
14 | private:
|
---|
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 | TH1F *fUsedPix; //-> Number of used pixels
|
---|
26 | TH1F *fCorePix; //-> Number of core pixels
|
---|
27 |
|
---|
28 | void SetColors() const;
|
---|
29 |
|
---|
30 | Float_t fMm2Deg;
|
---|
31 | Bool_t fUseMmScale;
|
---|
32 |
|
---|
33 | void Paint(Option_t *opt="");
|
---|
34 |
|
---|
35 | public:
|
---|
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);
|
---|
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 | TObject *DrawClone(Option_t *opt=NULL) const;
|
---|
58 |
|
---|
59 | //Int_t DistancetoPrimitive(Int_t px, Int_t py) { return 0; }
|
---|
60 |
|
---|
61 | ClassDef(MHHillas, 1) // Container which holds histograms for the source independent image parameters
|
---|
62 | };
|
---|
63 |
|
---|
64 | #endif
|
---|