Changeset 2153 for trunk/MagicSoft/Mars/mgui/MCamDisplay.h
- Timestamp:
- 06/03/03 10:27:05 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mgui/MCamDisplay.h
r2147 r2153 8 8 #include <Gtypes.h> 9 9 #endif 10 #ifndef ROOT_TArrayF 11 #include <TArrayF.h> 12 #endif 10 13 #ifndef ROOT_TClonesArray 11 14 #include <TClonesArray.h> 12 15 #endif 16 13 17 14 18 class TBox; … … 49 53 TClonesArray *fPhotons; // array of reflector photons 50 54 51 UInt_t fW; // Width of canvas 52 UInt_t fH; // Height of canvas 55 TArrayF fData; 56 Float_t fMinimum; 57 Float_t fMaximum; 53 58 54 59 TBox *GetBox(Int_t i) { return (TBox*) fLegend->At(i); } … … 57 62 MHexagon &operator[](int i) { return *((MHexagon*)fPixels->At(i)); } 58 63 59 void SetPixColor(const MCerPhotPix &pix, const UInt_t i, Float_t min, Float_t max); 60 void SetPixColorRatio(const MCerPhotPix &pix, Float_t min, Float_t max); 61 void SetPixColorLevel(const MCerPhotPix &pix, Float_t lvl1, Float_t lvl2); 62 void SetPixColorError(const MCerPhotPix &pix, const UInt_t i, Float_t min, Float_t max); 63 void SetPixColorPedestal(const MPedestalPix &pix, const UInt_t i, Float_t min, Float_t max); 64 Int_t GetColor(Float_t val, Float_t min, Float_t max); 64 Int_t GetColor(Float_t val, Float_t min, Float_t max, Bool_t islog); 65 65 66 void UpdateLegend(Float_t min, Float_t max); 67 void SetRange(); 68 void SetPalette(); 66 void Update(Bool_t islog); 67 void UpdateLegend(Float_t min, Float_t max, Bool_t islog); 68 void SetRange(); 69 void SetPalette(); 70 71 enum { 72 kIsUsed = BIT(14) 73 }; 69 74 70 75 public: … … 73 78 ~MCamDisplay(); 74 79 75 void SetAutoScale(Bool_t input=kTRUE) { fAutoScale = input; }76 void FillPhotNum(const MCerPhotEvt &event);77 void FillRatio(const MCerPhotEvt &event);78 void FillLevels(const MCerPhotEvt &event, Float_t lvl1, Float_t lvl2);79 void FillErrorPhot(const MCerPhotEvt &event);80 void FillLevels(const MCerPhotEvt &event, const MImgCleanStd &clean);81 void FillPedestals(const MPedestalCam &event);82 void FillRflEvent(const MRflEvtData &event);83 void FillCurrents(const MCurrents &event);84 void ShowRflEvent(const MRflEvtData *event=NULL, EMarkerStyle m=kFullDotMedium);80 void SetAutoScale(Bool_t input=kTRUE) { fAutoScale = input; } 81 void FillPhotNum(const MCerPhotEvt &event); 82 void FillRatio(const MCerPhotEvt &event); 83 void FillLevels(const MCerPhotEvt &event, Float_t lvl1, Float_t lvl2); 84 void FillErrorPhot(const MCerPhotEvt &event); 85 void FillLevels(const MCerPhotEvt &event, const MImgCleanStd &clean); 86 void FillPedestals(const MPedestalCam &event); 87 void FillRflEvent(const MRflEvtData &event); 88 void FillCurrents(const MCurrents &event); 89 void ShowRflEvent(const MRflEvtData *event=NULL, EMarkerStyle m=kFullDotMedium); 85 90 86 void DrawPixelNumbers();91 void DrawPixelNumbers(); 87 92 88 93 void Paint(Option_t *option=""); … … 94 99 //virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py); 95 100 96 void SetPalette(Int_t ncolors, Int_t *colors);101 void SetPalette(Int_t ncolors, Int_t *colors); 97 102 98 void SetPrettyPalette(); // *MENU*99 void SetDeepBlueSeaPalette(); // *MENU*100 void SetInvDeepBlueSeaPalette(); // *MENU*103 void SetPrettyPalette(); // *MENU* 104 void SetDeepBlueSeaPalette(); // *MENU* 105 void SetInvDeepBlueSeaPalette(); // *MENU* 101 106 102 void SetPix(const Int_t pixnum, const Int_t color, Float_t min, Float_t max); // New function added by M.Lopez in 31-01-03 107 void SetPix(const Int_t pixnum, const Int_t color, Float_t min, Float_t max); // New function added by M.Lopez in 31-01-03 108 109 void SetMinimum(Float_t m) { fMinimum = m; } 110 void SetMaximum(Float_t m) { fMaximum = m; } 103 111 104 112 ClassDef(MCamDisplay, 0) // Displays the magic camera
Note:
See TracChangeset
for help on using the changeset viewer.