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

Last change on this file since 2772 was 2756, checked in by raducci, 21 years ago
*** empty log message ***
File size: 1.6 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{
23private:
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
34public:
35 MArrivalTime(const char *name=NULL, const char *title=NULL);
36 ~MArrivalTime() { }
37
38 UInt_t GetNumPixels() const { return fData.GetSize(); }
39
40 void Calc(const MRawEvtData &evt, const MGeomCam &geom); // Calculates arrival times
41
42 void MArrivalTime::EvalClusters(const MRawEvtData &evt, const MGeomCam &geom);
43
44 void MArrivalTime::CheckNeighbours(const MRawEvtData &evt, const MGeomCam &geom,
45 Short_t idx, Short_t *dimCluster);
46
47 const TArrayF &GetData() const { return fData; }
48
49 Double_t operator[](int i) { return fData[i]; }
50
51 Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const;
52 void DrawPixelContent(Int_t num) const;
53
54 ClassDef(MArrivalTime, 0) // class for an event containing the arrival times
55};
56
57#endif
Note: See TracBrowser for help on using the repository browser.