source: trunk/Mars/mgui/MCamEvent.h@ 16333

Last change on this file since 16333 was 12920, checked in by tbretz, 13 years ago
Added a function to return the median of the whole camera.
File size: 832 bytes
Line 
1#ifndef MARS_MCamEvent
2#define MARS_MCamEvent
3
4#ifndef ROOT_TArrayD
5#include <TArrayD.h>
6#endif
7
8class MGeomCam;
9
10class MCamEvent
11{
12public:
13 virtual ~MCamEvent() { }
14
15 virtual Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const = 0;
16 virtual void DrawPixelContent(Int_t num) const = 0;
17
18 virtual void Init(const MGeomCam &geom);
19 virtual void InitSize(const UInt_t i) { } // Used by MGeomApply see Init()
20
21 virtual Double_t GetCameraMean(const MGeomCam &cam, Int_t type=0) const;
22 virtual Double_t GetCameraMedian(const MGeomCam &cam, Int_t type=0) const;
23 virtual Double_t GetCameraRMS(const MGeomCam &cam, Int_t type=0) const;
24 virtual TArrayD GetCameraStat(const MGeomCam &cam, Int_t type=0) const;
25
26 ClassDef(MCamEvent, 0) // A camera event
27};
28
29#endif
30
Note: See TracBrowser for help on using the repository browser.