![]() |
Diana Software
|
Used to select amplitude windows for calibration peaks. More...
Public Member Functions | |
| QGCalibrationWindow (const TGWindow *p=0, UInt_t w=350, UInt_t h=300) | |
| Constructor. More... | |
| virtual | ~QGCalibrationWindow () |
| Destructor. More... | |
| void | AddPeak (Double_t energy) |
| Add peak. More... | |
| void | Clear (Option_t *opt="") |
| Clear data. More... | |
| QGPlot * | GetCurrentPlot () const |
| Get current plot. More... | |
| void | HandleDrawButton () |
| Handle draw button. More... | |
| void | HandleHistogramDropDownBox (const char *text) |
| Handle histogram drop down box. More... | |
| void | HandleSaveButton () |
| Handle save button. More... | |
| void | SetProperty (const std::string &key, const std::string &value) |
| Set property (used for opening a session) More... | |
Public Member Functions inherited from QGWindow | |
| QGWindow (const TGWindow *p=0, UInt_t w=100, UInt_t h=100) | |
| Constructor. More... | |
| virtual | ~QGWindow () |
| Destructor. More... | |
| virtual void | SetWindowName (const char *name=0) |
| Set name of window. More... | |
Private Member Functions | |
| void | LoadData (const std::string &histogramName) |
| Load data for histogram. More... | |
| void | SaveData () |
| Save data for current histogram. More... | |
| void | SetUpHistograms () |
| Set up histogram drop down box. More... | |
Private Attributes | |
| std::vector< QGCalibrationPeakFrame * > | fCalibrationPeakFrames |
| Collection of calibration peak frames. More... | |
| std::string | fCurrentHistogramName |
| Current histogram name. More... | |
| TGTextButton * | fDrawButton |
| Draw button. More... | |
| TGComboBox * | fHistogramDropDownBox |
| Histogram drop down box. More... | |
| TGHorizontalFrame * | fHistogramFrame |
| Histogram frame. More... | |
| std::map< std::string, std::map< QGCalibrationPeakFrame *, Double_t > > | fMaxData |
| Max amplitude data for each histogram and peak. More... | |
| std::map< std::string, std::map< QGCalibrationPeakFrame *, Double_t > > | fMinData |
| Min amplitude data for each histogram and peak. More... | |
| std::string | fOutputFilename |
| Output filename. More... | |
| TGTextButton * | fSaveButton |
| Save button. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from QGWindow | |
| static QGWindow * | GetWindowByName (const std::string &name) |
| Get pointer to window with a given name. More... | |
| static const std::list< QGWindow * > & | GetWindows () |
| Get collection of windows. More... | |
| static bool | IsNameInUse (std::string name) |
| Check whether string is the name of any window. More... | |
| static std::string | GenerateWindowName (std::string baseName) |
| Generate a name for the window. More... | |
| static void | UpdateWindowDropDownBoxes () |
| Update window drop down boxes. More... | |
Protected Attributes inherited from QGWindow | |
| UInt_t | fWidth |
| Width of window. More... | |
| UInt_t | fHeight |
| Height of window. More... | |
Static Protected Attributes inherited from QGWindow | |
| static std::list< QGWindow * > | fWindows |
| Collection of pointers to all open QGWindows. More... | |
Used to select amplitude windows for calibration peaks.
Definition at line 23 of file QGCalibrationWindow.hh.
| QGCalibrationWindow::QGCalibrationWindow | ( | const TGWindow * | p = 0, |
| UInt_t | w = 350, |
||
| UInt_t | h = 300 |
||
| ) |
Constructor.
Definition at line 25 of file QGCalibrationWindow.cc.
References fDrawButton, fHistogramDropDownBox, fHistogramFrame, fSaveButton, QStringHandler::Resize(), SetUpHistograms(), and QGWindow::SetWindowName().
|
virtual |
Destructor.
Definition at line 76 of file QGCalibrationWindow.cc.
| void QGCalibrationWindow::AddPeak | ( | Double_t | energy | ) |
Add peak.
Definition at line 80 of file QGCalibrationWindow.cc.
References fCalibrationPeakFrames, fSaveButton, QStringHandler::Resize(), and QGCalibrationPeakFrame::SetEnergy().
Referenced by SetProperty().
| void QGCalibrationWindow::Clear | ( | Option_t * | opt = "" | ) |
Clear data.
Definition at line 95 of file QGCalibrationWindow.cc.
References fCalibrationPeakFrames.
Referenced by HandleHistogramDropDownBox().
| QGPlot * QGCalibrationWindow::GetCurrentPlot | ( | ) | const |
Get current plot.
Definition at line 103 of file QGCalibrationWindow.cc.
References fHistogramDropDownBox, and QGPlot::GetPlotByName().
Referenced by HandleDrawButton().
| void QGCalibrationWindow::HandleDrawButton | ( | ) |
Handle draw button.
Definition at line 113 of file QGCalibrationWindow.cc.
References GetCurrentPlot(), and QGPlot::Plot().
| void QGCalibrationWindow::HandleHistogramDropDownBox | ( | const char * | text | ) |
Handle histogram drop down box.
Definition at line 121 of file QGCalibrationWindow.cc.
References Clear(), fCurrentHistogramName, LoadData(), and SaveData().
| void QGCalibrationWindow::HandleSaveButton | ( | ) |
Handle save button.
Definition at line 129 of file QGCalibrationWindow.cc.
References channel, fMaxData, fMinData, fOutputFilename, and SaveData().
|
private |
Load data for histogram.
Definition at line 207 of file QGCalibrationWindow.cc.
References fMaxData, and fMinData.
Referenced by HandleHistogramDropDownBox().
|
private |
Save data for current histogram.
Definition at line 223 of file QGCalibrationWindow.cc.
References fCalibrationPeakFrames, fCurrentHistogramName, fMaxData, and fMinData.
Referenced by HandleHistogramDropDownBox(), and HandleSaveButton().
| void QGCalibrationWindow::SetProperty | ( | const std::string & | key, |
| const std::string & | value | ||
| ) |
Set property (used for opening a session)
Definition at line 242 of file QGCalibrationWindow.cc.
References AddPeak(), CALIBRATION_OUTPUT_FILENAME_KEY, fOutputFilename, and PEAK_KEY.
|
private |
Set up histogram drop down box.
Definition at line 255 of file QGCalibrationWindow.cc.
References fHistogramDropDownBox, and QGHistogram::GetHistograms().
Referenced by QGCalibrationWindow().
|
private |
Collection of calibration peak frames.
Definition at line 63 of file QGCalibrationWindow.hh.
Referenced by AddPeak(), Clear(), and SaveData().
|
private |
Current histogram name.
Definition at line 66 of file QGCalibrationWindow.hh.
Referenced by HandleHistogramDropDownBox(), and SaveData().
|
private |
Draw button.
Definition at line 69 of file QGCalibrationWindow.hh.
Referenced by QGCalibrationWindow().
|
private |
Histogram drop down box.
Definition at line 72 of file QGCalibrationWindow.hh.
Referenced by GetCurrentPlot(), QGCalibrationWindow(), and SetUpHistograms().
|
private |
Histogram frame.
Definition at line 75 of file QGCalibrationWindow.hh.
Referenced by QGCalibrationWindow().
|
private |
Max amplitude data for each histogram and peak.
Definition at line 78 of file QGCalibrationWindow.hh.
Referenced by HandleSaveButton(), LoadData(), and SaveData().
|
private |
Min amplitude data for each histogram and peak.
Definition at line 81 of file QGCalibrationWindow.hh.
Referenced by HandleSaveButton(), LoadData(), and SaveData().
|
private |
Output filename.
Definition at line 84 of file QGCalibrationWindow.hh.
Referenced by HandleSaveButton(), and SetProperty().
|
private |
Save button.
Definition at line 87 of file QGCalibrationWindow.hh.
Referenced by AddPeak(), and QGCalibrationWindow().