1 | #ifndef MARS_MArrivalTime
|
---|
2 | #define MARS_MArrivalTime
|
---|
3 |
|
---|
4 | #ifndef ROOT_TArrayF
|
---|
5 | #include <TArrayF.h>
|
---|
6 | #endif
|
---|
7 | #ifndef ROOT_TArrayS
|
---|
8 | #include <TArrayS.h>
|
---|
9 | #endif
|
---|
10 | #ifndef ROOT_TSpline
|
---|
11 | #include <TSpline.h>
|
---|
12 | #endif
|
---|
13 | #ifndef MARS_MCamEvent
|
---|
14 | #include "MCamEvent.h"
|
---|
15 | #endif
|
---|
16 |
|
---|
17 | class MGeomPix;
|
---|
18 | class MRawEvtData;
|
---|
19 | class MRawEvtPixelIter;
|
---|
20 |
|
---|
21 | class MArrivalTime : public MCamEvent
|
---|
22 | {
|
---|
23 | private:
|
---|
24 | TArrayF fData; // Stores the arrival times
|
---|
25 |
|
---|
26 | TArrayF fData2; // Clusters with at most 2 pix
|
---|
27 | TArrayF fData3; // Clusters with at most 3 pix
|
---|
28 | TArrayF fData4; // Clusters with at most 4 pix
|
---|
29 | TArrayF fData5; // Clusters with at most 5 pix
|
---|
30 |
|
---|
31 | Bool_t *fPixelChecked; // For each pixel says if it's already been checked
|
---|
32 | TArrayS fCluster; // Idxs of the pixels in the current cluster
|
---|
33 | TArrayS fakeData; //Test purpose
|
---|
34 | public:
|
---|
35 | MArrivalTime(const char *name=NULL, const char *title=NULL);
|
---|
36 | ~MArrivalTime() { }
|
---|
37 |
|
---|
38 | UInt_t GetNumPixels() const { return fData.GetSize(); }
|
---|
39 |
|
---|
40 | void CleanArray(const MGeomCam &geom); //Sets every arr time to -1
|
---|
41 |
|
---|
42 | void Calc(const Byte_t *fadcSamples, const Short_t nSlice,
|
---|
43 | const Short_t idx, const MGeomCam &geom); // Calculates arrival times
|
---|
44 |
|
---|
45 | void EvalClusters(const MRawEvtData &evt, const MGeomCam &geom);
|
---|
46 |
|
---|
47 | void CheckNeighbours(const MRawEvtData &evt, const MGeomCam &geom,
|
---|
48 | Short_t idx, Short_t *dimCluster);
|
---|
49 |
|
---|
50 | const TArrayF &GetData() const { return fData; }
|
---|
51 |
|
---|
52 | Double_t operator[](int i) { return fData[i]; }
|
---|
53 |
|
---|
54 | Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const;
|
---|
55 | void DrawPixelContent(Int_t num) const;
|
---|
56 |
|
---|
57 | ClassDef(MArrivalTime, 0) // class for an event containing the arrival times
|
---|
58 | };
|
---|
59 |
|
---|
60 | #endif
|
---|