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

Last change on this file since 4226 was 4218, checked in by aliu, 20 years ago
*** empty log message ***
File size: 1.8 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
28public:
29 MIslands(const char *name=NULL, const char *title=NULL);
30 ~MIslands();
31
32 void Print(Option_t *opt=NULL) const;
33
34 Int_t GetIslNum() const { return fIslNum; }
35 Int_t GetIslId(Int_t idx) const { return fIslId[idx]; }
36 Int_t GetPixNum(Int_t isl) { return fPixNum[isl]; }
37 Float_t GetSigToNoise(Int_t isl) { return fSigToNoise[isl]; }
38 Float_t GetArrivalTime(Int_t isl, Int_t idx) { return fTime[isl][idx]; }
39 Float_t GetTimeSpread(Int_t isl) { return fTimeSpread[isl];}
40
41 void SetIslNum(Int_t nisl) { fIslNum = nisl; }
42 void SetIslId(Int_t idx, Int_t isl) { fIslId[idx] = isl; }
43 void SetPixNum(Int_t isl, Int_t npix) { fPixNum[isl] = npix; }
44 void SetSigToNoise(Int_t isl, Float_t val) { fSigToNoise[isl] = val; }
45 void SetArrivalTime(Int_t isl, Int_t idx, Float_t val) { fTime[isl][idx] = val;}
46
47 void SetTimeSpread(Int_t isl, Float_t val) { fTimeSpread[isl] = val; }
48
49 ClassDef(MIslands, 1) // Storage Container for Island Parameters
50};
51
52#endif
Note: See TracBrowser for help on using the repository browser.