source: trunk/MagicSoft/Mars/mtemp/mifae/library/MImgIsland.h@ 5549

Last change on this file since 5549 was 5549, checked in by rico, 20 years ago
*** empty log message ***
File size: 2.5 KB
Line 
1#ifndef MARS_MImgIsland
2#define MARS_MImgIsland
3
4#ifndef MARS_MParContainer
5#include "MParContainer.h"
6#endif
7
8#ifndef ROOT_TArrayI
9#include <TArrayI.h>
10#endif
11
12#ifndef ROOT_TArrayF
13#include <TArrayF.h>
14#endif
15
16
17class MImgIsland : public MParContainer
18{
19 private:
20
21 Int_t fPixNum;
22 Float_t fSigToNoise;
23 Float_t fTimeSpread;
24 Float_t fDist;
25 Float_t fDistL;
26 Float_t fDistW;
27 Float_t fDistS;
28
29 Float_t fWidth;
30 Float_t fLength;
31 Float_t fSizeIsl;
32 Float_t fMeanX;
33 Float_t fMeanY;
34
35 Float_t fAlpha;
36
37
38 TArrayI fPixList;
39 TArrayF fPeakPulse;
40
41public:
42
43 MImgIsland(const char *name=NULL, const char *title=NULL);
44 ~MImgIsland();
45
46 Int_t GetPixNum() { return fPixNum; }
47 Float_t GetSigToNoise() { return fSigToNoise; }
48 Float_t GetTimeSpread() { return fTimeSpread; }
49 Float_t GetDist() { return fDist; }
50 Float_t GetDistL() { return fDistL; }
51 Float_t GetDistW() { return fDistW; }
52 Float_t GetDistS() { return fDistS; }
53
54 //hillas parameters
55 Float_t GetSizeIsl() { return fSizeIsl; }
56 Float_t GetMeanX() { return fMeanX; }
57 Float_t GetMeanY() { return fMeanY; }
58 Float_t GetWidth() { return fWidth; }
59 Float_t GetLength() { return fLength; }
60
61 // hillas src parameters
62 Float_t GetAlpha() { return fAlpha; }
63
64 void InitSize(Int_t i);
65 UInt_t GetSize() const { return fPixList.GetSize(); }
66
67 Int_t GetPixList(const Int_t i = 0) const { return fPixList.At(i); };
68 Float_t GetPeakPulse(const Int_t i = 0) const { return fPeakPulse.At(i); };
69
70 void Reset();
71
72 void SetPixNum (Int_t i) { fPixNum = i; }
73 void SetSigToNoise(Float_t val) { fSigToNoise = val; }
74 void SetTimeSpread(Float_t val) { fTimeSpread = val; }
75 void SetDist (Float_t val) { fDist = val; }
76 void SetDistL (Float_t val) { fDistL = val; }
77 void SetDistW (Float_t val) { fDistW = val; }
78 void SetDistS (Float_t val) { fDistS = val; }
79
80 //hillas parameters
81 void SetSizeIsl (Float_t val) { fSizeIsl = val; }
82 void SetMeanX (Float_t val) { fMeanX = val; }
83 void SetMeanY (Float_t val) { fMeanY = val; }
84 void SetWidth (Float_t val) { fWidth = val; }
85 void SetLength (Float_t val) { fLength = val; }
86
87 // hillas src parameters
88 void SetAlpha (Float_t val) { fAlpha = val; }
89
90 void SetPixList( const Int_t i, const Int_t id);
91 void SetPeakPulse( const Int_t i, const Float_t time);
92
93 // void Paint(Option_t *opt=NULL);
94 void Print(Option_t *opt=NULL) const;
95
96 ClassDef(MImgIsland, 2) // Container that holds the island information
97
98};
99
100#endif
Note: See TracBrowser for help on using the repository browser.