00001 #ifndef _QG_CALIBRATION_PEAK_FRAME_HH_ 00002 #define _QG_CALIBRATION_PEAK_FRAME_HH_ 00003 00011 #include "TGFrame.h" 00012 00013 class TGTextButton; 00014 class TGTextEntry; 00015 00016 class QGCalibrationPeakFrame : public TGHorizontalFrame { 00017 public: 00019 QGCalibrationPeakFrame(TGWindow *p = 0, UInt_t w = 10, UInt_t h = 10); 00020 00022 virtual ~QGCalibrationPeakFrame(); 00023 00025 void Clear(); 00026 00028 Double_t GetMaxAmplitude(); 00029 00031 Double_t GetMinAmplitude(); 00032 00034 void HandleSetButton(); 00035 00037 Bool_t IsMaxAmplitudeSet(); 00038 00040 Bool_t IsMinAmplitudeSet(); 00041 00043 void SetEnergy(Double_t energy); 00044 00046 void SetMaxAmplitude(Double_t max); 00047 00049 void SetMinAmplitude(Double_t min); 00050 00051 private: 00053 Double_t fEnergy; 00054 00056 TGTextEntry *fMaxAmplitudeBox; 00057 00059 TGTextEntry *fMinAmplitudeBox; 00060 00062 TGTextEntry *fPeakEnergyBox; 00063 00065 TGTextButton *fSetButton; 00066 00067 ClassDef(QGCalibrationPeakFrame, 0) 00068 }; 00069 00070 #endif