1 #ifndef _QG_CALIBRATION_WINDOW_HH_
2 #define _QG_CALIBRATION_WINDOW_HH_
19 class TGHorizontalFrame;
21 class TGVerticalFrame;
35 void Clear(Option_t* opt=
"");
50 void SetProperty(
const std::string& key,
const std::string& value);
54 void LoadData(
const std::string& histogramName);
78 std::map<std::string, std::map<QGCalibrationPeakFrame*, Double_t> >
fMaxData;
81 std::map<std::string, std::map<QGCalibrationPeakFrame*, Double_t> >
fMinData;
Part of a QGCalibrationWindow for a specific peak.
Used to select amplitude windows for calibration peaks.
std::map< std::string, std::map< QGCalibrationPeakFrame *, Double_t > > fMaxData
Max amplitude data for each histogram and peak.
TGTextButton * fSaveButton
Save button.
QGPlot * GetCurrentPlot() const
Get current plot.
void LoadData(const std::string &histogramName)
Load data for histogram.
void HandleSaveButton()
Handle save button.
void AddPeak(Double_t energy)
Add peak.
void SetUpHistograms()
Set up histogram drop down box.
void Clear(Option_t *opt="")
Clear data.
void HandleHistogramDropDownBox(const char *text)
Handle histogram drop down box.
TGHorizontalFrame * fHistogramFrame
Histogram frame.
std::string fCurrentHistogramName
Current histogram name.
TGTextButton * fDrawButton
Draw button.
TGComboBox * fHistogramDropDownBox
Histogram drop down box.
std::string fOutputFilename
Output filename.
void HandleDrawButton()
Handle draw button.
void SaveData()
Save data for current histogram.
std::map< std::string, std::map< QGCalibrationPeakFrame *, Double_t > > fMinData
Min amplitude data for each histogram and peak.
void SetProperty(const std::string &key, const std::string &value)
Set property (used for opening a session)
QGCalibrationWindow(const TGWindow *p=0, UInt_t w=350, UInt_t h=300)
Constructor.
virtual ~QGCalibrationWindow()
Destructor.
std::vector< QGCalibrationPeakFrame * > fCalibrationPeakFrames
Collection of calibration peak frames.
Base class for GUI plots including histograms, scatter plots, pulses, and graphical cuts.
Base class for GUI windows.