source: trunk/MagicSoft/Mars/mgui/MCamDisplay.h@ 976

Last change on this file since 976 was 976, checked in by tbretz, 23 years ago
*** empty log message ***
File size: 1.4 KB
Line 
1#ifndef MCAMDISPLAY_H
2#define MCAMDISPLAY_H
3
4#ifndef MAGIC_H
5#include "MAGIC.h"
6#endif
7#ifndef ROOT_TClonesArray
8#include <TClonesArray.h>
9#endif
10
11class TBox;
12class TText;
13class TVirtualPad;
14class TClonesArray;
15
16class MGeomCam;
17class MHexagon;
18class MCerPhotEvt;
19class MCerPhotPix;
20
21class MCamDisplay : public TObject
22{
23private:
24 Bool_t fAutoScale; // indicating the autoscale function
25
26 UInt_t fNumPixels;
27 Int_t fRange;
28
29 TClonesArray *fPixels;
30
31 Float_t fMinPhe; // The minimal number of Phe
32 Float_t fMaxPhe; // The maximum number of Phe
33
34 TClonesArray *fLegend;
35 TClonesArray *fLegText;
36
37 TVirtualPad *fDrawingPad;
38
39 TBox *GetBox(Int_t i) { return (TBox*) fLegend->At(i); }
40 TText *GetText(Int_t i) { return (TText*)fLegText->At(i); }
41
42 void SetPixColor(const MCerPhotPix &pix);
43
44 MHexagon &operator[](int i) { return *((MHexagon*)fPixels->At(i)); }
45
46 Int_t GetColor(Float_t wert);
47
48 void UpdateLegend();
49
50public:
51 MCamDisplay(MGeomCam *geom);
52 ~MCamDisplay();
53
54 void Draw(Option_t *option = "");
55
56 void DrawPhotNum(const MCerPhotEvt *event);
57 void DrawPhotErr(const MCerPhotEvt *event);
58
59 void Reset();
60
61 void SetAutoScale(Bool_t input = kTRUE)
62 {
63 fAutoScale = input;
64 }
65
66 ClassDef(MCamDisplay, 0) // Displays the magic camera
67};
68
69#endif
Note: See TracBrowser for help on using the repository browser.