musrfit
1.9.2
|
#include <PMusrCanvas.h>
Public Member Functions | |
PMusrCanvas () | |
PMusrCanvas (const Int_t number, const Char_t *title, Int_t wtopx, Int_t wtopy, Int_t ww, Int_t wh, const Bool_t batch, const Bool_t fourier=false, const Bool_t avg=false, const Bool_t theoAsData=false) | |
PMusrCanvas (const Int_t number, const Char_t *title, Int_t wtopx, Int_t wtopy, Int_t ww, Int_t wh, PMsrFourierStructure fourierDefault, const PIntVector markerList, const PIntVector colorList, const Bool_t batch, const Bool_t fourier=false, const Bool_t avg=false, const Bool_t theoAsData=false) | |
virtual | ~PMusrCanvas () |
virtual Bool_t | IsValid () |
virtual void | SetMsrHandler (PMsrHandler *msrHandler) |
virtual void | SetRunListCollection (PRunListCollection *runList) |
virtual void | SetTimeout (Int_t ival) |
virtual void | UpdateParamTheoryPad () |
virtual void | UpdateDataTheoryPad () |
virtual void | UpdateInfoPad () |
virtual void | Done (Int_t status=0) |
virtual void | HandleCmdKey (Int_t event, Int_t x, Int_t y, TObject *selected) |
virtual void | HandleMenuPopup (Int_t id) |
virtual void | LastCanvasClosed () |
virtual void | WindowClosed () |
virtual void | SaveGraphicsAndQuit (Char_t *fileName, Char_t *graphicsFormat) |
virtual void | ExportData (const Char_t *fileName) |
Private Member Functions | |
virtual void | CreateStyle () |
virtual void | InitFourier () |
virtual void | InitAverage () |
virtual void | InitMusrCanvas (const Char_t *title, Int_t wtopx, Int_t wtopy, Int_t ww, Int_t wh) |
virtual void | InitDataSet (PMusrCanvasDataSet &dataSet) |
virtual void | InitDataSet (PMusrCanvasNonMusrDataSet &dataSet) |
virtual void | CleanupDataSet (PMusrCanvasDataSet &dataSet) |
virtual void | CleanupDataSet (PMusrCanvasNonMusrDataSet &dataSet) |
virtual void | HandleDataSet (UInt_t plotNo, UInt_t runNo, PRunData *data) |
virtual void | HandleNonMusrDataSet (UInt_t plotNo, UInt_t runNo, PRunData *data) |
virtual void | HandleDifference () |
virtual void | HandleFourier () |
virtual void | HandleDifferenceFourier () |
virtual void | HandleFourierDifference () |
virtual void | HandleAverage () |
virtual void | CleanupDifference () |
virtual void | CleanupFourier () |
virtual void | CleanupFourierDifference () |
virtual void | CleanupAverage () |
virtual void | CalcPhaseOptReFT () |
PMusrCanvas::CalcPhaseOptReFT. More... | |
virtual Double_t | CalculateDiff (const Double_t x, const Double_t y, TH1F *theo) |
virtual Double_t | CalculateDiff (const Double_t x, const Double_t y, TGraphErrors *theo) |
virtual Int_t | FindBin (const Double_t x, TGraphErrors *graph) |
virtual Double_t | GetMaximum (TH1F *histo, Double_t xmin=-1.0, Double_t xmax=-1.0) |
virtual Double_t | GetMinimum (TH1F *histo, Double_t xmin=-1.0, Double_t xmax=-1.0) |
virtual Double_t | GetMaximum (TGraphErrors *graph, Double_t xmin=-1.0, Double_t xmax=-1.0) |
virtual Double_t | GetMinimum (TGraphErrors *graph, Double_t xmin=-1.0, Double_t xmax=-1.0) |
virtual void | PlotData (Bool_t unzoom=false) |
virtual void | PlotDifference (Bool_t unzoom=false) |
virtual void | PlotFourier (Bool_t unzoom=false) |
virtual void | PlotFourierDifference (Bool_t unzoom=false) |
virtual void | PlotFourierPhaseValue (Bool_t unzoom=false) |
virtual void | PlotAverage (Bool_t unzoom=false) |
virtual void | IncrementFourierPhase () |
virtual void | DecrementFourierPhase () |
virtual Bool_t | IsScaleN0AndBkg () |
virtual UInt_t | GetNeededAccuracy (PMsrParamStructure param) |
virtual Double_t | GetInterpolatedValue (TH1F *histo, Double_t xVal) |
virtual void | GetExportDataSet (const TH1F *data, const Double_t xmin, const Double_t xmax, PMusrCanvasAsciiDumpVector &dumpData, const Bool_t hasError=true) |
Private Attributes | |
Bool_t | fTheoAsData |
flag if true, calculate theory points only at the data points More... | |
Bool_t | fStartWithFourier |
flag if true, the Fourier transform will be presented bypassing the time domain representation More... | |
Bool_t | fStartWithAvg |
flag if true, the averaged data/Fourier will be presented More... | |
Int_t | fTimeout |
timeout after which the Done signal should be emited. If timeout <= 0, no timeout is taking place More... | |
Bool_t | fScaleN0AndBkg |
true=N0 and background is scaled to (1/ns), otherwise (1/bin) for the single histogram case More... | |
Bool_t | fBatchMode |
musrview in ROOT batch mode More... | |
Bool_t | fValid |
if true, everything looks OK More... | |
Bool_t | fAveragedView |
tag showing that the averaged view or normal view should be presented. More... | |
Bool_t | fDifferenceView |
tag showing that the shown data, fourier, are the difference between data and theory More... | |
Bool_t | fToggleColor |
tag showing if a single histo theory is color toggled More... | |
Int_t | fCurrentPlotView |
tag showing what the current plot view is: data, fourier, ... More... | |
Int_t | fPreviousPlotView |
tag showing the previous plot view More... | |
Int_t | fPlotType |
plot type tag: -1 == undefined, MSR_PLOT_SINGLE_HISTO == single histogram, MSR_PLOT_ASYM == asymmetry, MSR_PLOT_BNMR == beta-NMR asymmetry, MSR_PLOT_MU_MINUS == mu minus (not yet implemented), MSR_PLOT_NON_MUSR == non-muSR More... | |
Int_t | fPlotNumber |
plot number More... | |
Bool_t | fXRangePresent |
Bool_t | fYRangePresent |
flag indicating if x-/y-range is present More... | |
Double_t | fXmin |
Double_t | fXmax |
Double_t | fYmin |
Double_t | fYmax |
data/theory frame range More... | |
PDoubleVector | fCurrentFourierPhase |
holds the current Fourier phase(s) More... | |
std::unique_ptr< TLatex > | fCurrentFourierPhaseText |
used in Re/Im Fourier to show the current phase in the pad More... | |
std::unique_ptr< TString > | fRRFText |
RRF information. More... | |
std::unique_ptr< TLatex > | fRRFLatexText |
used to display RRF info More... | |
std::unique_ptr< TStyle > | fStyle |
A collection of all graphics attributes. More... | |
std::unique_ptr< TTimer > | fTimeoutTimer |
timeout timer in order to terminate if no action is taking place for too long More... | |
TRootCanvas * | fImp |
ROOT native GUI version of main window with menubar and drawing area. More... | |
TGMenuBar * | fBar |
menu bar More... | |
TGPopupMenu * | fPopupMain |
popup menu Musrfit in the main menu bar More... | |
std::unique_ptr< TGPopupMenu > | fPopupFourier |
popup menu of the Musrfit/Fourier sub menu More... | |
std::unique_ptr< TCanvas > | fMainCanvas |
main canvas More... | |
std::unique_ptr< TPaveText > | fTitlePad |
title pad used to display a title More... | |
std::unique_ptr< TPad > | fDataTheoryPad |
data/theory pad used to display the data/theory More... | |
std::unique_ptr< TPaveText > | fParameterPad |
parameter pad used to display the fitting parameters More... | |
std::unique_ptr< TPaveText > | fTheoryPad |
theory pad used to display the theory and functions More... | |
std::unique_ptr< TLegend > | fInfoPad |
info pad used to display a legend of the data plotted More... | |
std::unique_ptr< TLegend > | fMultiGraphLegend |
used for non-muSR plots to display a legend More... | |
TH1F * | fHistoFrame |
fHistoFrame is a 'global' frame needed in order to plot histograms with (potentially) different x-frames More... | |
PMsrHandler * | fMsrHandler |
msr-file handler More... | |
PRunListCollection * | fRunList |
data handler More... | |
PMusrCanvasDataSet | fDataAvg |
set of all averaged data to be plotted (asymmetry/single histogram) More... | |
PMusrCanvasDataList | fData |
list of all histogram data to be plotted (asymmetry/single histogram) More... | |
PMusrCanvasNonMusrDataList | fNonMusrData |
list of all error graphs to be plotted (non-muSR) More... | |
TMultiGraph * | fMultiGraphData |
fMultiGraphData is a 'global' graph needed in order to plot error graphs (data) with (potentially) different x-frames More... | |
TMultiGraph * | fMultiGraphDiff |
fMultiGraphDiff is a 'global' graph needed in order to plot error graphs (data-theory) with (potentially) different x-frames More... | |
PMsrFourierStructure | fFourier |
structure holding all the information necessary to perform the Fourier transform More... | |
PIntVector | fMarkerList |
list of markers More... | |
PIntVector | fColorList |
list of colors More... | |
The preprocessor tag MAKECLING is used to hide away from rootcling the overly complex spirit header files.
Definition at line 203 of file PMusrCanvas.h.
PMusrCanvas::PMusrCanvas | ( | ) |
PMusrCanvas::PMusrCanvas | ( | const Int_t | number, |
const Char_t * | title, | ||
Int_t | wtopx, | ||
Int_t | wtopy, | ||
Int_t | ww, | ||
Int_t | wh, | ||
const Bool_t | batch, | ||
const Bool_t | fourier = false , |
||
const Bool_t | avg = false , |
||
const Bool_t | theoAsData = false |
||
) |
Constructor.
number | The plot number of the msr-file PLOT block |
title | Title to be displayed |
wtopx | top x coordinate (in pixels) to place the canvas. |
wtopy | top y coordinate (in pixels) to place the canvas. |
ww | width (in pixels) of the canvas. |
wh | height (in pixels) of the canvas. |
batch | flag: if set true, the canvas will not be displayed. This is used when just dumping of a graphical output file is wished. |
fourier | flag: if set true, the canvas will present the Fourier view. |
avg | flag: if set true, the canvas will present the averages data/Fourier view. |
Definition at line 172 of file PMusrCanvas.cpp.
References CreateStyle(), fAveragedView, fHistoFrame, fMultiGraphData, fMultiGraphDiff, fTimeout, fXmax, fXmin, fXRangePresent, fYmax, fYmin, fYRangePresent, InitAverage(), InitFourier(), and InitMusrCanvas().
PMusrCanvas::PMusrCanvas | ( | const Int_t | number, |
const Char_t * | title, | ||
Int_t | wtopx, | ||
Int_t | wtopy, | ||
Int_t | ww, | ||
Int_t | wh, | ||
PMsrFourierStructure | fourierDefault, | ||
const PIntVector | markerList, | ||
const PIntVector | colorList, | ||
const Bool_t | batch, | ||
const Bool_t | fourier = false , |
||
const Bool_t | avg = false , |
||
const Bool_t | theoAsData = false |
||
) |
Constructor.
number | The plot number of the msr-file PLOT block |
title | Title to be displayed |
wtopx | top x coordinate (in pixels) to place the canvas. |
wtopy | top y coordinate (in pixels) to place the canvas. |
ww | width (in pixels) of the canvas. |
wh | height (in pixels) of the canvas. |
fourierDefault | structure holding the pre-defined settings for a Fourier transform |
markerList | pre-defined list of markers |
colorList | pre-defined list of colors |
batch | flag: if set true, the canvas will not be displayed. This is used when just dumping of a graphical output file is wished. |
fourier | flag: if set true, the canvas will present the Fourier view. |
avg | flag: if set true, the canvas will present the averages data/Fourier view. |
Definition at line 222 of file PMusrCanvas.cpp.
References CreateStyle(), fHistoFrame, fMultiGraphData, fMultiGraphDiff, fTimeout, fXmax, fXmin, fXRangePresent, fYmax, fYmin, fYRangePresent, InitAverage(), and InitMusrCanvas().
|
virtual |
Destructor.
Definition at line 259 of file PMusrCanvas.cpp.
References CleanupDataSet(), fData, fMultiGraphData, fMultiGraphDiff, and fNonMusrData.
|
privatevirtual |
PMusrCanvas::CalcPhaseOptReFT.
Definition at line 4213 of file PMusrCanvas.cpp.
References fData, fFourier, fMsrHandler, PMsrFourierStructure::fPlotRange, PMsrFourierStructure::fRangeForPhaseCorrection, PMsrHandler::GetMsrFourierList(), and PFourier::GetPhaseOptRealFourier().
Referenced by HandleFourier(), and HandleMenuPopup().
|
privatevirtual |
Calculates the difference between data and theory for histograms.
return:
x | x-value of the data |
y | y-value of the data |
theo | theory histogram |
Definition at line 4278 of file PMusrCanvas.cpp.
Referenced by HandleDifference().
|
privatevirtual |
Calculates the difference between data and theory for error graphs.
return:
x | x-value of the data |
y | y-value of the data |
theo | theory error graphs |
Definition at line 4298 of file PMusrCanvas.cpp.
References FindBin().
|
privatevirtual |
Cleans up (deallocate) averaged data set.
Definition at line 4131 of file PMusrCanvas.cpp.
References PMusrCanvasDataSet::data, PMusrCanvasDataSet::dataFourierIm, PMusrCanvasDataSet::dataFourierPhase, PMusrCanvasDataSet::dataFourierPhaseOptReal, PMusrCanvasDataSet::dataFourierPwr, PMusrCanvasDataSet::dataFourierRe, PMusrCanvasDataSet::diff, PMusrCanvasDataSet::diffFourierIm, PMusrCanvasDataSet::diffFourierPhase, PMusrCanvasDataSet::diffFourierPhaseOptReal, PMusrCanvasDataSet::diffFourierPwr, PMusrCanvasDataSet::diffFourierRe, fDataAvg, PMusrCanvasDataSet::theory, PMusrCanvasDataSet::theoryFourierIm, PMusrCanvasDataSet::theoryFourierPhase, PMusrCanvasDataSet::theoryFourierPhaseOptReal, PMusrCanvasDataSet::theoryFourierPwr, and PMusrCanvasDataSet::theoryFourierRe.
Referenced by HandleAverage(), HandleCmdKey(), and HandleMenuPopup().
|
privatevirtual |
Cleans up a data set (histogram representation).
dataSet | data set to be cleaned up. |
Definition at line 2480 of file PMusrCanvas.cpp.
References PMusrCanvasDataSet::data, PMusrCanvasDataSet::dataFourierIm, PMusrCanvasDataSet::dataFourierPhase, PMusrCanvasDataSet::dataFourierPhaseOptReal, PMusrCanvasDataSet::dataFourierPwr, PMusrCanvasDataSet::dataFourierRe, PMusrCanvasDataSet::dataRange, PMusrCanvasDataSet::diff, PMusrCanvasDataSet::diffFourierIm, PMusrCanvasDataSet::diffFourierPhase, PMusrCanvasDataSet::diffFourierPhaseOptReal, PMusrCanvasDataSet::diffFourierPwr, PMusrCanvasDataSet::diffFourierRe, PMusrCanvasDataSet::theory, PMusrCanvasDataSet::theoryFourierIm, PMusrCanvasDataSet::theoryFourierPhase, PMusrCanvasDataSet::theoryFourierPhaseOptReal, PMusrCanvasDataSet::theoryFourierPwr, and PMusrCanvasDataSet::theoryFourierRe.
Referenced by ~PMusrCanvas().
|
privatevirtual |
Cleans up a data set (error graph representation).
dataSet | data set to be cleaned up. |
Definition at line 2568 of file PMusrCanvas.cpp.
References PMusrCanvasNonMusrDataSet::data, PMusrCanvasNonMusrDataSet::dataFourierIm, PMusrCanvasNonMusrDataSet::dataFourierPhase, PMusrCanvasNonMusrDataSet::dataFourierPwr, PMusrCanvasNonMusrDataSet::dataFourierRe, PMusrCanvasNonMusrDataSet::dataRange, PMusrCanvasNonMusrDataSet::diff, PMusrCanvasNonMusrDataSet::diffFourierIm, PMusrCanvasNonMusrDataSet::diffFourierPhase, PMusrCanvasNonMusrDataSet::diffFourierPwr, PMusrCanvasNonMusrDataSet::diffFourierRe, PMusrCanvasNonMusrDataSet::theory, PMusrCanvasNonMusrDataSet::theoryFourierIm, PMusrCanvasNonMusrDataSet::theoryFourierPhase, PMusrCanvasNonMusrDataSet::theoryFourierPwr, and PMusrCanvasNonMusrDataSet::theoryFourierRe.
|
privatevirtual |
Cleans up (deallocate) difference data.
Definition at line 4031 of file PMusrCanvas.cpp.
References fData.
Referenced by HandleCmdKey(), and HandleMenuPopup().
|
privatevirtual |
Cleans up (deallocate) Fourier transform data.
Definition at line 4047 of file PMusrCanvas.cpp.
References fData.
Referenced by HandleCmdKey(), and HandleMenuPopup().
|
privatevirtual |
Cleans up (deallocate) Fourier difference spectra.
Definition at line 4099 of file PMusrCanvas.cpp.
References fData.
Referenced by HandleCmdKey(), and HandleMenuPopup().
|
privatevirtual |
Set styles for the canvas. Perhaps one could transfer them to the startup-file in the future.
Definition at line 2237 of file PMusrCanvas.cpp.
References fPlotNumber, and fStyle.
Referenced by PMusrCanvas().
|
privatevirtual |
Decrements the Fourier phase and recalculate the real/imaginary part of the Fourier transform.
Definition at line 6297 of file PMusrCanvas.cpp.
References fCurrentFourierPhase, fCurrentPlotView, fData, fFourier, PMsrFourierStructure::fPhaseIncrement, PlotFourierPhaseValue(), and PV_FOURIER_PWR.
Referenced by HandleCmdKey(), and HandleMenuPopup().
|
virtual |
Signal emitted that the user wants to terminate the application.
status | Status info |
Definition at line 911 of file PMusrCanvas.cpp.
References status.
Referenced by HandleCmdKey(), LastCanvasClosed(), main(), and SaveGraphicsAndQuit().
|
virtual |
Saves the currently seen data (data, difference, Fourier spectra, ...) in ascii column format.
fileName | file name to be used to save the data. |
Definition at line 1522 of file PMusrCanvas.cpp.
References PMusrCanvasDataSet::data, PMusrCanvasAsciiDump::data, PMusrCanvasAsciiDump::dataErr, PMusrCanvasDataSet::dataFourierIm, PMusrCanvasDataSet::dataFourierPhase, PMusrCanvasDataSet::dataFourierPhaseOptReal, PMusrCanvasDataSet::dataFourierPwr, PMusrCanvasDataSet::dataFourierRe, PMusrCanvasAsciiDump::dataX, PMusrCanvasDataSet::diff, PMusrCanvasDataSet::diffFourierIm, PMusrCanvasDataSet::diffFourierPhase, PMusrCanvasDataSet::diffFourierPwr, PMusrCanvasDataSet::diffFourierRe, fAveragedView, fCurrentPlotView, fData, fDataAvg, fDifferenceView, fHistoFrame, fMultiGraphData, fNonMusrData, fPlotType, GetExportDataSet(), MSR_PLOT_ASYM, MSR_PLOT_ASYM_RRF, MSR_PLOT_BNMR, MSR_PLOT_MU_MINUS, MSR_PLOT_NON_MUSR, MSR_PLOT_SINGLE_HISTO, MSR_PLOT_SINGLE_HISTO_RRF, PV_DATA, PV_FOURIER_IMAG, PV_FOURIER_PHASE, PV_FOURIER_PHASE_OPT_REAL, PV_FOURIER_PWR, PV_FOURIER_REAL, PV_FOURIER_REAL_AND_IMAG, PMusrCanvasDataSet::theory, PMusrCanvasDataSet::theoryFourierIm, PMusrCanvasDataSet::theoryFourierPhase, PMusrCanvasDataSet::theoryFourierPhaseOptReal, PMusrCanvasDataSet::theoryFourierPwr, and PMusrCanvasDataSet::theoryFourierRe.
Referenced by HandleMenuPopup(), and main().
|
privatevirtual |
Analog to FindBin for histograms (TH1F) but here for TGraphErrors.
return:
x | x-value of the data |
graph | TGraphErrors which should be searched |
Definition at line 4322 of file PMusrCanvas.cpp.
Referenced by CalculateDiff().
|
privatevirtual |
extract data for export.
data | |
xmin | |
xmax | |
dumpData | |
hasError |
Definition at line 2207 of file PMusrCanvas.cpp.
References PMusrCanvasAsciiDump::data, PMusrCanvasAsciiDump::dataErr, and PMusrCanvasAsciiDump::dataX.
Referenced by ExportData().
|
privatevirtual |
search for xVal in histo. If xVal is not found exactly, interpolate and return the interpolated y-value.
return:
histo | pointer of the histogram |
xVal | x-value to be looked for |
Definition at line 6482 of file PMusrCanvas.cpp.
Referenced by HandleAverage().
|
privatevirtual |
returns the maximum of a histogram in the range [xmin, xmax]. If xmin = xmax = -1.0, the whole histogram range is used.
return:
histo | pointer of the histogram |
xmin | lower edge for the search interval. |
xmax | upper edge for the search interval. |
Definition at line 4356 of file PMusrCanvas.cpp.
Referenced by PlotData(), PlotDifference(), PlotFourier(), and PlotFourierDifference().
|
privatevirtual |
returns the maximum of a TGraphErrors object in the range [xmin, xmax]. If xmin = xmax = -1.0, the whole histogram range is used.
return:
graph | pointer of the histogram |
xmin | lower edge for the search interval. |
xmax | upper edge for the search interval. |
Definition at line 4442 of file PMusrCanvas.cpp.
|
privatevirtual |
returns the minimum of a histogram in the range [xmin, xmax]. If xmin = xmax = -1.0, the whole histogram range is used.
return:
histo | pointer of the histogram |
xmin | lower edge for the search interval. |
xmax | upper edge for the search interval. |
Definition at line 4399 of file PMusrCanvas.cpp.
Referenced by PlotData(), PlotDifference(), PlotFourier(), and PlotFourierDifference().
|
privatevirtual |
returns the minimum of a TGraphErrors object in the range [xmin, xmax]. If xmin = xmax = -1.0, the whole histogram range is used.
return:
graph | pointer of the histogram |
xmin | lower edge for the search interval. |
xmax | upper edge for the search interval. |
Definition at line 4482 of file PMusrCanvas.cpp.
|
privatevirtual |
Calculates the needed accuracy of the parameter value based on the given errors.
return:
param | fit parameter with its additional informations, like errors etc. |
Definition at line 6399 of file PMusrCanvas.cpp.
References PMsrParamStructure::fPosErrorPresent, PMsrParamStructure::fStep, and PMsrParamStructure::fValue.
Referenced by UpdateParamTheoryPad().
|
privatevirtual |
Handles the calculation of the average of the ploted data. It allocates the necessary objects if they are not already present. At the end it calls the plotting routine.
Definition at line 3651 of file PMusrCanvas.cpp.
References CleanupAverage(), PMusrCanvasDataSet::data, PMusrCanvasDataSet::dataFourierIm, PMusrCanvasDataSet::dataFourierPhase, PMusrCanvasDataSet::dataFourierPhaseOptReal, PMusrCanvasDataSet::dataFourierPwr, PMusrCanvasDataSet::dataFourierRe, PMusrCanvasDataSet::diff, PMusrCanvasDataSet::diffFourierIm, PMusrCanvasDataSet::diffFourierPhase, PMusrCanvasDataSet::diffFourierPhaseOptReal, PMusrCanvasDataSet::diffFourierPwr, PMusrCanvasDataSet::diffFourierRe, fData, fDataAvg, fPlotType, GetInterpolatedValue(), MSR_PLOT_NON_MUSR, PMusrCanvasDataSet::theory, PMusrCanvasDataSet::theoryFourierIm, PMusrCanvasDataSet::theoryFourierPhase, PMusrCanvasDataSet::theoryFourierPhaseOptReal, PMusrCanvasDataSet::theoryFourierPwr, and PMusrCanvasDataSet::theoryFourierRe.
Referenced by HandleCmdKey(), and HandleMenuPopup().
|
virtual |
Filters keyboard events, and if they are a command key (see below) carries out the necessary actions.
Currently implemented command keys:
event | event type |
x | character key |
y | not used |
selected | not used |
Definition at line 935 of file PMusrCanvas.cpp.
References CleanupAverage(), CleanupDifference(), CleanupFourier(), CleanupFourierDifference(), DecrementFourierPhase(), Done(), fAveragedView, fBatchMode, fColorList, fCurrentPlotView, fData, fDataTheoryPad, fDifferenceView, fFourier, fMainCanvas, FOURIER_PLOT_IMAG, FOURIER_PLOT_PHASE, FOURIER_PLOT_PHASE_OPT_REAL, FOURIER_PLOT_POWER, FOURIER_PLOT_REAL, FOURIER_PLOT_REAL_AND_IMAG, fPlotNumber, PMsrFourierStructure::fPlotTag, fPopupFourier, fPopupMain, fPreviousPlotView, fStartWithAvg, fToggleColor, HandleAverage(), HandleDifference(), HandleDifferenceFourier(), HandleFourier(), HandleFourierDifference(), IncrementFourierPhase(), P_MENU_ID_AVERAGE, P_MENU_ID_DATA, P_MENU_ID_DIFFERENCE, P_MENU_ID_FOURIER, P_MENU_ID_FOURIER_IMAG, P_MENU_ID_FOURIER_PHASE, P_MENU_ID_FOURIER_PHASE_MINUS, P_MENU_ID_FOURIER_PHASE_OPT_REAL, P_MENU_ID_FOURIER_PHASE_PLUS, P_MENU_ID_FOURIER_PWR, P_MENU_ID_FOURIER_REAL, P_MENU_ID_FOURIER_REAL_AND_IMAG, P_MENU_PLOT_OFFSET, PlotAverage(), PlotData(), PlotDifference(), PlotFourier(), PlotFourierDifference(), PV_DATA, PV_FOURIER_IMAG, PV_FOURIER_PHASE, PV_FOURIER_PHASE_OPT_REAL, PV_FOURIER_PWR, PV_FOURIER_REAL, and PV_FOURIER_REAL_AND_IMAG.
Referenced by UpdateDataTheoryPad().
|
privatevirtual |
Generates the necessary histograms for plotting, starting from the pre-processed data.
plotNo | The number of the histo within the run list (fPlotNumber is the number of the plot BLOCK) |
runNo | The number of the run |
data | pre-processed data |
Definition at line 2646 of file PMusrCanvas.cpp.
References PMusrCanvasDataSet::data, PMusrCanvasDataSet::dataRange, PMusrCanvasDataSet::diffFourierTag, fColorList, fData, fMarkerList, fMsrHandler, fPlotNumber, fXmax, fXmin, fXRangePresent, fYmax, fYmin, fYRangePresent, PRunData::GetDataTimeStart(), PRunData::GetDataTimeStep(), PRunData::GetError(), PMsrGlobalBlock::GetFitRange(), PMsrHandler::GetMsrGlobal(), PMsrHandler::GetMsrPlotList(), PMsrHandler::GetMsrRunList(), PRunData::GetTheory(), PRunData::GetTheoryTimeStart(), PRunData::GetTheoryTimeStep(), PRunData::GetValue(), InitDataSet(), MSR_PLOT_ASYM, MSR_PLOT_BNMR, PMUSR_UNDEFINED, PMusrCanvasPlotRange::SetXRange(), PMusrCanvasPlotRange::SetYRange(), and PMusrCanvasDataSet::theory.
Referenced by UpdateDataTheoryPad().
|
privatevirtual |
Handles the calculation of the difference spectra (i.e. data-theory). It allocates the necessary objects if they are not already present. At the end it calls the plotting routine.
Definition at line 3200 of file PMusrCanvas.cpp.
References CalculateDiff(), fData, fNonMusrData, fPlotType, and MSR_PLOT_NON_MUSR.
Referenced by HandleCmdKey(), HandleDifferenceFourier(), and HandleMenuPopup().
|
privatevirtual |
Handles the calculation of the Fourier transform of the difference spectra (i.e. data-theory). It allocates the necessary objects if they are not already present. At the end it calls the plotting routine.
Definition at line 3432 of file PMusrCanvas.cpp.
References PMsrFourierStructure::fApodization, fCurrentFourierPhase, fData, PMsrFourierStructure::fDCCorrected, fFourier, PMsrFourierStructure::fFourierPower, fHistoFrame, PMsrFourierStructure::fPhase, fPlotType, PMsrFourierStructure::fUnits, PFourier::GetImaginaryFourier(), PFourier::GetPhaseFourier(), PFourier::GetPowerFourier(), PFourier::GetRealFourier(), HandleDifference(), PFourier::IsValid(), MSR_PLOT_NON_MUSR, and PFourier::Transform().
Referenced by HandleCmdKey(), and HandleMenuPopup().
|
privatevirtual |
Handles the calculation of the Fourier transform. It allocates the necessary objects if they are not already present. At the end it calls the plotting routine.
Definition at line 3286 of file PMusrCanvas.cpp.
References CalcPhaseOptReFT(), PMsrFourierStructure::fApodization, fCurrentFourierPhase, fCurrentPlotView, fData, PMsrFourierStructure::fDCCorrected, fFourier, PMsrFourierStructure::fFourierPower, fHistoFrame, PMsrFourierStructure::fPhase, fPlotType, fStartWithFourier, fTheoAsData, PMsrFourierStructure::fUnits, fXmax, fXmin, PFourier::GetImaginaryFourier(), PFourier::GetPhaseFourier(), PFourier::GetPowerFourier(), PFourier::GetRealFourier(), PFourier::IsValid(), MSR_PLOT_NON_MUSR, PV_FOURIER_PHASE_OPT_REAL, and PFourier::Transform().
Referenced by HandleCmdKey(), HandleMenuPopup(), and UpdateDataTheoryPad().
|
privatevirtual |
Handles the calculation of the difference of the Fourier spectra. It allocates the necessary objects if they are not already present. At the end it calls the plotting routine.
Definition at line 3534 of file PMusrCanvas.cpp.
References fData, fPlotType, and MSR_PLOT_NON_MUSR.
Referenced by HandleCmdKey(), and HandleMenuPopup().
|
virtual |
Handles the Musrfit menu.
id | identification key of the selected menu |
Definition at line 1168 of file PMusrCanvas.cpp.
References CalcPhaseOptReFT(), CleanupAverage(), CleanupDifference(), CleanupFourier(), CleanupFourierDifference(), DecrementFourierPhase(), ExportData(), fAveragedView, fBatchMode, fCurrentPlotView, fData, fDifferenceView, fImp, fPlotNumber, fPopupFourier, fPopupMain, fPreviousPlotView, gFiletypes, HandleAverage(), HandleDifference(), HandleDifferenceFourier(), HandleFourier(), HandleFourierDifference(), IncrementFourierPhase(), P_MENU_ID_AVERAGE, P_MENU_ID_DATA, P_MENU_ID_DIFFERENCE, P_MENU_ID_EXPORT_DATA, P_MENU_ID_FOURIER, P_MENU_ID_FOURIER_IMAG, P_MENU_ID_FOURIER_PHASE, P_MENU_ID_FOURIER_PHASE_MINUS, P_MENU_ID_FOURIER_PHASE_OPT_REAL, P_MENU_ID_FOURIER_PHASE_PLUS, P_MENU_ID_FOURIER_PWR, P_MENU_ID_FOURIER_REAL, P_MENU_ID_FOURIER_REAL_AND_IMAG, P_MENU_PLOT_OFFSET, PlotAverage(), PlotData(), PlotDifference(), PlotFourier(), PlotFourierDifference(), PV_DATA, PV_FOURIER_IMAG, PV_FOURIER_PHASE, PV_FOURIER_PHASE_OPT_REAL, PV_FOURIER_PWR, PV_FOURIER_REAL, and PV_FOURIER_REAL_AND_IMAG.
|
privatevirtual |
Generates the necessary error graphs for plotting, starting from the pre-processed data.
plotNo | The number of the histo within the run list (fPlotNumber is the number of the plot BLOCK) |
runNo | The number of the run |
data | pre-processed data |
Definition at line 3037 of file PMusrCanvas.cpp.
References PMusrCanvasNonMusrDataSet::data, PMusrCanvasNonMusrDataSet::dataRange, PMusrCanvasNonMusrDataSet::diffFourierTag, fColorList, fMarkerList, fMsrHandler, fNonMusrData, fPlotNumber, fXmax, fXmin, fXRangePresent, fYmax, fYmin, fYRangePresent, PRunData::GetError(), PMsrHandler::GetMsrPlotList(), PMsrHandler::GetMsrRunList(), PRunData::GetTheory(), PRunData::GetValue(), PRunData::GetX(), PMusrCanvasPlotRange::GetXmax(), PMusrCanvasPlotRange::GetXmin(), PRunData::GetXTheory(), PMusrCanvasPlotRange::GetYmax(), PMusrCanvasPlotRange::GetYmin(), InitDataSet(), PMusrCanvasPlotRange::SetXRange(), PMusrCanvasPlotRange::SetYRange(), and PMusrCanvasNonMusrDataSet::theory.
Referenced by UpdateDataTheoryPad().
|
privatevirtual |
Increments the Fourier phase and recalculate the real/imaginary part of the Fourier transform.
Definition at line 6244 of file PMusrCanvas.cpp.
References fCurrentFourierPhase, fCurrentPlotView, fData, fFourier, PMsrFourierStructure::fPhaseIncrement, PlotFourierPhaseValue(), and PV_FOURIER_PWR.
Referenced by HandleCmdKey(), and HandleMenuPopup().
|
privatevirtual |
Initializes the Average structure.
Definition at line 2275 of file PMusrCanvas.cpp.
References PMusrCanvasDataSet::data, PMusrCanvasDataSet::dataFourierIm, PMusrCanvasDataSet::dataFourierPhase, PMusrCanvasDataSet::dataFourierPhaseOptReal, PMusrCanvasDataSet::dataFourierPwr, PMusrCanvasDataSet::dataFourierRe, PMusrCanvasDataSet::dataRange, PMusrCanvasDataSet::diff, PMusrCanvasDataSet::diffFourierIm, PMusrCanvasDataSet::diffFourierPhase, PMusrCanvasDataSet::diffFourierPhaseOptReal, PMusrCanvasDataSet::diffFourierPwr, PMusrCanvasDataSet::diffFourierRe, PMusrCanvasDataSet::diffFourierTag, fDataAvg, PMusrCanvasDataSet::theory, PMusrCanvasDataSet::theoryFourierIm, PMusrCanvasDataSet::theoryFourierPhase, PMusrCanvasDataSet::theoryFourierPhaseOptReal, PMusrCanvasDataSet::theoryFourierPwr, and PMusrCanvasDataSet::theoryFourierRe.
Referenced by ClassImpQ(), and PMusrCanvas().
|
privatevirtual |
Initializes the data set (histogram representation).
dataSet | data set to be initialized |
Definition at line 2421 of file PMusrCanvas.cpp.
References PMusrCanvasDataSet::data, PMusrCanvasDataSet::dataFourierIm, PMusrCanvasDataSet::dataFourierPhase, PMusrCanvasDataSet::dataFourierPhaseOptReal, PMusrCanvasDataSet::dataFourierPwr, PMusrCanvasDataSet::dataFourierRe, PMusrCanvasDataSet::dataRange, PMusrCanvasDataSet::diff, PMusrCanvasDataSet::diffFourierIm, PMusrCanvasDataSet::diffFourierPhase, PMusrCanvasDataSet::diffFourierPhaseOptReal, PMusrCanvasDataSet::diffFourierPwr, PMusrCanvasDataSet::diffFourierRe, PMusrCanvasDataSet::theory, PMusrCanvasDataSet::theoryFourierIm, PMusrCanvasDataSet::theoryFourierPhase, PMusrCanvasDataSet::theoryFourierPhaseOptReal, PMusrCanvasDataSet::theoryFourierPwr, and PMusrCanvasDataSet::theoryFourierRe.
Referenced by HandleDataSet(), and HandleNonMusrDataSet().
|
privatevirtual |
Initializes the data set (error graph representation).
dataSet | data set to be initialized |
Definition at line 2452 of file PMusrCanvas.cpp.
References PMusrCanvasNonMusrDataSet::data, PMusrCanvasNonMusrDataSet::dataFourierIm, PMusrCanvasNonMusrDataSet::dataFourierPhase, PMusrCanvasNonMusrDataSet::dataFourierPwr, PMusrCanvasNonMusrDataSet::dataFourierRe, PMusrCanvasNonMusrDataSet::dataRange, PMusrCanvasNonMusrDataSet::diff, PMusrCanvasNonMusrDataSet::diffFourierIm, PMusrCanvasNonMusrDataSet::diffFourierPhase, PMusrCanvasNonMusrDataSet::diffFourierPwr, PMusrCanvasNonMusrDataSet::diffFourierRe, PMusrCanvasNonMusrDataSet::theory, PMusrCanvasNonMusrDataSet::theoryFourierIm, PMusrCanvasNonMusrDataSet::theoryFourierPhase, PMusrCanvasNonMusrDataSet::theoryFourierPwr, and PMusrCanvasNonMusrDataSet::theoryFourierRe.
|
privatevirtual |
Initializes the Fourier structure.
Definition at line 2253 of file PMusrCanvas.cpp.
References PMsrFourierStructure::fApodization, fFourier, PMsrFourierStructure::fFourierBlockPresent, PMsrFourierStructure::fFourierPower, FOURIER_APOD_NONE, FOURIER_PLOT_REAL_AND_IMAG, FOURIER_UNIT_GAUSS, PMsrFourierStructure::fPhase, PMsrFourierStructure::fPhaseIncrement, PMsrFourierStructure::fPhaseParamNo, PMsrFourierStructure::fPlotRange, PMsrFourierStructure::fPlotTag, PMsrFourierStructure::fRangeForPhaseCorrection, and PMsrFourierStructure::fUnits.
Referenced by ClassImpQ(), and PMusrCanvas().
|
privatevirtual |
Initialize the class, and sets up the necessary objects.
title | Title to be displayed |
wtopx | top x coordinate (in pixels) to place the canvas. |
wtopy | top y coordinate (in pixels) to place the canvas. |
ww | width (in pixels) of the canvas. |
wh | height (in pixels) of the canvas. |
Definition at line 2311 of file PMusrCanvas.cpp.
References fAveragedView, fBar, fBatchMode, fCurrentPlotView, fDataTheoryPad, fDifferenceView, fImp, fInfoPad, fMainCanvas, fParameterPad, fPlotNumber, fPlotType, fPopupFourier, fPopupMain, fPreviousPlotView, fScaleN0AndBkg, fTheoryPad, fTitlePad, fToggleColor, fValid, P_MENU_ID_AVERAGE, P_MENU_ID_DATA, P_MENU_ID_DIFFERENCE, P_MENU_ID_EXPORT_DATA, P_MENU_ID_FOURIER, P_MENU_ID_FOURIER_IMAG, P_MENU_ID_FOURIER_PHASE, P_MENU_ID_FOURIER_PHASE_MINUS, P_MENU_ID_FOURIER_PHASE_OPT_REAL, P_MENU_ID_FOURIER_PHASE_PLUS, P_MENU_ID_FOURIER_PWR, P_MENU_ID_FOURIER_REAL, P_MENU_ID_FOURIER_REAL_AND_IMAG, P_MENU_PLOT_OFFSET, PV_DATA, XTHEO, YINFO, and YTITLE.
Referenced by PMusrCanvas().
|
privatevirtual |
Checks if N0/Bkg normalization to 1/ns is whished. The default is yes, since most of the users want to have it that way. To overwrite this, one should add the line 'SCALE_N0_BKG FALSE' to the command block of the msr-file.
return:
histoNo | forward histogram number of the run |
Definition at line 6358 of file PMusrCanvas.cpp.
References fMsrHandler, and PMsrHandler::GetMsrCommands().
Referenced by SetMsrHandler().
|
inlinevirtual |
|
virtual |
Slot called when the last canvas has been closed. Will emit Done(0) which will terminate the application.
Definition at line 1443 of file PMusrCanvas.cpp.
References Done().
Referenced by WindowClosed().
|
privatevirtual |
Plot the average of the given data sets.
unzoom | if true, rescale to the original average range. |
Definition at line 6017 of file PMusrCanvas.cpp.
References PMusrCanvasDataSet::data, PMusrCanvasDataSet::dataFourierIm, PMusrCanvasDataSet::dataFourierPhase, PMusrCanvasDataSet::dataFourierPhaseOptReal, PMusrCanvasDataSet::dataFourierPwr, PMusrCanvasDataSet::dataFourierRe, PMusrCanvasDataSet::diff, PMusrCanvasDataSet::diffFourierIm, PMusrCanvasDataSet::diffFourierPhase, PMusrCanvasDataSet::diffFourierPhaseOptReal, PMusrCanvasDataSet::diffFourierPwr, PMusrCanvasDataSet::diffFourierRe, fCurrentPlotView, fData, fDataAvg, fDataTheoryPad, fDifferenceView, fFourier, fHistoFrame, fMainCanvas, fMsrHandler, FOURIER_UNIT_CYCLES, FOURIER_UNIT_FREQ, FOURIER_UNIT_GAUSS, FOURIER_UNIT_TESLA, fPlotType, fRRFLatexText, fRRFText, fScaleN0AndBkg, PMsrFourierStructure::fUnits, PMsrHandler::GetMsrRunList(), MSR_PLOT_ASYM, MSR_PLOT_BNMR, MSR_PLOT_MU_MINUS, MSR_PLOT_SINGLE_HISTO, PV_DATA, PV_FOURIER_IMAG, PV_FOURIER_PHASE, PV_FOURIER_PHASE_OPT_REAL, PV_FOURIER_PWR, PV_FOURIER_REAL, PV_FOURIER_REAL_AND_IMAG, PMusrCanvasDataSet::theory, PMusrCanvasDataSet::theoryFourierIm, PMusrCanvasDataSet::theoryFourierPhase, PMusrCanvasDataSet::theoryFourierPhaseOptReal, PMusrCanvasDataSet::theoryFourierPwr, and PMusrCanvasDataSet::theoryFourierRe.
Referenced by HandleCmdKey(), and HandleMenuPopup().
|
privatevirtual |
Plots the data.
unzoom | if true, rescale to the original msr-file ranges |
Definition at line 4516 of file PMusrCanvas.cpp.
References fBatchMode, fData, fDataTheoryPad, fHistoFrame, fMainCanvas, fMsrHandler, fMultiGraphData, fMultiGraphDiff, fMultiGraphLegend, fNonMusrData, fPlotNumber, fPlotType, fPopupFourier, fPreviousPlotView, fRRFLatexText, fRRFText, fRunList, PMsrPlotStructure::fRuns, fScaleN0AndBkg, fXmax, fXmin, fYmax, fYmin, fYRangePresent, GetMaximum(), GetMinimum(), PMsrHandler::GetMsrPlotList(), PMsrHandler::GetMsrRunList(), PRunListCollection::GetXAxisTitle(), PRunListCollection::GetYAxisTitle(), MSR_PLOT_ASYM, MSR_PLOT_ASYM_RRF, MSR_PLOT_BNMR, MSR_PLOT_MU_MINUS, MSR_PLOT_NON_MUSR, MSR_PLOT_SINGLE_HISTO, MSR_PLOT_SINGLE_HISTO_RRF, and PV_DATA.
Referenced by HandleCmdKey(), HandleMenuPopup(), and UpdateDataTheoryPad().
|
privatevirtual |
Plots the difference data, i.e. data-theory
unzoom | if true, rescale to the original msr-file ranges |
Definition at line 4832 of file PMusrCanvas.cpp.
References fData, fDataTheoryPad, fHistoFrame, fMainCanvas, fMsrHandler, fMultiGraphData, fMultiGraphDiff, fMultiGraphLegend, fNonMusrData, fPlotNumber, fPlotType, fPreviousPlotView, fRRFLatexText, fRRFText, fRunList, PMsrPlotStructure::fRuns, fXmax, fXmin, GetMaximum(), GetMinimum(), PMsrHandler::GetMsrPlotList(), PMsrHandler::GetMsrRunList(), PRunListCollection::GetXAxisTitle(), MSR_PLOT_BNMR, MSR_PLOT_NON_MUSR, and PV_DATA.
Referenced by HandleCmdKey(), and HandleMenuPopup().
|
privatevirtual |
Plot the Fourier spectra.
unzoom | if true, rescale to the original Fourier range |
Definition at line 5043 of file PMusrCanvas.cpp.
References fCurrentPlotView, fData, fDataTheoryPad, fFourier, fHistoFrame, fMainCanvas, fMsrHandler, FOURIER_UNIT_CYCLES, FOURIER_UNIT_FREQ, FOURIER_UNIT_GAUSS, FOURIER_UNIT_TESLA, fPlotNumber, PMsrFourierStructure::fPlotRange, fPlotType, fRRFLatexText, fRRFText, PMsrFourierStructure::fUnits, GetMaximum(), GetMinimum(), PMsrHandler::GetMsrPlotList(), PlotFourierPhaseValue(), PV_FOURIER_IMAG, PV_FOURIER_PHASE, PV_FOURIER_PHASE_OPT_REAL, PV_FOURIER_PWR, PV_FOURIER_REAL, and PV_FOURIER_REAL_AND_IMAG.
Referenced by HandleCmdKey(), HandleMenuPopup(), and UpdateDataTheoryPad().
|
privatevirtual |
Plot the Fourier difference, i.e. F(data)-F(theory).
unzoom | if true, rescale to the original Fourier range |
Definition at line 5591 of file PMusrCanvas.cpp.
References fCurrentPlotView, fData, fDataTheoryPad, fFourier, fHistoFrame, fMainCanvas, fMsrHandler, FOURIER_UNIT_CYCLES, FOURIER_UNIT_FREQ, FOURIER_UNIT_GAUSS, FOURIER_UNIT_TESLA, fPlotNumber, PMsrFourierStructure::fPlotRange, fPlotType, fRRFLatexText, fRRFText, PMsrFourierStructure::fUnits, GetMaximum(), GetMinimum(), PMsrHandler::GetMsrPlotList(), PlotFourierPhaseValue(), PV_FOURIER_IMAG, PV_FOURIER_PHASE, PV_FOURIER_PHASE_OPT_REAL, PV_FOURIER_PWR, PV_FOURIER_REAL, and PV_FOURIER_REAL_AND_IMAG.
Referenced by HandleCmdKey(), and HandleMenuPopup().
|
privatevirtual |
Writes the Fourier phase value into the data window.
unzoom | if true, rescale to the original Fourier range |
Definition at line 5983 of file PMusrCanvas.cpp.
References fCurrentFourierPhase, fCurrentFourierPhaseText, fDataTheoryPad, fFourier, and PMsrFourierStructure::fPhase.
Referenced by DecrementFourierPhase(), IncrementFourierPhase(), PlotFourier(), and PlotFourierDifference().
|
virtual |
Will save the canvas as graphics output. Needed in the batch mode of musrview.
fileName | file name under which the canvas shall be saved. |
graphicsFormat | One of the supported graphics formats. |
Definition at line 1473 of file PMusrCanvas.cpp.
References Done(), fMainCanvas, fMsrHandler, fPlotNumber, fStartWithFourier, and PMsrHandler::GetMsrPlotList().
Referenced by main().
|
virtual |
Keep the msr-handler object pointer and fill the Fourier structure if present.
msrHandler | pointer of the msr-file handler. |
Definition at line 290 of file PMusrCanvas.cpp.
References PMsrFourierStructure::fApodization, PMsrFourierStructure::fDCCorrected, fFourier, PMsrFourierStructure::fFourierBlockPresent, PMsrFourierStructure::fFourierPower, fMsrHandler, FOURIER_APOD_NOT_GIVEN, FOURIER_PLOT_NOT_GIVEN, FOURIER_UNIT_NOT_GIVEN, PMsrFourierStructure::fPhase, PMsrFourierStructure::fPlotRange, PMsrFourierStructure::fPlotTag, PMsrFourierStructure::fRangeForPhaseCorrection, fRRFLatexText, fRRFText, fScaleN0AndBkg, PMsrFourierStructure::fUnits, PMsrHandler::GetMsrFourierList(), PMsrHandler::GetMsrGlobal(), PMsrHandler::GetMsrPlotList(), PMsrGlobalBlock::GetRRFFreq(), PMsrGlobalBlock::GetRRFPacking(), PMsrGlobalBlock::GetRRFUnit(), PMsrGlobalBlock::GetRRFUnitTag(), IsScaleN0AndBkg(), RRF_UNIT_G, RRF_UNIT_kHz, RRF_UNIT_Mcs, RRF_UNIT_MHz, and RRF_UNIT_T.
Referenced by main().
|
inlinevirtual |
|
virtual |
timeout | after which the done signal shall be emitted. Given in seconds |
Definition at line 408 of file PMusrCanvas.cpp.
References fTimeout, fTimeoutTimer, and timeout.
Referenced by main().
|
virtual |
Feeds the pad with data/theory histograms (error graphs) and refreshes it.
Definition at line 551 of file PMusrCanvas.cpp.
References fBatchMode, fCurrentPlotView, fFourier, fMsrHandler, FOURIER_PLOT_IMAG, FOURIER_PLOT_PHASE, FOURIER_PLOT_PHASE_OPT_REAL, FOURIER_PLOT_POWER, FOURIER_PLOT_REAL, FOURIER_PLOT_REAL_AND_IMAG, fPlotNumber, PMsrFourierStructure::fPlotTag, fPlotType, PMsrPlotStructure::fPlotType, fPopupFourier, fPopupMain, fRunList, PMsrPlotStructure::fRuns, fStartWithAvg, fStartWithFourier, fValid, PRunListCollection::GetAsymmetry(), PRunListCollection::GetAsymmetryBNMR(), PRunListCollection::GetAsymmetryRRF(), PMsrGlobalBlock::GetFitType(), PMsrHandler::GetMsrGlobal(), PMsrHandler::GetMsrPlotList(), PMsrHandler::GetMsrRunList(), PRunListCollection::GetMuMinus(), PRunListCollection::GetNonMusr(), PRunListCollection::GetSingleHisto(), PRunListCollection::GetSingleHistoRRF(), HandleCmdKey(), HandleDataSet(), HandleFourier(), HandleNonMusrDataSet(), if(), PRunListCollection::kRunNo, MSR_FITTYPE_ASYM, MSR_FITTYPE_ASYM_RRF, MSR_FITTYPE_BNMR, MSR_FITTYPE_MU_MINUS, MSR_FITTYPE_NON_MUSR, MSR_FITTYPE_SINGLE_HISTO, MSR_FITTYPE_SINGLE_HISTO_RRF, MSR_PLOT_NON_MUSR, P_MENU_ID_DATA, P_MENU_ID_FOURIER, P_MENU_ID_FOURIER_IMAG, P_MENU_ID_FOURIER_PHASE, P_MENU_ID_FOURIER_PHASE_MINUS, P_MENU_ID_FOURIER_PHASE_OPT_REAL, P_MENU_ID_FOURIER_PHASE_PLUS, P_MENU_ID_FOURIER_PWR, P_MENU_ID_FOURIER_REAL, P_MENU_ID_FOURIER_REAL_AND_IMAG, P_MENU_PLOT_OFFSET, PlotData(), PlotFourier(), PV_FOURIER_IMAG, PV_FOURIER_PHASE, PV_FOURIER_PHASE_OPT_REAL, PV_FOURIER_PWR, PV_FOURIER_REAL, and PV_FOURIER_REAL_AND_IMAG.
Referenced by main().
|
virtual |
Feeds the pad with the statistics block information and the legend and refreshes it.
Definition at line 776 of file PMusrCanvas.cpp.
References PMsrStatisticStructure::fChisq, fData, PMsrStatisticStructure::fDate, fInfoPad, fMainCanvas, PMsrStatisticStructure::fMin, fMsrHandler, PMsrStatisticStructure::fNdf, fPlotNumber, fRunList, PMsrPlotStructure::fRuns, fValid, PRunListCollection::GetEnergy(), PRunListCollection::GetField(), PMsrHandler::GetGroupingString(), PMsrHandler::GetMsrPlotList(), PMsrHandler::GetMsrRunList(), PMsrHandler::GetMsrStatistic(), PRunListCollection::GetSetup(), PRunListCollection::GetTemp(), if(), MSR_FITTYPE_ASYM, MSR_FITTYPE_ASYM_RRF, MSR_FITTYPE_BNMR, MSR_FITTYPE_SINGLE_HISTO, MSR_FITTYPE_SINGLE_HISTO_RRF, and PMUSR_UNDEFINED.
Referenced by main().
|
virtual |
Feeds the pad with the fit parameter informations, and refreshes the pad.
Definition at line 428 of file PMusrCanvas.cpp.
References fMainCanvas, fMsrHandler, fParameterPad, fTheoryPad, fValid, PMsrHandler::GetMsrFunctions(), PMsrHandler::GetMsrParamList(), PMsrHandler::GetMsrTheory(), and GetNeededAccuracy().
Referenced by main().
|
virtual |
Slot called when the canvas is closed. Seems to be necessary on some systems.
Definition at line 1457 of file PMusrCanvas.cpp.
References fMainCanvas, and LastCanvasClosed().
|
private |
tag showing that the averaged view or normal view should be presented.
Definition at line 246 of file PMusrCanvas.h.
Referenced by ClassImpQ(), ExportData(), HandleCmdKey(), HandleMenuPopup(), InitMusrCanvas(), and PMusrCanvas().
|
private |
menu bar
Definition at line 268 of file PMusrCanvas.h.
Referenced by ClassImpQ(), and InitMusrCanvas().
|
private |
musrview in ROOT batch mode
Definition at line 244 of file PMusrCanvas.h.
Referenced by HandleCmdKey(), HandleMenuPopup(), InitMusrCanvas(), PlotData(), and UpdateDataTheoryPad().
|
private |
list of colors
Definition at line 297 of file PMusrCanvas.h.
Referenced by HandleCmdKey(), HandleDataSet(), and HandleNonMusrDataSet().
|
private |
holds the current Fourier phase(s)
Definition at line 257 of file PMusrCanvas.h.
Referenced by DecrementFourierPhase(), HandleDifferenceFourier(), HandleFourier(), IncrementFourierPhase(), and PlotFourierPhaseValue().
|
private |
used in Re/Im Fourier to show the current phase in the pad
Definition at line 258 of file PMusrCanvas.h.
Referenced by PlotFourierPhaseValue().
|
private |
tag showing what the current plot view is: data, fourier, ...
Definition at line 249 of file PMusrCanvas.h.
Referenced by ClassImpQ(), DecrementFourierPhase(), ExportData(), HandleCmdKey(), HandleFourier(), HandleMenuPopup(), IncrementFourierPhase(), InitMusrCanvas(), PlotAverage(), PlotFourier(), PlotFourierDifference(), and UpdateDataTheoryPad().
|
private |
list of all histogram data to be plotted (asymmetry/single histogram)
Definition at line 290 of file PMusrCanvas.h.
Referenced by CalcPhaseOptReFT(), CleanupDifference(), CleanupFourier(), CleanupFourierDifference(), DecrementFourierPhase(), ExportData(), HandleAverage(), HandleCmdKey(), HandleDataSet(), HandleDifference(), HandleDifferenceFourier(), HandleFourier(), HandleFourierDifference(), HandleMenuPopup(), IncrementFourierPhase(), PlotAverage(), PlotData(), PlotDifference(), PlotFourier(), PlotFourierDifference(), UpdateInfoPad(), and ~PMusrCanvas().
|
private |
set of all averaged data to be plotted (asymmetry/single histogram)
Definition at line 288 of file PMusrCanvas.h.
Referenced by CleanupAverage(), ExportData(), HandleAverage(), InitAverage(), and PlotAverage().
|
private |
data/theory pad used to display the data/theory
Definition at line 275 of file PMusrCanvas.h.
Referenced by HandleCmdKey(), InitMusrCanvas(), PlotAverage(), PlotData(), PlotDifference(), PlotFourier(), PlotFourierDifference(), and PlotFourierPhaseValue().
|
private |
tag showing that the shown data, fourier, are the difference between data and theory
Definition at line 247 of file PMusrCanvas.h.
Referenced by ClassImpQ(), ExportData(), HandleCmdKey(), HandleMenuPopup(), InitMusrCanvas(), and PlotAverage().
|
private |
structure holding all the information necessary to perform the Fourier transform
Definition at line 295 of file PMusrCanvas.h.
Referenced by CalcPhaseOptReFT(), DecrementFourierPhase(), HandleCmdKey(), HandleDifferenceFourier(), HandleFourier(), IncrementFourierPhase(), InitFourier(), PlotAverage(), PlotFourier(), PlotFourierDifference(), PlotFourierPhaseValue(), SetMsrHandler(), and UpdateDataTheoryPad().
|
private |
fHistoFrame is a 'global' frame needed in order to plot histograms with (potentially) different x-frames
Definition at line 281 of file PMusrCanvas.h.
Referenced by ClassImpQ(), ExportData(), HandleDifferenceFourier(), HandleFourier(), PlotAverage(), PlotData(), PlotDifference(), PlotFourier(), PlotFourierDifference(), and PMusrCanvas().
|
private |
ROOT native GUI version of main window with menubar and drawing area.
Definition at line 267 of file PMusrCanvas.h.
Referenced by ClassImpQ(), HandleMenuPopup(), and InitMusrCanvas().
|
private |
info pad used to display a legend of the data plotted
Definition at line 278 of file PMusrCanvas.h.
Referenced by InitMusrCanvas(), and UpdateInfoPad().
|
private |
main canvas
Definition at line 273 of file PMusrCanvas.h.
Referenced by HandleCmdKey(), InitMusrCanvas(), PlotAverage(), PlotData(), PlotDifference(), PlotFourier(), PlotFourierDifference(), SaveGraphicsAndQuit(), UpdateInfoPad(), UpdateParamTheoryPad(), and WindowClosed().
|
private |
list of markers
Definition at line 296 of file PMusrCanvas.h.
Referenced by HandleDataSet(), and HandleNonMusrDataSet().
|
private |
msr-file handler
Definition at line 284 of file PMusrCanvas.h.
Referenced by CalcPhaseOptReFT(), HandleDataSet(), HandleNonMusrDataSet(), IsScaleN0AndBkg(), PlotAverage(), PlotData(), PlotDifference(), PlotFourier(), PlotFourierDifference(), SaveGraphicsAndQuit(), SetMsrHandler(), UpdateDataTheoryPad(), UpdateInfoPad(), and UpdateParamTheoryPad().
|
private |
fMultiGraphData is a 'global' graph needed in order to plot error graphs (data) with (potentially) different x-frames
Definition at line 292 of file PMusrCanvas.h.
Referenced by ClassImpQ(), ExportData(), PlotData(), PlotDifference(), PMusrCanvas(), and ~PMusrCanvas().
|
private |
fMultiGraphDiff is a 'global' graph needed in order to plot error graphs (data-theory) with (potentially) different x-frames
Definition at line 293 of file PMusrCanvas.h.
Referenced by ClassImpQ(), PlotData(), PlotDifference(), PMusrCanvas(), and ~PMusrCanvas().
|
private |
used for non-muSR plots to display a legend
Definition at line 279 of file PMusrCanvas.h.
Referenced by PlotData(), and PlotDifference().
|
private |
list of all error graphs to be plotted (non-muSR)
Definition at line 291 of file PMusrCanvas.h.
Referenced by ExportData(), HandleDifference(), HandleNonMusrDataSet(), PlotData(), PlotDifference(), and ~PMusrCanvas().
|
private |
parameter pad used to display the fitting parameters
Definition at line 276 of file PMusrCanvas.h.
Referenced by InitMusrCanvas(), and UpdateParamTheoryPad().
|
private |
plot number
Definition at line 252 of file PMusrCanvas.h.
Referenced by ClassImpQ(), CreateStyle(), HandleCmdKey(), HandleDataSet(), HandleMenuPopup(), HandleNonMusrDataSet(), InitMusrCanvas(), PlotData(), PlotDifference(), PlotFourier(), PlotFourierDifference(), SaveGraphicsAndQuit(), UpdateDataTheoryPad(), and UpdateInfoPad().
|
private |
plot type tag: -1 == undefined, MSR_PLOT_SINGLE_HISTO == single histogram, MSR_PLOT_ASYM == asymmetry, MSR_PLOT_BNMR == beta-NMR asymmetry, MSR_PLOT_MU_MINUS == mu minus (not yet implemented), MSR_PLOT_NON_MUSR == non-muSR
Definition at line 251 of file PMusrCanvas.h.
Referenced by ClassImpQ(), ExportData(), HandleAverage(), HandleDifference(), HandleDifferenceFourier(), HandleFourier(), HandleFourierDifference(), InitMusrCanvas(), PlotAverage(), PlotData(), PlotDifference(), PlotFourier(), PlotFourierDifference(), and UpdateDataTheoryPad().
|
private |
popup menu of the Musrfit/Fourier sub menu
Definition at line 270 of file PMusrCanvas.h.
Referenced by HandleCmdKey(), HandleMenuPopup(), InitMusrCanvas(), PlotData(), and UpdateDataTheoryPad().
|
private |
popup menu Musrfit in the main menu bar
Definition at line 269 of file PMusrCanvas.h.
Referenced by ClassImpQ(), HandleCmdKey(), HandleMenuPopup(), InitMusrCanvas(), and UpdateDataTheoryPad().
|
private |
tag showing the previous plot view
Definition at line 250 of file PMusrCanvas.h.
Referenced by ClassImpQ(), HandleCmdKey(), HandleMenuPopup(), InitMusrCanvas(), PlotData(), and PlotDifference().
|
private |
used to display RRF info
Definition at line 260 of file PMusrCanvas.h.
Referenced by PlotAverage(), PlotData(), PlotDifference(), PlotFourier(), PlotFourierDifference(), and SetMsrHandler().
|
private |
RRF information.
Definition at line 259 of file PMusrCanvas.h.
Referenced by PlotAverage(), PlotData(), PlotDifference(), PlotFourier(), PlotFourierDifference(), and SetMsrHandler().
|
private |
data handler
Definition at line 285 of file PMusrCanvas.h.
Referenced by PlotData(), PlotDifference(), SetRunListCollection(), UpdateDataTheoryPad(), and UpdateInfoPad().
|
private |
true=N0 and background is scaled to (1/ns), otherwise (1/bin) for the single histogram case
Definition at line 243 of file PMusrCanvas.h.
Referenced by ClassImpQ(), InitMusrCanvas(), PlotAverage(), PlotData(), and SetMsrHandler().
|
private |
flag if true, the averaged data/Fourier will be presented
Definition at line 241 of file PMusrCanvas.h.
Referenced by HandleCmdKey(), and UpdateDataTheoryPad().
|
private |
flag if true, the Fourier transform will be presented bypassing the time domain representation
Definition at line 240 of file PMusrCanvas.h.
Referenced by HandleFourier(), SaveGraphicsAndQuit(), and UpdateDataTheoryPad().
|
private |
A collection of all graphics attributes.
Definition at line 262 of file PMusrCanvas.h.
Referenced by CreateStyle().
|
private |
flag if true, calculate theory points only at the data points
Definition at line 239 of file PMusrCanvas.h.
Referenced by HandleFourier().
|
private |
theory pad used to display the theory and functions
Definition at line 277 of file PMusrCanvas.h.
Referenced by InitMusrCanvas(), and UpdateParamTheoryPad().
|
private |
timeout after which the Done signal should be emited. If timeout <= 0, no timeout is taking place
Definition at line 242 of file PMusrCanvas.h.
Referenced by ClassImpQ(), PMusrCanvas(), and SetTimeout().
|
private |
timeout timer in order to terminate if no action is taking place for too long
Definition at line 264 of file PMusrCanvas.h.
Referenced by SetTimeout().
|
private |
title pad used to display a title
Definition at line 274 of file PMusrCanvas.h.
Referenced by InitMusrCanvas().
|
private |
tag showing if a single histo theory is color toggled
Definition at line 248 of file PMusrCanvas.h.
Referenced by ClassImpQ(), HandleCmdKey(), and InitMusrCanvas().
|
private |
if true, everything looks OK
Definition at line 245 of file PMusrCanvas.h.
Referenced by ClassImpQ(), InitMusrCanvas(), IsValid(), UpdateDataTheoryPad(), UpdateInfoPad(), and UpdateParamTheoryPad().
|
private |
Definition at line 255 of file PMusrCanvas.h.
Referenced by ClassImpQ(), HandleDataSet(), HandleFourier(), HandleNonMusrDataSet(), PlotData(), PlotDifference(), and PMusrCanvas().
|
private |
Definition at line 255 of file PMusrCanvas.h.
Referenced by ClassImpQ(), HandleDataSet(), HandleFourier(), HandleNonMusrDataSet(), PlotData(), PlotDifference(), and PMusrCanvas().
|
private |
Definition at line 254 of file PMusrCanvas.h.
Referenced by ClassImpQ(), HandleDataSet(), HandleNonMusrDataSet(), and PMusrCanvas().
|
private |
data/theory frame range
Definition at line 255 of file PMusrCanvas.h.
Referenced by ClassImpQ(), HandleDataSet(), HandleNonMusrDataSet(), PlotData(), and PMusrCanvas().
|
private |
Definition at line 255 of file PMusrCanvas.h.
Referenced by ClassImpQ(), HandleDataSet(), HandleNonMusrDataSet(), PlotData(), and PMusrCanvas().
|
private |
flag indicating if x-/y-range is present
Definition at line 254 of file PMusrCanvas.h.
Referenced by ClassImpQ(), HandleDataSet(), HandleNonMusrDataSet(), PlotData(), and PMusrCanvas().