|
musrfit 1.10.0
|
ROOT-based canvas for interactive visualization of muSR data and fits. More...
#include <PMusrCanvas.h>


Public Member Functions | |
| PMusrCanvas () | |
| Default constructor. | |
| 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) | |
| Basic constructor for canvas without custom markers/colors. | |
| 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) | |
| Full constructor with Fourier defaults and custom markers/colors. | |
| virtual | ~PMusrCanvas () |
| Destructor - cleans up all histograms, graphs, and ROOT objects. | |
| virtual Bool_t | IsValid () |
| Returns true if canvas initialized successfully. | |
| virtual void | SetMsrHandler (PMsrHandler *msrHandler) |
| Sets the MSR file handler for accessing fit parameters and configuration. | |
| virtual void | SetRunListCollection (PRunListCollection *runList) |
| Sets the run list collection for accessing fit data and results. | |
| virtual void | SetTimeout (Int_t ival) |
| Sets timeout in seconds after which Done signal is emitted (0=no timeout) | |
| virtual void | UpdateParamTheoryPad () |
| Updates parameter and theory display pads with current fit results. | |
| virtual void | UpdateDataTheoryPad () |
| Updates main data/theory plotting pad. | |
| virtual void | UpdateInfoPad () |
| Updates info/legend pad with run information. | |
| virtual void | Done (Int_t status=0) |
| ROOT signal emitted when canvas is closed or timeout occurs. | |
| virtual void | HandleCmdKey (Int_t event, Int_t x, Int_t y, TObject *selected) |
| ROOT slot handling keyboard commands (e.g., 'f' for Fourier, 'd' for data) | |
| virtual void | HandleMenuPopup (Int_t id) |
| ROOT slot handling menu selections. | |
| virtual void | LastCanvasClosed () |
| ROOT slot called when this is the last canvas being closed. | |
| virtual void | WindowClosed () |
| ROOT slot called when canvas window is closed. | |
| virtual void | SaveGraphicsAndQuit (Char_t *fileName, Char_t *graphicsFormat) |
| Saves canvas to graphics file and emits Done signal. | |
| virtual void | ExportData (const Char_t *fileName) |
| Exports displayed data to ASCII file. | |
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. | |
| 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 | |
| Bool_t | fStartWithFourier |
| flag if true, the Fourier transform will be presented bypassing the time domain representation | |
| Bool_t | fStartWithAvg |
| flag if true, the averaged data/Fourier will be presented | |
| Int_t | fTimeout |
| timeout after which the Done signal should be emited. If timeout <= 0, no timeout is taking place | |
| Bool_t | fScaleN0AndBkg |
| true=N0 and background is scaled to (1/ns), otherwise (1/bin) for the single histogram case | |
| Bool_t | fBatchMode |
| musrview in ROOT batch mode | |
| Bool_t | fValid |
| if true, everything looks OK | |
| Bool_t | fAveragedView |
| tag showing that the averaged view or normal view should be presented. | |
| Bool_t | fDifferenceView |
| tag showing that the shown data, fourier, are the difference between data and theory | |
| Bool_t | fToggleColor |
| tag showing if a single histo theory is color toggled | |
| Int_t | fCurrentPlotView |
| tag showing what the current plot view is: data, fourier, ... | |
| Int_t | fPreviousPlotView |
| tag showing the previous plot view | |
| 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 | |
| Int_t | fPlotNumber |
| plot number | |
| Bool_t | fXRangePresent |
| Bool_t | fYRangePresent |
| flag indicating if x-/y-range is present | |
| Double_t | fXmin |
| Double_t | fXmax |
| Double_t | fYmin |
| Double_t | fYmax |
| data/theory frame range | |
| PDoubleVector | fCurrentFourierPhase |
| holds the current Fourier phase(s) | |
| std::unique_ptr< TLatex > | fCurrentFourierPhaseText |
| used in Re/Im Fourier to show the current phase in the pad | |
| std::unique_ptr< TString > | fRRFText |
| RRF information. | |
| std::unique_ptr< TLatex > | fRRFLatexText |
| used to display RRF info | |
| std::unique_ptr< TStyle > | fStyle |
| A collection of all graphics attributes. | |
| std::unique_ptr< TTimer > | fTimeoutTimer |
| timeout timer in order to terminate if no action is taking place for too long | |
| TRootCanvas * | fImp |
| ROOT native GUI version of main window with menubar and drawing area. | |
| TGMenuBar * | fBar |
| menu bar | |
| TGPopupMenu * | fPopupMain |
| popup menu Musrfit in the main menu bar | |
| std::unique_ptr< TGPopupMenu > | fPopupFourier |
| popup menu of the Musrfit/Fourier sub menu | |
| std::unique_ptr< TCanvas > | fMainCanvas |
| main canvas | |
| std::unique_ptr< TPaveText > | fTitlePad |
| title pad used to display a title | |
| std::unique_ptr< TPad > | fDataTheoryPad |
| data/theory pad used to display the data/theory | |
| std::unique_ptr< TPaveText > | fParameterPad |
| parameter pad used to display the fitting parameters | |
| std::unique_ptr< TPaveText > | fTheoryPad |
| theory pad used to display the theory and functions | |
| std::unique_ptr< TLegend > | fInfoPad |
| info pad used to display a legend of the data plotted | |
| std::unique_ptr< TLegend > | fMultiGraphLegend |
| used for non-muSR plots to display a legend | |
| TH1F * | fHistoFrame |
| fHistoFrame is a 'global' frame needed in order to plot histograms with (potentially) different x-frames | |
| PMsrHandler * | fMsrHandler |
| msr-file handler | |
| PRunListCollection * | fRunList |
| data handler | |
| PMusrCanvasDataSet | fDataAvg |
| set of all averaged data to be plotted (asymmetry/single histogram) | |
| PMusrCanvasDataList | fData |
| list of all histogram data to be plotted (asymmetry/single histogram) | |
| PMusrCanvasNonMusrDataList | fNonMusrData |
| list of all error graphs to be plotted (non-muSR) | |
| TMultiGraph * | fMultiGraphData |
| fMultiGraphData is a 'global' graph needed in order to plot error graphs (data) with (potentially) different x-frames | |
| TMultiGraph * | fMultiGraphDiff |
| fMultiGraphDiff is a 'global' graph needed in order to plot error graphs (data-theory) with (potentially) different x-frames | |
| PMsrFourierStructure | fFourier |
| structure holding all the information necessary to perform the Fourier transform | |
| PIntVector | fMarkerList |
| list of markers | |
| PIntVector | fColorList |
| list of colors | |
ROOT-based canvas for interactive visualization of muSR data and fits.
PMusrCanvas provides comprehensive visualization capabilities for muSR data analysis:
Display Modes:
Supported Fit Types:
Interactive Features:
Canvas Layout: The canvas is divided into several pads:
Integration:
Definition at line 270 of file PMusrCanvas.h.
| PMusrCanvas::PMusrCanvas | ( | ) |
Default constructor.
| 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 ) |
Basic constructor for canvas without custom markers/colors.
Basic constructor creating canvas with default Fourier settings.
| number | Plot number from MSR file PLOT block |
| title | Canvas title |
| wtopx | X-position of canvas window (pixels) |
| wtopy | Y-position of canvas window (pixels) |
| ww | Canvas width (pixels) |
| wh | Canvas height (pixels) |
| batch | If true, run in batch mode (no GUI) |
| fourier | If true, start with Fourier view instead of time domain |
| avg | If true, start with averaged view |
| theoAsData | If true, calculate theory only at data points |
Creates a functional PMusrCanvas with standard Fourier transform settings and default markers/colors. This is the simpler constructor for cases where custom Fourier parameters or plot styling are not needed.
Initialization sequence:
| number | Plot number from MSR file PLOT block |
| title | Canvas title to display |
| wtopx | Top-left X coordinate of canvas window (pixels) |
| wtopy | Top-left Y coordinate of canvas window (pixels) |
| ww | Canvas width (pixels) |
| wh | Canvas height (pixels) |
| batch | If true, run in batch mode without GUI display (for file export) |
| fourier | If true, start with Fourier view instead of time domain |
| avg | If true, start with averaged data view |
| theoAsData | If true, calculate theory only at data points (faster) |
Definition at line 205 of file PMusrCanvas.cpp.
References CreateStyle(), fAveragedView, fBatchMode, fHistoFrame, fMultiGraphData, fMultiGraphDiff, fPlotNumber, fStartWithAvg, fStartWithFourier, fTheoAsData, 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 ) |
Full constructor with Fourier defaults and custom markers/colors.
Full constructor with custom Fourier settings and plot styling.
| number | Plot number from MSR file PLOT block |
| title | Canvas title |
| wtopx | X-position of canvas window (pixels) |
| wtopy | Y-position of canvas window (pixels) |
| ww | Canvas width (pixels) |
| wh | Canvas height (pixels) |
| fourierDefault | Default Fourier transform parameters |
| markerList | Vector of ROOT marker styles for plots |
| colorList | Vector of ROOT color indices for plots |
| batch | If true, run in batch mode (no GUI) |
| fourier | If true, start with Fourier view instead of time domain |
| avg | If true, start with averaged view |
| theoAsData | If true, calculate theory only at data points |
Creates a PMusrCanvas with user-specified Fourier transform parameters, custom marker styles, and color schemes. This constructor provides maximum control over canvas appearance and behavior.
The marker and color lists allow customization of how multiple datasets appear in plots. Each dataset uses the marker/color at the corresponding index in the provided vectors.
Initialization sequence:
| number | Plot number from MSR file PLOT block |
| title | Canvas title to display |
| wtopx | Top-left X coordinate of canvas window (pixels) |
| wtopy | Top-left Y coordinate of canvas window (pixels) |
| ww | Canvas width (pixels) |
| wh | Canvas height (pixels) |
| fourierDefault | Fourier transform parameters (ranges, apodization, etc.) |
| markerList | Vector of ROOT marker style indices (e.g., 20=circle, 21=square) |
| colorList | Vector of ROOT color indices (e.g., 1=black, 2=red, 4=blue) |
| batch | If true, run in batch mode without GUI display |
| fourier | If true, start with Fourier view |
| avg | If true, start with averaged data view |
| theoAsData | If true, calculate theory only at data points |
Definition at line 271 of file PMusrCanvas.cpp.
References CreateStyle(), fBatchMode, fColorList, fFourier, fHistoFrame, fMarkerList, fMultiGraphData, fMultiGraphDiff, fPlotNumber, fStartWithAvg, fStartWithFourier, fTheoAsData, fTimeout, fXmax, fXmin, fXRangePresent, fYmax, fYmin, fYRangePresent, InitAverage(), and InitMusrCanvas().
|
virtual |
Destructor - cleans up all histograms, graphs, and ROOT objects.
Destructor.
Definition at line 308 of file PMusrCanvas.cpp.
References CleanupDataSet(), fData, fMultiGraphData, fMultiGraphDiff, and fNonMusrData.
|
privatevirtual |
PMusrCanvas::CalcPhaseOptReFT.
Definition at line 4259 of file PMusrCanvas.cpp.
References fData, fFourier, fMsrHandler, and PFourier::GetPhaseOptRealFourier().
Referenced by HandleFourier(), and HandleMenuPopup().
|
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 4344 of file PMusrCanvas.cpp.
References FindBin().
|
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 4324 of file PMusrCanvas.cpp.
Referenced by HandleDifference().
|
privatevirtual |
Cleans up (deallocate) averaged data set.
Definition at line 4177 of file PMusrCanvas.cpp.
References fDataAvg.
Referenced by HandleAverage(), HandleCmdKey(), and HandleMenuPopup().
|
privatevirtual |
Cleans up a data set (histogram representation).
| dataSet | data set to be cleaned up. |
Definition at line 2526 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 2614 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 4077 of file PMusrCanvas.cpp.
References fData.
Referenced by HandleCmdKey(), and HandleMenuPopup().
|
privatevirtual |
Cleans up (deallocate) Fourier transform data.
Definition at line 4093 of file PMusrCanvas.cpp.
References fData.
Referenced by HandleCmdKey(), and HandleMenuPopup().
|
privatevirtual |
Cleans up (deallocate) Fourier difference spectra.
Definition at line 4145 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 2283 of file PMusrCanvas.cpp.
References fPlotNumber, and fStyle.
Referenced by PMusrCanvas(), and PMusrCanvas().
|
privatevirtual |
Decrements the Fourier phase and recalculate the real/imaginary part of the Fourier transform.
Definition at line 6343 of file PMusrCanvas.cpp.
References fCurrentFourierPhase, fCurrentPlotView, fData, fFourier, PlotFourierPhaseValue(), and PV_FOURIER_PWR.
Referenced by HandleCmdKey(), and HandleMenuPopup().
|
virtual |
ROOT signal emitted when canvas is closed or timeout occurs.
Signal emitted that the user wants to terminate the application.
| status | Status info |
Definition at line 960 of file PMusrCanvas.cpp.
References status.
Referenced by HandleCmdKey(), LastCanvasClosed(), main(), and SaveGraphicsAndQuit().
|
virtual |
Exports displayed data to ASCII file.
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 1579 of file PMusrCanvas.cpp.
References PMusrCanvasAsciiDump::data, PMusrCanvasAsciiDump::dataErr, PMusrCanvasAsciiDump::dataX, 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, and PV_FOURIER_REAL_AND_IMAG.
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 4368 of file PMusrCanvas.cpp.
Referenced by CalculateDiff().
|
privatevirtual |
extract data for export.
| data | |
| xmin | |
| xmax | |
| dumpData | |
| hasError |
Definition at line 2253 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 6528 of file PMusrCanvas.cpp.
Referenced by HandleAverage().
|
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 4488 of file PMusrCanvas.cpp.
|
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 4402 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 4528 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 4445 of file PMusrCanvas.cpp.
Referenced by PlotData(), PlotDifference(), PlotFourier(), and PlotFourierDifference().
|
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 6445 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 3697 of file PMusrCanvas.cpp.
References CleanupAverage(), fData, fDataAvg, fPlotType, GetInterpolatedValue(), and MSR_PLOT_NON_MUSR.
Referenced by HandleCmdKey(), and HandleMenuPopup().
|
virtual |
ROOT slot handling keyboard commands (e.g., 'f' for Fourier, 'd' for data)
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 984 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, 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 2692 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(), 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 3246 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 3478 of file PMusrCanvas.cpp.
References fCurrentFourierPhase, fData, fFourier, fHistoFrame, fPlotType, 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 3332 of file PMusrCanvas.cpp.
References CalcPhaseOptReFT(), fCurrentFourierPhase, fCurrentPlotView, fData, fFourier, fHistoFrame, fPlotType, fStartWithFourier, fTheoAsData, 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 3580 of file PMusrCanvas.cpp.
References fData, fPlotType, and MSR_PLOT_NON_MUSR.
Referenced by HandleCmdKey(), and HandleMenuPopup().
|
virtual |
ROOT slot handling menu selections.
Handles the Musrfit menu.
| id | identification key of the selected menu |
Definition at line 1225 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 3083 of file PMusrCanvas.cpp.
References PMusrCanvasNonMusrDataSet::data, PMusrCanvasNonMusrDataSet::dataRange, PMusrCanvasNonMusrDataSet::diffFourierTag, fColorList, fMarkerList, fMsrHandler, fNonMusrData, fPlotNumber, fXmax, fXmin, fXRangePresent, fYmax, fYmin, fYRangePresent, PRunData::GetError(), 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 6290 of file PMusrCanvas.cpp.
References fCurrentFourierPhase, fCurrentPlotView, fData, fFourier, PlotFourierPhaseValue(), and PV_FOURIER_PWR.
Referenced by HandleCmdKey(), and HandleMenuPopup().
|
privatevirtual |
Initializes the Average structure.
Definition at line 2321 of file PMusrCanvas.cpp.
References fDataAvg.
Referenced by ClassImpQ(), PMusrCanvas(), and PMusrCanvas().
|
privatevirtual |
Initializes the data set (histogram representation).
| dataSet | data set to be initialized |
Definition at line 2467 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 2498 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 2299 of file PMusrCanvas.cpp.
References fFourier, FOURIER_APOD_NONE, FOURIER_PLOT_REAL_AND_IMAG, and FOURIER_UNIT_GAUSS.
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 2357 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(), and 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 6404 of file PMusrCanvas.cpp.
References fMsrHandler.
Referenced by SetMsrHandler().
|
inlinevirtual |
Returns true if canvas initialized successfully.
Definition at line 323 of file PMusrCanvas.h.
References fValid.
Referenced by main().
|
virtual |
ROOT slot called when this is the last canvas being closed.
Slot called when the last canvas has been closed. Will emit Done(0) which will terminate the application.
Definition at line 1500 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 6063 of file PMusrCanvas.cpp.
References 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, 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, and PV_FOURIER_REAL_AND_IMAG.
Referenced by HandleCmdKey(), and HandleMenuPopup().
|
privatevirtual |
Plots the data.
| unzoom | if true, rescale to the original msr-file ranges |
Definition at line 4562 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(), 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 4878 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(), 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 5089 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, fPlotType, fRRFLatexText, fRRFText, GetMaximum(), GetMinimum(), 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 5637 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, fPlotType, fRRFLatexText, fRRFText, GetMaximum(), GetMinimum(), 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 6029 of file PMusrCanvas.cpp.
References fCurrentFourierPhase, fCurrentFourierPhaseText, fDataTheoryPad, and fFourier.
Referenced by DecrementFourierPhase(), IncrementFourierPhase(), PlotFourier(), and PlotFourierDifference().
|
virtual |
Saves canvas to graphics file and emits Done signal.
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 1530 of file PMusrCanvas.cpp.
References Done(), fMainCanvas, fMsrHandler, fPlotNumber, and fStartWithFourier.
Referenced by main().
|
virtual |
Sets the MSR file handler for accessing fit parameters and configuration.
Keep the msr-handler object pointer and fill the Fourier structure if present.
| msrHandler | pointer of the msr-file handler. |
Definition at line 339 of file PMusrCanvas.cpp.
References fFourier, fMsrHandler, FOURIER_APOD_NOT_GIVEN, FOURIER_PLOT_NOT_GIVEN, FOURIER_UNIT_NOT_GIVEN, fRRFLatexText, fRRFText, fScaleN0AndBkg, IsScaleN0AndBkg(), RRF_UNIT_G, RRF_UNIT_kHz, RRF_UNIT_Mcs, RRF_UNIT_MHz, and RRF_UNIT_T.
Referenced by main().
|
inlinevirtual |
Sets the run list collection for accessing fit data and results.
Definition at line 329 of file PMusrCanvas.h.
References fRunList.
Referenced by main().
|
virtual |
Sets timeout in seconds after which Done signal is emitted (0=no timeout)
| timeout | after which the done signal shall be emitted. Given in seconds |
Definition at line 457 of file PMusrCanvas.cpp.
References fTimeout, fTimeoutTimer, and timeout.
Referenced by main().
|
virtual |
Updates main data/theory plotting pad.
Feeds the pad with data/theory histograms (error graphs) and refreshes it.
Definition at line 600 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, PMsrPlotStructure::fPlotType, fPlotType, fPopupFourier, fPopupMain, fRunList, PMsrPlotStructure::fRuns, fStartWithAvg, fStartWithFourier, fValid, PMsrGlobalBlock::GetFitType(), HandleCmdKey(), HandleDataSet(), HandleFourier(), HandleNonMusrDataSet(), 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 |
Updates info/legend pad with run information.
Feeds the pad with the statistics block information and the legend and refreshes it.
Definition at line 825 of file PMusrCanvas.cpp.
References PMsrStatisticStructure::fChisq, fData, PMsrStatisticStructure::fDate, fInfoPad, fMainCanvas, PMsrStatisticStructure::fMin, fMsrHandler, PMsrStatisticStructure::fNdf, fPlotNumber, fRunList, PMsrPlotStructure::fRuns, fValid, 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 |
Updates parameter and theory display pads with current fit results.
Feeds the pad with the fit parameter informations, and refreshes the pad.
Definition at line 477 of file PMusrCanvas.cpp.
References fMainCanvas, fMsrHandler, fParameterPad, fTheoryPad, fValid, and GetNeededAccuracy().
Referenced by main().
|
virtual |
ROOT slot called when canvas window is closed.
Slot called when the canvas is closed. Seems to be necessary on some systems.
Definition at line 1514 of file PMusrCanvas.cpp.
References fMainCanvas, and LastCanvasClosed().
|
private |
tag showing that the averaged view or normal view should be presented.
Definition at line 365 of file PMusrCanvas.h.
Referenced by ClassImpQ(), ExportData(), HandleCmdKey(), HandleMenuPopup(), InitMusrCanvas(), and PMusrCanvas().
|
private |
menu bar
Definition at line 387 of file PMusrCanvas.h.
Referenced by ClassImpQ(), and InitMusrCanvas().
|
private |
musrview in ROOT batch mode
Definition at line 363 of file PMusrCanvas.h.
Referenced by HandleCmdKey(), HandleMenuPopup(), InitMusrCanvas(), PlotData(), PMusrCanvas(), PMusrCanvas(), and UpdateDataTheoryPad().
|
private |
list of colors
Definition at line 416 of file PMusrCanvas.h.
Referenced by HandleCmdKey(), HandleDataSet(), HandleNonMusrDataSet(), and PMusrCanvas().
|
private |
holds the current Fourier phase(s)
Definition at line 376 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 377 of file PMusrCanvas.h.
Referenced by PlotFourierPhaseValue().
|
private |
tag showing what the current plot view is: data, fourier, ...
Definition at line 368 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 409 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 407 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 394 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 366 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 414 of file PMusrCanvas.h.
Referenced by CalcPhaseOptReFT(), DecrementFourierPhase(), HandleCmdKey(), HandleDifferenceFourier(), HandleFourier(), IncrementFourierPhase(), InitFourier(), PlotAverage(), PlotFourier(), PlotFourierDifference(), PlotFourierPhaseValue(), PMusrCanvas(), SetMsrHandler(), and UpdateDataTheoryPad().
|
private |
fHistoFrame is a 'global' frame needed in order to plot histograms with (potentially) different x-frames
Definition at line 400 of file PMusrCanvas.h.
Referenced by ClassImpQ(), ExportData(), HandleDifferenceFourier(), HandleFourier(), PlotAverage(), PlotData(), PlotDifference(), PlotFourier(), PlotFourierDifference(), PMusrCanvas(), and PMusrCanvas().
|
private |
ROOT native GUI version of main window with menubar and drawing area.
Definition at line 386 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 397 of file PMusrCanvas.h.
Referenced by InitMusrCanvas(), and UpdateInfoPad().
|
private |
main canvas
Definition at line 392 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 415 of file PMusrCanvas.h.
Referenced by HandleDataSet(), HandleNonMusrDataSet(), and PMusrCanvas().
|
private |
msr-file handler
Definition at line 403 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 411 of file PMusrCanvas.h.
Referenced by ClassImpQ(), ExportData(), PlotData(), PlotDifference(), PMusrCanvas(), 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 412 of file PMusrCanvas.h.
Referenced by ClassImpQ(), PlotData(), PlotDifference(), PMusrCanvas(), PMusrCanvas(), and ~PMusrCanvas().
|
private |
used for non-muSR plots to display a legend
Definition at line 398 of file PMusrCanvas.h.
Referenced by PlotData(), and PlotDifference().
|
private |
list of all error graphs to be plotted (non-muSR)
Definition at line 410 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 395 of file PMusrCanvas.h.
Referenced by InitMusrCanvas(), and UpdateParamTheoryPad().
|
private |
plot number
Definition at line 371 of file PMusrCanvas.h.
Referenced by ClassImpQ(), CreateStyle(), HandleCmdKey(), HandleDataSet(), HandleMenuPopup(), HandleNonMusrDataSet(), InitMusrCanvas(), PlotData(), PlotDifference(), PlotFourier(), PlotFourierDifference(), PMusrCanvas(), PMusrCanvas(), 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 370 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 389 of file PMusrCanvas.h.
Referenced by HandleCmdKey(), HandleMenuPopup(), InitMusrCanvas(), PlotData(), and UpdateDataTheoryPad().
|
private |
popup menu Musrfit in the main menu bar
Definition at line 388 of file PMusrCanvas.h.
Referenced by ClassImpQ(), HandleCmdKey(), HandleMenuPopup(), InitMusrCanvas(), and UpdateDataTheoryPad().
|
private |
tag showing the previous plot view
Definition at line 369 of file PMusrCanvas.h.
Referenced by ClassImpQ(), HandleCmdKey(), HandleMenuPopup(), InitMusrCanvas(), PlotData(), and PlotDifference().
|
private |
used to display RRF info
Definition at line 379 of file PMusrCanvas.h.
Referenced by PlotAverage(), PlotData(), PlotDifference(), PlotFourier(), PlotFourierDifference(), and SetMsrHandler().
|
private |
RRF information.
Definition at line 378 of file PMusrCanvas.h.
Referenced by PlotAverage(), PlotData(), PlotDifference(), PlotFourier(), PlotFourierDifference(), and SetMsrHandler().
|
private |
data handler
Definition at line 404 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 362 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 360 of file PMusrCanvas.h.
Referenced by HandleCmdKey(), PMusrCanvas(), PMusrCanvas(), and UpdateDataTheoryPad().
|
private |
flag if true, the Fourier transform will be presented bypassing the time domain representation
Definition at line 359 of file PMusrCanvas.h.
Referenced by HandleFourier(), PMusrCanvas(), PMusrCanvas(), SaveGraphicsAndQuit(), and UpdateDataTheoryPad().
|
private |
A collection of all graphics attributes.
Definition at line 381 of file PMusrCanvas.h.
Referenced by CreateStyle().
|
private |
flag if true, calculate theory points only at the data points
Definition at line 358 of file PMusrCanvas.h.
Referenced by HandleFourier(), PMusrCanvas(), and PMusrCanvas().
|
private |
theory pad used to display the theory and functions
Definition at line 396 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 361 of file PMusrCanvas.h.
Referenced by ClassImpQ(), PMusrCanvas(), PMusrCanvas(), and SetTimeout().
|
private |
timeout timer in order to terminate if no action is taking place for too long
Definition at line 383 of file PMusrCanvas.h.
Referenced by SetTimeout().
|
private |
title pad used to display a title
Definition at line 393 of file PMusrCanvas.h.
Referenced by InitMusrCanvas().
|
private |
tag showing if a single histo theory is color toggled
Definition at line 367 of file PMusrCanvas.h.
Referenced by ClassImpQ(), HandleCmdKey(), and InitMusrCanvas().
|
private |
if true, everything looks OK
Definition at line 364 of file PMusrCanvas.h.
Referenced by ClassImpQ(), InitMusrCanvas(), IsValid(), UpdateDataTheoryPad(), UpdateInfoPad(), and UpdateParamTheoryPad().
|
private |
Definition at line 374 of file PMusrCanvas.h.
Referenced by ClassImpQ(), HandleDataSet(), HandleFourier(), HandleNonMusrDataSet(), PlotData(), PlotDifference(), PMusrCanvas(), and PMusrCanvas().
|
private |
Definition at line 374 of file PMusrCanvas.h.
Referenced by ClassImpQ(), HandleDataSet(), HandleFourier(), HandleNonMusrDataSet(), PlotData(), PlotDifference(), PMusrCanvas(), and PMusrCanvas().
|
private |
Definition at line 373 of file PMusrCanvas.h.
Referenced by ClassImpQ(), HandleDataSet(), HandleNonMusrDataSet(), PMusrCanvas(), and PMusrCanvas().
|
private |
data/theory frame range
Definition at line 374 of file PMusrCanvas.h.
Referenced by ClassImpQ(), HandleDataSet(), HandleNonMusrDataSet(), PlotData(), PMusrCanvas(), and PMusrCanvas().
|
private |
Definition at line 374 of file PMusrCanvas.h.
Referenced by ClassImpQ(), HandleDataSet(), HandleNonMusrDataSet(), PlotData(), PMusrCanvas(), and PMusrCanvas().
|
private |
flag indicating if x-/y-range is present
Definition at line 373 of file PMusrCanvas.h.
Referenced by ClassImpQ(), HandleDataSet(), HandleNonMusrDataSet(), PlotData(), PMusrCanvas(), and PMusrCanvas().