source: trunk/MagicSoft/Mars/manalysis/MArrivalTime.h@ 2917

Last change on this file since 2917 was 2911, checked in by gaug, 21 years ago
*** empty log message ***
File size: 1.5 KB
Line 
1#ifndef MARS_MArrivalTime
2#define MARS_MArrivalTime
3
4#ifndef MARS_MCamEvent
5#include "MCamEvent.h"
6#endif
7
8#ifndef ROOT_TArrayF
9#include <TArrayF.h>
10#endif
11#ifndef ROOT_TArrayS
12#include <TArrayS.h>
13#endif
14
15class MRawEvtData;
16
17class MArrivalTime : public MCamEvent
18{
19 private:
20 TArrayF fData; // Stores the arrival times
21
22 TArrayF fData2; // Clusters with at most 2 pix
23 TArrayF fData3; // Clusters with at most 3 pix
24 TArrayF fData4; // Clusters with at most 4 pix
25 TArrayF fData5; // Clusters with at most 5 pix
26
27 //Bool_t *fPixelChecked; // For each pixel says if it's already been checked
28 TArrayS fCluster; // Idxs of the pixels in the current cluster
29 TArrayS fakeData; //Test purpose
30
31public:
32
33 MArrivalTime(const char *name=NULL, const char *title=NULL);
34 ~MArrivalTime() { }
35
36 void Reset();
37 void InitSize(Int_t i);
38 UInt_t GetNumPixels() const { return fData.GetSize(); }
39
40 void EvalClusters(const MRawEvtData &evt, const MGeomCam &geom);
41 void CheckNeighbours(const MRawEvtData &evt, const MGeomCam &geom,
42 Short_t idx, Short_t *dimCluster);
43
44 void SetTime(const Int_t i, const Float_t time);
45
46 const TArrayF &GetData() const { return fData; }
47
48 Double_t operator[](int i) { return fData[i]; }
49
50 Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const;
51 void DrawPixelContent(Int_t num) const;
52
53 ClassDef(MArrivalTime, 0) // class for an event containing the arrival times
54};
55
56#endif
Note: See TracBrowser for help on using the repository browser.