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

Last change on this file since 4435 was 4418, checked in by aliu, 21 years ago
*** empty log message ***
File size: 2.5 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
17class MIslands : public MParContainer
18{
19private:
20 // for description see MIslands.cc
21 Int_t fIslNum; // number of islands
22 Int_t fIslId[577]; // island Id
23 Int_t fPixNum[20]; // number of pixels in the island
24 Float_t fSigToNoise[20]; // signal to noise of the island
25 Float_t fTime[20][577]; // mean of the arrival time
26 Float_t fTimeSpread[20]; // mean arrival time spread of the island
27 Float_t fMeanX[20]; // mean X position of the island
28 Float_t fMeanY[20]; // mean Y position of the island
29 Float_t fDist[20]; // dist between islands and continent(larger island)
30
31public:
32 MIslands(const char *name=NULL, const char *title=NULL);
33 ~MIslands();
34
35 void Print(Option_t *opt=NULL) const;
36
37 Int_t GetIslNum() const { return fIslNum; }
38 Int_t GetIslId(Int_t idx) const { return fIslId[idx]; }
39 Int_t GetPixNum(Int_t isl) { return fPixNum[isl]; }
40 Float_t GetSigToNoise(Int_t isl) { return fSigToNoise[isl]; }
41 Float_t GetArrivalTime(Int_t isl, Int_t idx) { return fTime[isl][idx]; }
42 Float_t GetTimeSpread(Int_t isl) { return fTimeSpread[isl];}
43 Float_t GetMeanX(Int_t isl) { return fMeanX[isl];}
44 Float_t GetMeanY(Int_t isl) { return fMeanY[isl];}
45 Float_t GetDist(Int_t isl) { return fDist[isl]; }
46
47 void SetIslNum(Int_t nisl) { fIslNum = nisl; }
48 void SetIslId(Int_t idx, Int_t isl) { fIslId[idx] = isl; }
49 void SetPixNum(Int_t isl, Int_t npix) { fPixNum[isl] = npix; }
50 void SetSigToNoise(Int_t isl, Float_t val) { fSigToNoise[isl] = val; }
51 void SetArrivalTime(Int_t isl, Int_t idx, Float_t val) { fTime[isl][idx] = val;}
52
53 void SetTimeSpread(Int_t isl, Float_t val) { fTimeSpread[isl] = val; }
54 void SetMeanX(Int_t isl, Float_t val) { fMeanX[isl]=val; }
55 void SetMeanY(Int_t isl, Float_t val) { fMeanY[isl]=val; }
56 void SetDist(Int_t isl, Float_t val) { fDist[isl]=val; }
57
58
59 ClassDef(MIslands, 1) // Storage Container for Island Parameters
60};
61
62#endif
Note: See TracBrowser for help on using the repository browser.