1 | #ifndef MARS_MArrivalTime
|
---|
2 | #define MARS_MArrivalTime
|
---|
3 |
|
---|
4 | #ifndef MARS_MParContainer
|
---|
5 | #include "MParContainer.h"
|
---|
6 | #endif
|
---|
7 | #ifndef MARS_MCamEvent
|
---|
8 | #include "MCamEvent.h"
|
---|
9 | #endif
|
---|
10 |
|
---|
11 | #ifndef ROOT_TArrayF
|
---|
12 | #include <TArrayF.h>
|
---|
13 | #endif
|
---|
14 | #ifndef ROOT_TArrayS
|
---|
15 | #include <TArrayS.h>
|
---|
16 | #endif
|
---|
17 |
|
---|
18 | class MRawEvtData;
|
---|
19 |
|
---|
20 | class MArrivalTime : public MParContainer, public MCamEvent
|
---|
21 | {
|
---|
22 | private:
|
---|
23 | TArrayF fData; // Stores the calibrated arrival times
|
---|
24 | TArrayF fDataErr; // Stores the calibrated arrival time errors
|
---|
25 |
|
---|
26 | public:
|
---|
27 |
|
---|
28 | MArrivalTime(const char *name=NULL, const char *title=NULL);
|
---|
29 | ~MArrivalTime() { }
|
---|
30 |
|
---|
31 | void Reset();
|
---|
32 | void InitSize(const UInt_t i);
|
---|
33 |
|
---|
34 | UInt_t GetSize() const { return fData.GetSize(); }
|
---|
35 |
|
---|
36 | void SetTime(const Int_t i, const Float_t time);
|
---|
37 | void SetTimeErr(const Int_t i, const Float_t timeerr);
|
---|
38 |
|
---|
39 | const TArrayF &GetData() const { return fData; }
|
---|
40 | const TArrayF &GetDataErr() const { return fDataErr; }
|
---|
41 |
|
---|
42 | Double_t operator[](int i) { return fData[i]; }
|
---|
43 | Double_t operator[](int i) const { return fData[i]; }
|
---|
44 |
|
---|
45 | // Do not do such things! It is highly dangerous to use two very similar operators
|
---|
46 | // to do completely different things! People won't recognize it...
|
---|
47 | //Double_t operator()(int i) { return fDataErr[i]; }
|
---|
48 |
|
---|
49 | Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const;
|
---|
50 | void DrawPixelContent(Int_t num) const;
|
---|
51 |
|
---|
52 | ClassDef(MArrivalTime, 1) // class for an event containing the arrival times
|
---|
53 | };
|
---|
54 |
|
---|
55 | #endif
|
---|