1 | #ifndef MARS_MDisplay
|
---|
2 | #define MARS_MDisplay
|
---|
3 |
|
---|
4 | #ifndef MARS_MTask
|
---|
5 | #include "MTask.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | class MRawRunHeader;
|
---|
9 | class MRawEvtHeader;
|
---|
10 | class MHCamera;
|
---|
11 | class MCamEvent;
|
---|
12 | class MGeomCam;
|
---|
13 | class TCanvas;
|
---|
14 | class TPostScript;
|
---|
15 |
|
---|
16 | class MDisplay : public MTask
|
---|
17 | {
|
---|
18 | private:
|
---|
19 | MRawEvtHeader* fEvtHeader; // event header
|
---|
20 | MRawRunHeader* fRunHeader; // run header
|
---|
21 | MHCamera* fDisplay; // pointer to the camera display
|
---|
22 | MGeomCam* fGeomCam; // pointer to the camera geometry
|
---|
23 | MCamEvent* fCamEvent; // pointer to camera event
|
---|
24 | TCanvas* fCanvas; // pointer to the canvas
|
---|
25 | TPostScript* fPSFile; // pointer to ps file
|
---|
26 | TString fPSFileName; // name for ps file
|
---|
27 | Int_t fDisplayType; // display type (see MHCamera)
|
---|
28 | Bool_t fCreatePSFile; // flag to produce a ps file with events
|
---|
29 | Bool_t fPause; // flag to pause execution between events
|
---|
30 |
|
---|
31 |
|
---|
32 | virtual Int_t PostProcess();
|
---|
33 |
|
---|
34 | protected:
|
---|
35 | virtual Int_t PreProcess(MParList *plist);
|
---|
36 | virtual Int_t Process();
|
---|
37 |
|
---|
38 | public:
|
---|
39 | MDisplay(MCamEvent* event, MGeomCam* geom, Int_t type=0, const char* name=NULL, const char* title=NULL);
|
---|
40 | virtual ~MDisplay();
|
---|
41 |
|
---|
42 | virtual void Paint(Option_t* option) {};
|
---|
43 |
|
---|
44 | MGeomCam* GetGeomCam() {return fGeomCam;}
|
---|
45 | Bool_t GetPauseMode() {return fPause;}
|
---|
46 | Bool_t GetCreatePSFile() {return fCreatePSFile;}
|
---|
47 |
|
---|
48 | void SetDisplayType(Int_t type) {fDisplayType=type;}
|
---|
49 | void SetPSFile(Bool_t set=kTRUE) {fCreatePSFile=set;}
|
---|
50 | void SetPSFileName(TString name) {fPSFileName=name;}
|
---|
51 | void SetPause(Bool_t set=kTRUE) {fPause=set;}
|
---|
52 |
|
---|
53 | ClassDef(MDisplay, 0) // Task to display camera containers
|
---|
54 | };
|
---|
55 |
|
---|
56 | #endif
|
---|
57 |
|
---|