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 GetEnergy() const {return fEnergy;} 00029 00031 Double_t GetMaxAmplitude() const; 00032 00034 Double_t GetMinAmplitude() const; 00035 00037 void HandleSetButton(); 00038 00040 Bool_t IsMaxAmplitudeSet() const; 00041 00043 Bool_t IsMinAmplitudeSet() const; 00044 00046 void SetEnergy(Double_t energy); 00047 00049 void SetMaxAmplitude(Double_t max); 00050 00052 void SetMinAmplitude(Double_t min); 00053 00054 private: 00056 Double_t fEnergy; 00057 00059 TGTextEntry *fMaxAmplitudeBox; 00060 00062 TGTextEntry *fMinAmplitudeBox; 00063 00065 TGTextEntry *fPeakEnergyBox; 00066 00068 TGTextButton *fSetButton; 00069 00070 ClassDef(QGCalibrationPeakFrame, 0) 00071 }; 00072 00073 #endif