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

Last change on this file since 2957 was 2935, checked in by raducci, 22 years ago
*** empty log message ***
File size: 935 bytes
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
22public:
23
24 MArrivalTime(const char *name=NULL, const char *title=NULL);
25 ~MArrivalTime() { }
26
27 void Reset();
28 void InitSize(Int_t i);
29 UInt_t GetNumPixels() const { return fData.GetSize(); }
30
31 void SetTime(const Int_t i, const Float_t time);
32
33 const TArrayF &GetData() const { return fData; }
34
35 Double_t operator[](int i) { return fData[i]; }
36
37 Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const;
38 void DrawPixelContent(Int_t num) const;
39
40 ClassDef(MArrivalTime, 0) // class for an event containing the arrival times
41};
42
43#endif
Note: See TracBrowser for help on using the repository browser.