| 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 |
|
|---|
| 11 | class TBox;
|
|---|
| 12 | class TText;
|
|---|
| 13 | class TVirtualPad;
|
|---|
| 14 | class TClonesArray;
|
|---|
| 15 |
|
|---|
| 16 | class MGeomCam;
|
|---|
| 17 | class MHexagon;
|
|---|
| 18 | class MCerPhotEvt;
|
|---|
| 19 | class MCerPhotPix;
|
|---|
| 20 |
|
|---|
| 21 | class MCamDisplay : public TObject
|
|---|
| 22 | {
|
|---|
| 23 | private:
|
|---|
| 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 |
|
|---|
| 50 | public:
|
|---|
| 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.