source: trunk/MagicSoft/Mars/mtemp/mifae/library/MIslands.h@ 4450

Last change on this file since 4450 was 4442, checked in by aliu, 20 years ago
*** empty log message ***
File size: 3.9 KB
Line 
1#ifndef MARS_MIslands
2#define MARS_MIslands
3
4#ifndef MARS_MParContainer
5#include "MParContainer.h"
6#endif
7
8#ifndef ROOT_TArrayF
9#include <TArrayF.h>
10#endif
11
12#ifndef ROOT_TArrayI
13#include <TArrayI.h>
14#endif
15
16#ifndef ROOT_TObjArray
17#include <TObjArray.h>
18#endif
19
20class MIslands : public MParContainer
21{
22private:
23 // for description see MIslands.cc
24 Int_t fIslNum; // number of islands
25 // Int_t** fIslId; //[fIslNum] island Id
26 // TObjArray fIslId; // island Id
27 Int_t fIslId[577]; //island Id
28 Int_t* fPixNum; //[fIslNum] number of pixels in the island
29 Float_t* fSigToNoise; //[fIslNum] signal to noise of the island
30 // Float_t** fTime; //[fIslNum] mean of the arrival time
31 // Float_t fTime[10][577]; // mean of the arrival time
32 Float_t* fTimeSpread; //[fIslNum] mean arrival time spread of the core pixels of the island
33 Float_t* fMeanX; //[fIslNum] mean X position of the island
34 Float_t* fMeanY; //[fIslNum] mean Y position of the island
35 Float_t* fDist; //[fIslNum] dist between islands and continent(larger island)
36 Float_t fLength; // major axis of the larger island ellipse
37 Float_t fWidth; // minor axis of the larger island ellipse
38 Float_t* fDistL; //[fIslNum] Dist of the island divided by Length of the larger island
39 Float_t* fDistW; //[fIslNum] Dist of the island divided by Width of the larger island
40
41public:
42 MIslands(const char *name=NULL, const char *title=NULL);
43 ~MIslands();
44
45 // void Clear();
46 void Print(Option_t *opt=NULL) const;
47
48 //getter methods
49 Int_t GetIslNum() const { return fIslNum; }
50 Int_t GetIslId(Int_t idx) { return fIslId[idx]; }
51 //Int_t GetIslId(Int_t isl, Int_t idx) { return fIslId[isl][idx]; }
52 // TObjArray GetIslId() {return fIslId;}
53 // Float_t GetArrivalTime(Int_t isl, Int_t idx) { return fTime[isl][idx]; }
54 //TObjArray GetArrivalTime() { return fTime; }
55 Int_t GetPixNum(Int_t isl) { return fPixNum[isl]; }
56 Float_t GetSigToNoise(Int_t isl) { return fSigToNoise[isl]; }
57 Float_t GetTimeSpread(Int_t isl) { return fTimeSpread[isl];}
58 Float_t GetMeanX(Int_t isl) { return fMeanX[isl];}
59 Float_t GetMeanY(Int_t isl) { return fMeanY[isl];}
60 Float_t GetDist(Int_t isl) { return fDist[isl]; }
61 Float_t GetDistL(Int_t isl) { return fDistL[isl]; }
62 Float_t GetDistW(Int_t isl) { return fDistW[isl]; }
63
64 Float_t GetLength() const { return fLength; }
65 Float_t GetWidth() const { return fWidth; }
66
67 //setter functions
68 void SetIslNum(Int_t nisl) { fIslNum = nisl; }
69 void SetIslId(Int_t idx, Int_t isl) { fIslId[idx] = isl; }
70
71 // void SetIslId(Int_t** vect) { fIslId = vect; }
72 // void SetArrivalTime(Int_t isl, Int_t idx, Float_t val) { fTime[isl][idx] = val;}
73 // void SetArrivalTime(Float_t** vect) { fTime = vect;}
74 void SetPixNum(Int_t* npix) { fPixNum = npix; }
75 void SetSigToNoise(Float_t* val) { fSigToNoise = val; }
76 void SetTimeSpread(Float_t* val) { fTimeSpread = val; }
77 void SetMeanX( Float_t* val) { fMeanX = val; }
78 void SetMeanY(Float_t* val) { fMeanY = val; }
79 void SetDist(Float_t* val) { fDist = val; }
80 void SetDistL(Float_t* val) { fDistL=val; }
81 void SetDistW(Float_t* val) { fDistW=val; }
82
83 void SetLength(Float_t val) { fLength=val; }
84 void SetWidth(Float_t val) { fWidth=val; }
85
86
87
88
89 ClassDef(MIslands, 2) // Storage Container for Island Parameters
90};
91
92#endif
Note: See TracBrowser for help on using the repository browser.