![]() |
Diana Software
|
Part of a QGCalibrationWindow for a specific peak. More...
Public Member Functions | |
| QGCalibrationPeakFrame (TGWindow *p=0, UInt_t w=10, UInt_t h=10) | |
| Constructor. More... | |
| virtual | ~QGCalibrationPeakFrame () |
| Destructor. More... | |
| void | Clear (Option_t *opt="") |
| Clear data. More... | |
| Double_t | GetEnergy () const |
| Get energy of peak. More... | |
| Double_t | GetMaxAmplitude () const |
| Get max amplitude. More... | |
| Double_t | GetMinAmplitude () const |
| Get min amplitude. More... | |
| void | HandleSetButton () |
| Handle set button. More... | |
| Bool_t | IsMaxAmplitudeSet () const |
| Return true if max amplitude is set. More... | |
| Bool_t | IsMinAmplitudeSet () const |
| Return true if min amplitude is set. More... | |
| void | SetEnergy (Double_t energy) |
| Set energy. More... | |
| void | SetMaxAmplitude (Double_t max) |
| Set max amplitude. More... | |
| void | SetMinAmplitude (Double_t min) |
| Set min amplitude. More... | |
Private Attributes | |
| Double_t | fEnergy |
| Energy of the peak. More... | |
| TGTextEntry * | fMaxAmplitudeBox |
| Max amplitude box. More... | |
| TGTextEntry * | fMinAmplitudeBox |
| Min amplitude box. More... | |
| TGTextEntry * | fPeakEnergyBox |
| Box for peak energy. More... | |
| TGTextButton * | fSetButton |
| Set button. More... | |
Part of a QGCalibrationWindow for a specific peak.
Definition at line 16 of file QGCalibrationPeakFrame.hh.
| QGCalibrationPeakFrame::QGCalibrationPeakFrame | ( | TGWindow * | p = 0, |
| UInt_t | w = 10, |
||
| UInt_t | h = 10 |
||
| ) |
Constructor.
Definition at line 20 of file QGCalibrationPeakFrame.cc.
References fMaxAmplitudeBox, fMinAmplitudeBox, fPeakEnergyBox, and fSetButton.
|
virtual |
Destructor.
Definition at line 44 of file QGCalibrationPeakFrame.cc.
| void QGCalibrationPeakFrame::Clear | ( | Option_t * | opt = "" | ) |
Clear data.
Definition at line 49 of file QGCalibrationPeakFrame.cc.
References fMaxAmplitudeBox, and fMinAmplitudeBox.
|
inline |
| Double_t QGCalibrationPeakFrame::GetMaxAmplitude | ( | ) | const |
Get max amplitude.
Definition at line 55 of file QGCalibrationPeakFrame.cc.
References fMaxAmplitudeBox.
| Double_t QGCalibrationPeakFrame::GetMinAmplitude | ( | ) | const |
Get min amplitude.
Definition at line 61 of file QGCalibrationPeakFrame.cc.
References fMinAmplitudeBox.
| void QGCalibrationPeakFrame::HandleSetButton | ( | ) |
Handle set button.
Definition at line 67 of file QGCalibrationPeakFrame.cc.
References QGPlot::GetCanvasWindow(), QGCanvasWindow::GetDrawnPlots(), QGPlotFrame::GetEmbeddedCanvas(), QGCanvasWindow::GetPlotFrame(), max, min(), SetMaxAmplitude(), and SetMinAmplitude().
| Bool_t QGCalibrationPeakFrame::IsMaxAmplitudeSet | ( | ) | const |
Return true if max amplitude is set.
Definition at line 86 of file QGCalibrationPeakFrame.cc.
References fMaxAmplitudeBox.
| Bool_t QGCalibrationPeakFrame::IsMinAmplitudeSet | ( | ) | const |
Return true if min amplitude is set.
Definition at line 92 of file QGCalibrationPeakFrame.cc.
References fMinAmplitudeBox.
| void QGCalibrationPeakFrame::SetEnergy | ( | Double_t | energy | ) |
Set energy.
Definition at line 98 of file QGCalibrationPeakFrame.cc.
References fEnergy, and fPeakEnergyBox.
Referenced by QGCalibrationWindow::AddPeak().
| void QGCalibrationPeakFrame::SetMaxAmplitude | ( | Double_t | max | ) |
Set max amplitude.
Definition at line 106 of file QGCalibrationPeakFrame.cc.
References fMaxAmplitudeBox, and max.
Referenced by HandleSetButton().
| void QGCalibrationPeakFrame::SetMinAmplitude | ( | Double_t | min | ) |
Set min amplitude.
Definition at line 114 of file QGCalibrationPeakFrame.cc.
References fMinAmplitudeBox, and min().
Referenced by HandleSetButton().
|
private |
Energy of the peak.
Definition at line 56 of file QGCalibrationPeakFrame.hh.
Referenced by GetEnergy(), and SetEnergy().
|
private |
Max amplitude box.
Definition at line 59 of file QGCalibrationPeakFrame.hh.
Referenced by Clear(), GetMaxAmplitude(), IsMaxAmplitudeSet(), QGCalibrationPeakFrame(), and SetMaxAmplitude().
|
private |
Min amplitude box.
Definition at line 62 of file QGCalibrationPeakFrame.hh.
Referenced by Clear(), GetMinAmplitude(), IsMinAmplitudeSet(), QGCalibrationPeakFrame(), and SetMinAmplitude().
|
private |
Box for peak energy.
Definition at line 65 of file QGCalibrationPeakFrame.hh.
Referenced by QGCalibrationPeakFrame(), and SetEnergy().
|
private |
Set button.
Definition at line 68 of file QGCalibrationPeakFrame.hh.
Referenced by QGCalibrationPeakFrame().