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

Last change on this file since 2903 was 2902, checked in by gaug, 21 years ago
*** empty log message ***
File size: 1.8 KB
Line 
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
17class MGeomPix;
18class MRawEvtData;
19class MRawEvtPixelIter;
20
21class MArrivalTime : public MCamEvent
22{
23
24 private:
25 TArrayF fData; // Stores the arrival times
26
27 TArrayF fData2; // Clusters with at most 2 pix
28 TArrayF fData3; // Clusters with at most 3 pix
29 TArrayF fData4; // Clusters with at most 4 pix
30 TArrayF fData5; // Clusters with at most 5 pix
31
32 Bool_t *fPixelChecked; // For each pixel says if it's already been checked
33 TArrayS fCluster; // Idxs of the pixels in the current cluster
34 TArrayS fakeData; //Test purpose
35
36public:
37
38 MArrivalTime(const char *name=NULL, const char *title=NULL);
39 ~MArrivalTime() { }
40
41 UInt_t GetNumPixels() const { return fData.GetSize(); }
42
43 void CleanArray(const MGeomCam &geom); //Sets every arr time to -1
44
45 void Calc(const Byte_t *fadcSamples, const Short_t nSlice,
46 const Short_t idx, const MGeomCam &geom); // Calculates arrival times
47
48 void EvalClusters(const MRawEvtData &evt, const MGeomCam &geom);
49
50 void CheckNeighbours(const MRawEvtData &evt, const MGeomCam &geom,
51 Short_t idx, Short_t *dimCluster);
52
53 void SetTime(Int_t i, Float_t time);
54 void InitSize(Int_t i);
55
56 const TArrayF &GetData() const { return fData; }
57
58 Double_t operator[](int i) { return fData[i]; }
59
60 Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const;
61 void DrawPixelContent(Int_t num) const;
62
63 ClassDef(MArrivalTime, 0) // class for an event containing the arrival times
64};
65
66#endif
Note: See TracBrowser for help on using the repository browser.