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

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