Mantid
|
#include <MuonFitPropertyBrowser.h>
Public Slots | |
void | addPeriodCheckboxToMap (const QString &name) |
Adds a new checkbox to the list of periods with given name It updates the display. More... | |
void | combineBtnPressed () |
void | executeFitMenu (const QString &item) override |
void | fit () override |
Perform the fit algorithm. More... | |
void | generateBtnPressed () |
void | groupBtnPressed () |
void | periodBtnPressed () |
void | sequentialFit () override |
Open sequential fit dialog. More... | |
void | setNumPeriods (size_t numPeriods) |
Sets checkboxes for periods. More... | |
void | updatePeriods () |
updates the period displays More... | |
Public Slots inherited from MantidQt::MantidWidgets::FitPropertyBrowser | |
virtual void | clear () |
Slot. More... | |
void | clearBrowser () |
void | executeClearCustomSetups () |
void | executeCustomSetupRemove (const QString &name) |
void | executeDisplayMenu (const QString &) |
virtual void | executeFitMenu (const QString &) |
void | executeSetupManageMenu (const QString &) |
void | executeSetupMenu (const QString &) |
void | findPeaks () |
virtual void | fit () |
Do the fit. More... | |
virtual void | removePropertiesFromSettingsBrowser (const QStringList &propsToRemove) |
Function to toggle the visibility of a settings group property exposed to python. More... | |
virtual void | sequentialFit () |
void | setPeakToolOn (bool on) |
virtual void | toggleSettingsBrowserVisible () |
Function to toggle the visibility of the settings browser. More... | |
virtual void | toggleWsListVisible () |
void | undoFit () |
Slot. More... | |
void | workspaceDoubleClicked (QListWidgetItem *item) |
Signals | |
void | fitRawDataClicked (bool enabled) override |
Emitted when "fit to raw data" is changed. More... | |
void | functionUpdateAndFitRequested (bool sequential) override |
Emitted when a fit or sequential fit is requested. More... | |
void | functionUpdateRequested () override |
Emitted when function should be updated. More... | |
void | groupBoxClicked () |
void | periodBoxClicked () |
void | preFitChecksRequested (bool sequential) override |
Emitted when fit is about to be run. More... | |
void | reselctGroupClicked (bool enabled) |
void | sequentialFitRequested () |
Emitted when sequential fit is requested by user. More... | |
void | TFPlot (QString wsName) |
void | userChangedDatasetIndex (int index) override |
Emitted when dataset index to fit is changed. More... | |
void | workspacesToFitChanged (int n) override |
Emitted when number of workspaces to fit is changed. More... | |
Signals inherited from MantidQt::MantidWidgets::FitPropertyBrowser | |
void | algorithmFinished (const QString &) |
void | algorithmStarted (const QString &) |
void | changedParameterOf (const QString &prefix) |
void | changeWindowTitle (const QString &) |
void | currentChanged () const |
void | endXChanged (double) |
void | errorsEnabled (bool enabled) |
void | executeFit (QString, QHash< QString, QString >, Mantid::API::AlgorithmObserver *) |
void | fitResultsChanged (const QString &status) |
void | fittingDone (const QString &) |
signal which can optionally be caught for customization after a fit has been done More... | |
void | fitUndone () |
void | functionChanged () |
void | functionCleared () |
void | functionFactoryUpdateReceived () |
void | functionLoaded (const QString &) |
void | functionRemoved () |
void | itemDoubleClicked (QListWidgetItem *item) |
void | multifitFinished () |
void | parameterChanged (const Mantid::API::IFunction *) |
void | plotCurrentGuess () |
void | plotGuess () |
void | removeCurrentGuess () |
void | removeFitCurves () |
void | removeGuess () |
void | removePlotSignal (MantidQt::MantidWidgets::PropertyHandler *) |
void | sequentialFitDone () const |
void | startXChanged (double) |
void | updatePlotSpectrum (int index) |
void | workspaceClicked (const QString &wsName) |
void | workspaceIndexChanged (int index) |
void | workspaceNameChanged (const QString &) |
void | wsChangePPAssign (const QString &) |
void | xRangeChanged (double, double) |
Signals inherited from MantidQt::MantidWidgets::IMuonFitFunctionModel | |
virtual void | fitRawDataClicked (bool enabled)=0 |
virtual void | functionUpdateAndFitRequested (bool sequential)=0 |
virtual void | functionUpdateRequested ()=0 |
virtual void | userChangedDatasetIndex (int index)=0 |
Signals inherited from MantidQt::MantidWidgets::IMuonFitDataModel | |
virtual void | preFitChecksRequested (bool sequential)=0 |
Public Member Functions | |
void | addExtraWidget (QWidget *widget) |
Add an extra widget into the browser. More... | |
void | addFitBrowserWidget (QWidget *widget, MantidQt::MantidWidgets::FunctionBrowser *functionBrowser) |
Adds an extra widget in between the fit buttons and the browser. More... | |
void | checkFitEnabled () |
void | clearChosenGroups () const |
Clear list of selected groups. More... | |
void | clearChosenPeriods () const |
Clears the list of selected groups (unchecks boxes) More... | |
void | continueAfterChecks (bool sequential) override |
After fit checks done, continue. More... | |
void | doPlotGuess () override |
Plot a guess function. More... | |
void | doRemoveGuess () override |
Remove a plotted guess. More... | |
void | doTFAsymmFit () |
Creates an instance of Fit algorithm, sets its properties and launches it. More... | |
void | finishHandle (const Mantid::API::IAlgorithm *alg) override |
Called when the fit is finished. More... | |
void | finishHandleNormal (const Mantid::API::IAlgorithm *alg) |
void | finishHandleTF (const Mantid::API::IAlgorithm *alg) |
QStringList | getChosenGroups () const |
Returns a list of the selected groups (checked boxes) More... | |
QStringList | getChosenPeriods () const |
Returns a list of the selected periods (checked boxes) More... | |
Mantid::API::IFunction_sptr | getFunction () const override |
Get the fitting function. More... | |
std::vector< std::string > | getWorkspaceNamesToFit () const override |
Get names of workspaces that are set to be fitted. More... | |
bool | hasGuess () const override |
Whether a guess is plotted or not. More... | |
void | init () override |
Initialise the layout. More... | |
bool | isMultiFittingMode () const override |
returns true if the browser is set to multi fitting mode More... | |
MuonFitPropertyBrowser (QWidget *parent=nullptr, QObject *mantidui=nullptr) | |
Constructor. More... | |
std::string | outputName () const override |
Get output name. More... | |
void | runFit () override |
Run a non-sequential fit. More... | |
void | runSequentialFit () override |
Run a sequential fit. More... | |
void | setAllGroups () |
Selects all groups. More... | |
void | setAllGroupsOrPairs (const bool isItGroup) |
Sets the multifit mode to all groups or all pairs depending on if a group or pair is selected in the home tab. More... | |
void | setAllPairs () |
void | setAllPeriods () |
Selects all periods. More... | |
void | setAvailableGroups (const QStringList &groups) |
Sets group names and updates checkboxes on UI By default sets all unchecked. More... | |
void | setAvailablePeriods (const QStringList &periods) |
Sets period names and updates checkboxes on UI By default sets all unchecked. More... | |
void | setChosenGroup (const QString &group) |
Selects a single group/pair. More... | |
void | setChosenPeriods (const QString &period) |
Ticks the selected periods. More... | |
virtual void | setFitEnabled (bool yes) override |
Enable/disable the Fit button;. More... | |
void | setFunction (const Mantid::API::IFunction_sptr func) override |
Set function externally. More... | |
void | setGroupNames (const std::vector< std::string > groupNames) |
void | setMultiFittingMode (bool enabled) override |
Set multiple fitting mode on or off. More... | |
void | setNormalization (const std::string &name) |
void | setSimultaneousLabel (const std::string &label) override |
Set label for simultaneous fit results. More... | |
void | setSingleFitLabel (const std::string &name) |
sets the label for a single fit and selects the relevant group/pair More... | |
void | setTFAsymm (bool state) |
void | setWorkspaceName (const QString &wsName) override |
Set the input workspace name. More... | |
void | setWorkspaceNames (const QStringList &wsNames) override |
Set list of workspaces to fit. More... | |
void | userChangedDataset (int index) override |
User changed dataset index to fit. More... | |
Public Member Functions inherited from MantidQt::MantidWidgets::FitPropertyBrowser | |
void | addAllowedSpectra (const QString &wsName, const QList< int > &wsIndices) |
void | addAllowedTableWorkspace (const QString &wsName) |
void | addAutoBackground () |
Creates and adds the autobackground. More... | |
void | addFitResultWorkspacesToTableWidget () |
Adds the fit result workspaces to the QListWidget in the browser. More... | |
QString | addFunction (const QString &fnName) |
A specialisation of addFunction to be used in the workbench. More... | |
PropertyHandler * | addFunction (const std::string &fnName) |
Create a new function. More... | |
void | addHandle (const std::string &wsName, const std::shared_ptr< Mantid::API::Workspace > &ws) override |
workspace was added More... | |
void | allowSequentialFits (bool allow) override |
Allow or disallow sequential fits (depending on whether other conditions are met) More... | |
double | centre () const |
Centre of the current peak. More... | |
std::shared_ptr< Mantid::API::CompositeFunction > | compositeFunction () const |
Get Composite Function. More... | |
bool | convolveMembers () const |
Get the "ConvolveMembers" option. More... | |
std::string | costFunction () const |
Get the cost function. More... | |
int | count () const |
Get count. More... | |
PropertyHandler * | currentHandler () const |
Get the current function. More... | |
std::string | defaultBackgroundType () const |
Get the default background type. More... | |
std::string | defaultFunctionType () const |
Get the default function type. More... | |
std::string | defaultPeakType () |
Get the default peak type. More... | |
double | endX () const |
Get the end X. More... | |
void | finishHandle (const Mantid::API::IAlgorithm *alg) override |
Called when the Fit is finished. More... | |
FitPropertyBrowser (QWidget *parent=nullptr, QObject *mantidui=nullptr) | |
Constructor. More... | |
double | fwhm () const |
Width of the current peak. More... | |
QString | getAutoBackgroundString () const |
std::string | getCentreParameterNameOf (const QString &prefix) |
QString | getConstraintsString () const |
Creates the "Constraints" property value for the Fit algorithm. More... | |
int | getDecimals () const |
Number of decimal places in double properties. More... | |
QString | getErrColumnName () const |
Get the name of the Error column. More... | |
std::string | getExcludeRange () const |
Get the excluded range for the fit. More... | |
std::string | getFitAlgorithmOutputStatus () const |
================================================================================================= Get Fit Algorithm output statuss More... | |
std::string | getFitAlgorithmParameters () const |
================================================================================================= Get Fit Algorithm parameters More... | |
QMenu * | getFitMenu () const |
Return the Fit menu. More... | |
Mantid::API::IFunction_sptr | getFittingFunction () const |
Return the fitting function. More... | |
Mantid::API::IFunction_sptr | getFunctionAtIndex (std::size_t const &index) const |
Return a function at a specific index in the composite function. More... | |
std::string | getFunctionString () const |
Get the function as a string. More... | |
PropertyHandler * | getHandler () const |
Get handler to the root composite function. More... | |
QStringList | getParameterNames () const |
Get function parameter names. More... | |
QList< double > | getParameterValues () const |
Get function parameter values. More... | |
double | getPeakCentreOf (const QString &prefix) |
double | getPeakFwhmOf (const QString &prefix) |
PropertyHandler * | getPeakHandler (const QString &prefix) |
double | getPeakHeightOf (const QString &prefix) |
QStringList | getPeakPrefixes () const |
int | getPeakRadius () const |
Get the peak radius for peak functions. More... | |
QString | getTieString () const |
Creates the "Ties" property value for the Fit algorithm. More... | |
std::string | getWidthParameterNameOf (const QString &prefix) |
std::shared_ptr< Mantid::API::Workspace > | getWorkspace () const |
Get the workspace. More... | |
QListWidget * | getWorkspaceList () const |
Return the Fit menu. More... | |
QStringList | getWorkspaceNames () |
Returns the list of workspaces that are currently been worked on by the fit property browser. More... | |
QString | getXColumnName () const |
Get the name of the X column. More... | |
QVector< double > | getXRange () |
Get the X limits of the workspace. More... | |
QString | getYColumnName () const |
Get the name of the Y column. More... | |
double | height () const |
Height of the current peak. More... | |
bool | ignoreInvalidData () const |
Get the ignore invalid data option. More... | |
virtual void | init () |
Initialise layout. More... | |
bool | isAutoBack () const |
bool | isFitEnabled () const |
Returns true if the function is ready for a fit. More... | |
bool | isHistogramFit () const |
Get "HistogramFit" option. More... | |
bool | isParameterExplicitlySetOf (const QString &prefix, const std::string ¶m) |
bool | isPeak () const |
Is the current function a peak? More... | |
bool | isUndoEnabled () const |
Tells if undo can be done. More... | |
void | loadFunction (const QString &funcString) |
Load function. More... | |
int | maxIterations () const |
Get the max number of iterations. More... | |
std::string | minimizer (bool withProperties=false) const |
Get the minimizer. More... | |
void | normaliseData (bool on) |
Set if the data must be normalised before fitting. More... | |
virtual std::string | outputName () const |
Get the output name. More... | |
bool | plotCompositeMembers () const |
Returns true if a composite's member functions should be plotted also. More... | |
bool | plotDiff () const |
Returns true if the difference plot should be drawn. More... | |
void | postDeleteHandle (const std::string &wsName) override |
workspace was removed More... | |
bool | rawData () const override |
Returns true if the fit should be done against binned (bunched) data. More... | |
void | refitAutoBackground () |
const QStringList & | registeredBackgrounds () const |
Return a list of registered backgrounds. More... | |
const QStringList & | registeredFunctions () const |
Return a list of registered functions. More... | |
const QStringList & | registeredOthers () const |
Return a list of registered other functions. More... | |
const QStringList & | registeredPeaks () const |
Return a list of registered peaks. More... | |
virtual void | removeFunction (PropertyHandler *handler) |
Removes the function held by the property handler. More... | |
void | removeWorkspace (const std::string &wsName) |
void | removeWorkspaceAndSpectra (const std::string &wsName) |
void | renameHandle (const std::string &oldName, const std::string &newName) override |
Handler of the Rename notifications. More... | |
void | saveFunction (const QString &fnName) |
save function More... | |
void | sendParameterChanged (const Mantid::API::IFunction *f) |
void | sendParameterChanged (const QString &prefix) |
void | sequentialFitFinished () |
void | setADSObserveEnabled (bool enabled) |
void | setAutoBackgroundName (const QString &aName) |
Remember a background function name to be used for creating auto-background. More... | |
void | setCentre (double value) |
Set centre of the current peak. More... | |
void | setCurrentFunction (PropertyHandler *h) const |
Set new current function. More... | |
void | setDecimals (int d) |
void | setDefaultBackgroundType (const std::string &fnType) |
Set the default background type. More... | |
void | setDefaultFunctionType (const std::string &fnType) |
Set the default function type. More... | |
void | setDefaultPeakType (const std::string &fnType) |
Set the default peak type. More... | |
void | setEndX (double end) override |
Set the end X. More... | |
virtual void | setFitEnabled (bool enable) |
Enable/disable the Fit buttons;. More... | |
void | setFwhm (double value) |
Set width of the current peak. More... | |
void | setHeight (double value) |
Set height of the current peak. More... | |
void | setIgnoreInvalidData (bool on) |
Set the ignore invalid data option. More... | |
void | setOutputName (const std::string &) |
Set the output name. More... | |
void | setPeakCentreOf (const QString &prefix, double value) |
void | setPeakFwhmOf (const QString &prefix, double value) |
void | setPeakHeightOf (const QString &prefix, double value) |
void | setStartX (double start) override |
Set the start X. More... | |
void | setTextPlotGuess (const QString &text) |
alter text of Plot Guess More... | |
void | setTip (const QString &txt) |
Display a tip. More... | |
void | setWorkspaceIndex (int i) override |
Set workspace index. More... | |
virtual void | setWorkspaceName (const QString &wsName) override |
Set the input workspace name. More... | |
void | setXRange (double start, double end) |
Set both start and end X. More... | |
int | sizeOfFunctionsGroup () const |
double | startX () const |
Get the start X. More... | |
std::shared_ptr< const Mantid::API::IFunction > | theFunction () const |
Get the current function. More... | |
void | updateAttributes () |
Update the function attributes. More... | |
void | updateParameters () |
Update the function parameters. More... | |
int | workspaceIndex () const |
Get workspace index. More... | |
std::string | workspaceName () const |
Get the input workspace name. More... | |
~FitPropertyBrowser () override | |
Destructor. More... | |
Public Member Functions inherited from Mantid::API::AlgorithmObserver | |
AlgorithmObserver () | |
Default constructor. More... | |
AlgorithmObserver (const IAlgorithm_const_sptr &alg) | |
Constructs AlgorithmObserver and connects all its handlers to algorithm alg. More... | |
virtual void | errorHandle (const IAlgorithm *alg, const std::string &what) |
virtual void | finishHandle (const IAlgorithm *alg) |
void | observeAll (const IAlgorithm_const_sptr &alg) |
Connect to algorithm alg and observe all its notifications. More... | |
void | observeError (const IAlgorithm_const_sptr &alg) |
Connect to algorithm alg and observe its error notification. More... | |
void | observeFinish (const IAlgorithm_const_sptr &alg) |
Connect to algorithm alg and observe its finish notification. More... | |
void | observeProgress (const IAlgorithm_const_sptr &alg) |
Connect to algorithm alg and observe its progress notification. More... | |
void | observeStart (const IAlgorithm_const_sptr &alg) |
Connect to algorithm alg and observe its start notification. More... | |
void | observeStarting () |
Connect to AlgorithmManager and observe its starting notifications. More... | |
virtual void | progressHandle (const IAlgorithm *alg, double p, const std::string &msg, const double estimatedTime, const int progressPrecision) |
virtual void | startHandle (const IAlgorithm *alg) |
virtual void | startingHandle (IAlgorithm_sptr alg) |
void | stopObserving (const IAlgorithm_const_sptr &alg) |
Disconnect from algorithm alg. More... | |
void | stopObserving (const Mantid::API::IAlgorithm *alg) |
void | stopObservingManager () |
Disconnect from the algorithm manager. More... | |
virtual | ~AlgorithmObserver () |
Virtual destructor. More... | |
Public Member Functions inherited from MantidQt::API::WorkspaceObserver | |
void | observeAdd (bool on=true) |
Observe additions. More... | |
void | observeADSClear (bool on=true) |
Observe clearances. More... | |
void | observeAfterReplace (bool on=true) |
Observe replacements. More... | |
void | observePostDelete (bool on=true) |
Observe workspace deletes. More... | |
void | observePreDelete (bool on=true) |
Observe workspace deletes. More... | |
void | observeRename (bool on=true) |
Observe renaming. More... | |
WorkspaceObserver () | |
Default constructor. More... | |
virtual | ~WorkspaceObserver () |
Destructor. More... | |
Public Member Functions inherited from MantidQt::MantidWidgets::IWorkspaceFitControl | |
virtual void | allowSequentialFits (bool allow)=0 |
virtual bool | rawData () const =0 |
virtual void | setEndX (double end)=0 |
virtual void | setStartX (double start)=0 |
virtual void | setWorkspaceIndex (int i)=0 |
virtual void | setWorkspaceName (const QString &wsName)=0 |
virtual | ~IWorkspaceFitControl ()=default |
Public Member Functions inherited from MantidQt::MantidWidgets::IMuonFitFunctionModel | |
virtual void | doPlotGuess ()=0 |
virtual void | doRemoveGuess ()=0 |
virtual Mantid::API::IFunction_sptr | getFunction () const =0 |
virtual std::vector< std::string > | getWorkspaceNamesToFit () const =0 |
virtual bool | hasGuess () const =0 |
virtual bool | isMultiFittingMode () const =0 |
virtual void | runFit ()=0 |
virtual void | runSequentialFit ()=0 |
virtual void | setFunction (const Mantid::API::IFunction_sptr func)=0 |
virtual void | setMultiFittingMode (bool enabled)=0 |
virtual | ~IMuonFitFunctionModel ()=default |
Public Member Functions inherited from MantidQt::MantidWidgets::IMuonFitDataModel | |
virtual void | continueAfterChecks (bool sequential)=0 |
virtual void | setSimultaneousLabel (const std::string &label)=0 |
virtual void | setWorkspaceNames (const QStringList &wsNames)=0 |
virtual void | userChangedDataset (int index)=0 |
virtual void | workspacesToFitChanged (int n)=0 |
Static Public Attributes | |
static const std::string | SIMULTANEOUS_PREFIX = {"MuonSimulFit_"} |
Prefix for simultaneous fit results. More... | |
Protected Member Functions | |
void | setNormalization () |
void | showEvent (QShowEvent *e) override |
Connect to the AnalysisDataService when shown. More... | |
Protected Member Functions inherited from MantidQt::MantidWidgets::FitPropertyBrowser | |
QtProperty * | addDoubleProperty (const QString &name, QtDoublePropertyManager *manager=nullptr) const |
Create a double property and set some settings. More... | |
virtual void | addWorkspaceIndexToBrowser () |
Adds the workspace index property to the browser. More... | |
void | createCompositeFunction (const Mantid::API::IFunction_sptr &func) |
Create CompositeFunction from pointer. More... | |
void | createCompositeFunction (const QString &str="") |
Create CompositeFunction from string. More... | |
void | createEditors (QWidget *w) |
Create editors and assign them to the managers. More... | |
void | doFit (int maxIterations) |
Do the fitting. More... | |
bool | getShouldBeNormalised () |
void | hideEvent (QHideEvent *e) override |
actions to do before the browser is hidden More... | |
void | initBasicLayout (QWidget *w) |
Initialise the layout, except for the fit button in the menu bar. More... | |
void | initLayout (QWidget *w) |
Initialise the layout. More... | |
void | minimizerChanged () |
Called when the minimizer changes. Creates minimizes's properties. More... | |
void | modifyFitMenu (QAction *fitAction, bool enabled) |
virtual void | populateFitMenuButton (QSignalMapper *fitMapper, QMenu *fitMenu) |
Populate the fit button. More... | |
void | populateWorkspaceNames () |
Get and store available workspace names. More... | |
void | setWorkspace (const Mantid::API::IFunction_sptr &function) const |
Sets the workspace to a function. More... | |
void | setWorkspaceProperties () |
Display properties relevant to the selected workspace. More... | |
void | showEvent (QShowEvent *e) override |
actions to do before the browser made visible More... | |
Mantid::API::IFunction_sptr | tryCreateFitFunction (const QString &str) |
Catches unexpected not found exceptions. More... | |
void | updateBrowserFromFitResults (const Mantid::API::IFunction_sptr &finalFunction) |
Set the parameters to the fit outcome. More... | |
void | updateDecimals () |
impose a number of decimal places on all defined Double properties More... | |
Protected Member Functions inherited from MantidQt::API::WorkspaceObserver | |
void | _addHandle (Mantid::API::WorkspaceAddNotification_ptr pNf) |
Poco notification handler for DataService::DeleteNotification. More... | |
void | _afterReplaceHandle (Mantid::API::WorkspaceAfterReplaceNotification_ptr pNf) |
Poco notification handler for DataService::AfterReplaceNotification. More... | |
void | _clearADSHandle (Mantid::API::ClearADSNotification_ptr) |
ADS clear notification. More... | |
void | _postDeleteHandle (Mantid::API::WorkspacePostDeleteNotification_ptr pNf) |
Poco notification handler for DataService::PostDeleteNotification. More... | |
void | _preDeleteHandle (Mantid::API::WorkspacePreDeleteNotification_ptr pNf) |
Poco notification handler for DataService::PostDeleteNotification. More... | |
void | _renameHandle (Mantid::API::WorkspaceRenameNotification_ptr pNf) |
Poco notification handler for DataService::RenameNotification. More... | |
virtual void | addHandle (const std::string &wsName, const Mantid::API::Workspace_sptr &ws) |
Handler of the add notifications. More... | |
virtual void | afterReplaceHandle (const std::string &wsName, const Mantid::API::Workspace_sptr &ws) |
Handler of the AfterReplace notifications. More... | |
virtual void | clearADSHandle () |
Handle an ADS clear notification. More... | |
virtual void | postDeleteHandle (const std::string &wsName) |
Handler of the delete notifications. More... | |
virtual void | preDeleteHandle (const std::string &wsName, const Mantid::API::Workspace_sptr &ws) |
Handler of the delete notifications. More... | |
virtual void | renameHandle (const std::string &oldName, const std::string &newName) |
Handler of the Rename notifications. More... | |
Private Slots | |
void | boolChanged (QtProperty *prop) override |
Called when a bool property changed. More... | |
void | doubleChanged (QtProperty *prop) override |
Called when a double property changed. More... | |
void | enumChanged (QtProperty *prop) override |
Called when a dropdown menu is changed. More... | |
Private Member Functions | |
void | addGroupCheckbox (const QString &name) |
Add a new checkbox to the list of groups with given name The new checkbox is checked according to dropdown menu selection. More... | |
void | addPeriodCheckbox (const QString &name) |
Add a new checkbox to the list of periods with given name The new checkbox is unchecked by default. More... | |
void | clearGroupCheckboxes () |
Clears all group names and checkboxes (ready to add new ones) More... | |
void | clearPeriodCheckboxes () |
Clears all pair names and checkboxes (ready to add new ones) More... | |
void | ConvertFitFunctionForMuonTFAsymmetry (bool enabled) |
void | finishAfterSimultaneousFit (const Mantid::API::IAlgorithm *fitAlg, const int nWorkspaces) const |
After a simultaneous fit, add information to results table and group workspaces. More... | |
void | finishAfterTFSimultaneousFit (const Mantid::API::IAlgorithm *alg, const std::string &baseName) const |
After a TF simultaneous fit, insert extra information into parameters table (i.e. More... | |
void | genCombinePeriodWindow () |
void | genGroupWindow () |
void | genPeriodWindow () |
std::string | getUnnormName (const std::string wsName) |
bool | isPeriodValid (const QString &name) |
Check if a period is valid. More... | |
bool | isWorkspaceValid (Mantid::API::Workspace_sptr) const override |
Check if the workspace can be used in the fit. More... | |
void | populateFunctionNames () override |
Get the registered function names. More... | |
void | setChosenPeriods (const QStringList &chosenPeriods) |
Ticks the selected periods. More... | |
void | setFitWorkspaces (const std::string &input) |
void | setTFAsymmMode (bool state) |
Set TF asymmetry mode on or off. More... | |
std::string | TFExtension () const |
void | updateGroupDisplay () |
Sets the display for selected groups. More... | |
void | updatePeriodDisplay () |
Sets the display for selected periods. More... | |
void | updatePeriods (const int j) |
updates the period displays and conserves the selection if selection is niot available default to all periods More... | |
void | updateTFPlot () |
Makes sure we have the TF plot in TFAsymm mode. More... | |
Private Attributes | |
QString | m_autoBackground |
QGroupBox * | m_btnGroup |
QDialog * | m_comboWindow |
MantidQt::MantidWidgets::FunctionBrowser * | m_functionBrowser |
QPushButton * | m_generateBtn |
QMap< QString, QtProperty * > | m_groupBoxes |
Map of group names to checkboxes. More... | |
std::vector< std::string > | m_groupsList |
QtProperty * | m_groupsToFit |
QStringList | m_groupsToFitOptions |
QDialog * | m_groupWindow |
bool | m_isMultiFittingMode |
QtProperty * | m_keepNorm |
QSplitter * | m_mainSplitter |
QtBrowserItem * | m_multiFitSettingsGroup |
QLineEdit * | m_negativeCombo |
QtProperty * | m_normalization |
QStringList | m_normalizationValue |
QMap< QString, QtProperty * > | m_periodBoxes |
Map of group names to checkboxes. More... | |
QtProperty * | m_periodsToFit |
QStringList | m_periodsToFitOptions |
QDialog * | m_periodWindow |
QLineEdit * | m_positiveCombo |
QPushButton * | m_reselectGroupBtn |
QPushButton * | m_reselectPeriodBtn |
QtProperty * | m_showGroup |
QStringList | m_showGroupValue |
QtProperty * | m_showPeriods |
QStringList | m_showPeriodValue |
std::string | m_simultaneousLabel |
Label to use for simultaneous fits. More... | |
QtProperty * | m_TFAsymmMode |
QSplitter * | m_widgetSplitter |
Splitter for additional widgets and splitter between this and browser. More... | |
std::vector< std::string > | m_workspacesToFit |
Names of workspaces to fit. More... | |
Additional Inherited Members | |
Protected Slots inherited from MantidQt::MantidWidgets::FitPropertyBrowser | |
virtual void | boolChanged (QtProperty *prop) |
Called when a bool property is changed. More... | |
virtual void | doubleChanged (QtProperty *prop) |
Called when a double property changed. More... | |
void | enactAttributeChange (QtProperty *prop, PropertyHandler *h, const bool vectorAttribute=false) |
virtual void | enumChanged (QtProperty *prop) |
Called when the function name property changed. More... | |
virtual void | intChanged (QtProperty *prop) |
Called when an int property changed. More... | |
virtual void | populateFunctionNames () |
Get the registered function names. More... | |
Protected Attributes inherited from MantidQt::MantidWidgets::FitPropertyBrowser | |
QtBoolPropertyManager * | m_boolManager |
QtTreePropertyBrowser * | m_browser |
bool | m_changeSlotsEnabled |
If false the change-slots (such as enumChanged(), doubleChanged()) are disabled. More... | |
QtEnumPropertyManager * | m_columnManager |
std::shared_ptr< Mantid::API::CompositeFunction > | m_compositeFunction |
A copy of the edited function. More... | |
QtProperty * | m_convolveMembers |
QtProperty * | m_costFunction |
QStringList | m_costFunctions |
A list of available cost functions. More... | |
QtBrowserItem * | m_customSettingsGroup |
Group for custom options available on muon analysis widget. More... | |
QtDoublePropertyManager * | m_doubleManager |
QtProperty * | m_endX |
QtEnumPropertyManager * | m_enumManager |
QtProperty * | m_errColumn |
QtProperty * | m_evaluationType |
QStringList | m_evaluationTypes |
A list of possible function evaluation types. More... | |
QtProperty * | m_excludeRange |
QtStringPropertyManager * | m_filenameManager |
QAction * | m_fitActionEvaluate |
QAction * | m_fitActionFit |
QAction * | m_fitActionSeqFit |
QAction * | m_fitActionUndoFit |
QtStringPropertyManager * | m_formulaManager |
QtBrowserItem * | m_functionsGroup |
Group for functions. More... | |
QtGroupPropertyManager * | m_groupManager |
Property managers: More... | |
bool | m_guessOutputName |
if true the output name will be guessed every time workspace name is changeed More... | |
QtProperty * | m_ignoreInvalidData |
std::vector< double > | m_initialParameters |
To keep a copy of the initial parameters in case for undo fit. More... | |
QtIntPropertyManager * | m_intManager |
QtProperty * | m_maxIterations |
QtProperty * | m_minimizer |
QList< QtProperty * > | m_minimizerProperties |
QStringList | m_minimizers |
A list of available minimizers. More... | |
QtProperty * | m_output |
ParameterPropertyManager * | m_parameterManager |
QtProperty * | m_peakRadius |
QtProperty * | m_plotCompositeMembers |
QtProperty * | m_plotDiff |
QtProperty * | m_rawData |
QStringList | m_registeredBackgrounds |
A list of registered backgrounds. More... | |
QStringList | m_registeredFunctions |
A list of registered functions. More... | |
QStringList | m_registeredOther |
A list of registered functions that are neither peaks nor backgrounds. More... | |
QStringList | m_registeredPeaks |
A list of registered peaks. More... | |
QtBrowserItem * | m_settingsGroup |
Group for input/output settings. More... | |
QtProperty * | m_showParamErrors |
QtProperty * | m_startX |
QtStringPropertyManager * | m_stringManager |
QtDoublePropertyManager * | m_vectorDoubleManager |
QtGroupPropertyManager * | m_vectorManager |
QtIntPropertyManager * | m_vectorSizeManager |
QtProperty * | m_workspace |
QtProperty * | m_workspaceIndex |
QStringList | m_workspaceNames |
A list of available workspaces. More... | |
QtProperty * | m_xColumn |
QtProperty * | m_yColumn |
Protected Attributes inherited from MantidQt::API::WorkspaceObserver | |
Poco::NObserver< WorkspaceObserver, Mantid::API::WorkspaceAddNotification > | m_addObserver |
Poco::NObserver for DataServise::AddNotification. More... | |
Poco::NObserver< WorkspaceObserver, Mantid::API::WorkspaceAfterReplaceNotification > | m_afterReplaceObserver |
Poco::NObserver for DataServise::AfterReplaceNotification. More... | |
Poco::NObserver< WorkspaceObserver, Mantid::API::ClearADSNotification > | m_clearADSObserver |
Clear notification observer. More... | |
Poco::NObserver< WorkspaceObserver, Mantid::API::WorkspacePostDeleteNotification > | m_postDeleteObserver |
Poco::NObserver for DataServise::DeleteNotification. More... | |
Poco::NObserver< WorkspaceObserver, Mantid::API::WorkspacePreDeleteNotification > | m_preDeleteObserver |
Poco::NObserver for DataServise::DeleteNotification. More... | |
Poco::NObserver< WorkspaceObserver, Mantid::API::WorkspaceRenameNotification > | m_renameObserver |
Poco::NObserver for DataServise::RenameNotification. More... | |
Definition at line 47 of file MuonFitPropertyBrowser.h.
MantidQt::MantidWidgets::MuonFitPropertyBrowser::MuonFitPropertyBrowser | ( | QWidget * | parent = nullptr , |
QObject * | mantidui = nullptr |
||
) |
Constructor.
parent | :: The parent widget - must be an ApplicationWindow |
mantidui | :: The UI form for MantidPlot |
Definition at line 90 of file MuonFitPropertyBrowser.cpp.
void MantidQt::MantidWidgets::MuonFitPropertyBrowser::addExtraWidget | ( | QWidget * | widget | ) |
Add an extra widget into the browser.
Adds an extra widget in between the fit buttons and the browser.
widget | :: [input] Pointer to widget to add |
Definition at line 1015 of file MuonFitPropertyBrowser.cpp.
void MantidQt::MantidWidgets::MuonFitPropertyBrowser::addFitBrowserWidget | ( | QWidget * | widget, |
MantidQt::MantidWidgets::FunctionBrowser * | functionBrowser | ||
) |
Adds an extra widget in between the fit buttons and the browser.
widget | :: [input] Pointer to widget to add |
functionBrowser | :: [input] pointer to the function browser |
Definition at line 1241 of file MuonFitPropertyBrowser.cpp.
|
private |
Add a new checkbox to the list of groups with given name The new checkbox is checked according to dropdown menu selection.
name | :: [input] Name of group to add |
Definition at line 1328 of file MuonFitPropertyBrowser.cpp.
Referenced by init().
|
private |
Add a new checkbox to the list of periods with given name The new checkbox is unchecked by default.
name | :: [input] Name of period to add |
Definition at line 1604 of file MuonFitPropertyBrowser.cpp.
|
slot |
Adds a new checkbox to the list of periods with given name It updates the display.
name | :: [input] Name of period to add |
Definition at line 1547 of file MuonFitPropertyBrowser.cpp.
|
overrideprivateslot |
Called when a bool property changed.
prop | :: A pointer to the property |
Definition at line 523 of file MuonFitPropertyBrowser.cpp.
References MantidQt::MantidWidgets::FitPropertyBrowser::boolChanged(), fitRawDataClicked(), groupBoxClicked(), Mantid::Kernel::SingletonHolder< T >::Instance(), MantidQt::MantidWidgets::FitPropertyBrowser::m_boolManager, MantidQt::MantidWidgets::FitPropertyBrowser::m_enumManager, m_groupBoxes, m_keepNorm, m_periodBoxes, MantidQt::MantidWidgets::FitPropertyBrowser::m_rawData, m_TFAsymmMode, MantidQt::MantidWidgets::FitPropertyBrowser::m_workspace, MantidQt::MantidWidgets::FitPropertyBrowser::m_workspaceNames, periodBoxClicked(), MantidQt::MantidWidgets::FitPropertyBrowser::rawData(), MantidQt::MantidWidgets::readMultipleNormalization(), setTFAsymmMode(), tmp, updateGroupDisplay(), and updatePeriodDisplay().
void MantidQt::MantidWidgets::MuonFitPropertyBrowser::checkFitEnabled | ( | ) |
Definition at line 312 of file MuonFitPropertyBrowser.cpp.
References MantidQt::MantidWidgets::FitPropertyBrowser::count(), and setFitEnabled().
void MantidQt::MantidWidgets::MuonFitPropertyBrowser::clearChosenGroups | ( | ) | const |
Clear list of selected groups.
Clears the list of selected groups (unchecks boxes)
Definition at line 1347 of file MuonFitPropertyBrowser.cpp.
Referenced by init().
void MantidQt::MantidWidgets::MuonFitPropertyBrowser::clearChosenPeriods | ( | ) | const |
Clears the list of selected groups (unchecks boxes)
Definition at line 1495 of file MuonFitPropertyBrowser.cpp.
|
private |
Clears all group names and checkboxes (ready to add new ones)
Definition at line 1317 of file MuonFitPropertyBrowser.cpp.
|
private |
Clears all pair names and checkboxes (ready to add new ones)
Definition at line 1481 of file MuonFitPropertyBrowser.cpp.
|
slot |
Definition at line 1713 of file MuonFitPropertyBrowser.cpp.
References Mantid::Kernel::Logger::error(), Mantid::API::g_log, and value.
|
overridevirtual |
After fit checks done, continue.
The pre-fit checks have been successfully completed.
Continue by emitting a signal to update the function and request the fit.
sequential | :: [input] Whether fit is sequential or not |
Implements MantidQt::MantidWidgets::IMuonFitDataModel.
Definition at line 1254 of file MuonFitPropertyBrowser.cpp.
|
private |
Definition at line 1108 of file MuonFitPropertyBrowser.cpp.
|
inlineoverridevirtual |
Plot a guess function.
Implements MantidQt::MantidWidgets::IMuonFitFunctionModel.
Definition at line 96 of file MuonFitPropertyBrowser.h.
|
inlineoverridevirtual |
Remove a plotted guess.
Implements MantidQt::MantidWidgets::IMuonFitFunctionModel.
Definition at line 94 of file MuonFitPropertyBrowser.h.
void MantidQt::MantidWidgets::MuonFitPropertyBrowser::doTFAsymmFit | ( | ) |
Creates an instance of Fit algorithm, sets its properties and launches it.
Definition at line 640 of file MuonFitPropertyBrowser.cpp.
References MantidQt::MantidWidgets::FitPropertyBrowser::compositeFunction(), MantidQt::MantidWidgets::FitPropertyBrowser::endX(), MantidQt::MantidWidgets::FunctionBrowser::getGlobalFunction(), getUnnormName(), Mantid::Kernel::SingletonHolder< T >::Instance(), MantidQt::MantidWidgets::FitPropertyBrowser::m_compositeFunction, MantidQt::MantidWidgets::FitPropertyBrowser::m_fitActionUndoFit, m_functionBrowser, MantidQt::MantidWidgets::FitPropertyBrowser::m_initialParameters, m_workspacesToFit, MantidQt::MantidWidgets::FitPropertyBrowser::minimizer(), Mantid::API::AlgorithmObserver::observeFinish(), outputName(), MantidQt::MantidWidgets::FitPropertyBrowser::rawData(), setSingleFitLabel(), MantidQt::MantidWidgets::FitPropertyBrowser::startX(), tmp, and MantidQt::MantidWidgets::FitPropertyBrowser::workspaceName().
Referenced by executeFitMenu().
|
overrideprivateslot |
Called when a double property changed.
prop | :: A pointer to the property |
Definition at line 455 of file MuonFitPropertyBrowser.cpp.
References MantidQt::MantidWidgets::PropertyHandler::addConstraint(), MantidQt::MantidWidgets::FitPropertyBrowser::endX(), MantidQt::MantidWidgets::FitPropertyBrowser::endXChanged(), MantidQt::MantidWidgets::PropertyHandler::findHandler(), MantidQt::MantidWidgets::FitPropertyBrowser::getHandler(), MantidQt::MantidWidgets::PropertyHandler::getParameterProperty(), MantidQt::MantidWidgets::FitPropertyBrowser::m_changeSlotsEnabled, MantidQt::MantidWidgets::FitPropertyBrowser::m_compositeFunction, MantidQt::MantidWidgets::FitPropertyBrowser::m_doubleManager, MantidQt::MantidWidgets::FitPropertyBrowser::m_endX, MantidQt::MantidWidgets::FitPropertyBrowser::m_startX, MantidQt::MantidWidgets::PropertyHandler::setAttribute(), MantidQt::MantidWidgets::FitPropertyBrowser::setWorkspace(), MantidQt::MantidWidgets::FitPropertyBrowser::startX(), MantidQt::MantidWidgets::FitPropertyBrowser::startXChanged(), value, and MantidQt::MantidWidgets::FitPropertyBrowser::xRangeChanged().
|
overrideprivateslot |
Called when a dropdown menu is changed.
prop | :: A pointer to the function name property |
Definition at line 336 of file MuonFitPropertyBrowser.cpp.
References MantidQt::MantidWidgets::FitPropertyBrowser::enumChanged(), Mantid::Kernel::Logger::error(), Mantid::API::g_log, genGroupWindow(), genPeriodWindow(), MantidQt::MantidWidgets::FitPropertyBrowser::m_boolManager, MantidQt::MantidWidgets::FitPropertyBrowser::m_browser, MantidQt::MantidWidgets::FitPropertyBrowser::m_changeSlotsEnabled, MantidQt::MantidWidgets::FitPropertyBrowser::m_enumManager, m_groupBoxes, m_groupsToFit, m_groupsToFitOptions, m_multiFitSettingsGroup, m_periodBoxes, m_periodsToFit, m_periodsToFitOptions, m_reselectGroupBtn, m_reselectPeriodBtn, MantidQt::MantidWidgets::FitPropertyBrowser::m_workspace, MantidQt::MantidWidgets::FitPropertyBrowser::m_workspaceNames, setAllGroups(), setAllPairs(), setAllPeriods(), MantidQt::MantidWidgets::FitPropertyBrowser::setOutputName(), tmp, updateGroupDisplay(), updatePeriodDisplay(), updateTFPlot(), and MantidQt::MantidWidgets::FitPropertyBrowser::workspaceNameChanged().
|
overrideslot |
Definition at line 292 of file MuonFitPropertyBrowser.cpp.
References doTFAsymmFit(), MantidQt::MantidWidgets::FitPropertyBrowser::executeFitMenu(), MantidQt::MantidWidgets::FitPropertyBrowser::m_boolManager, and m_TFAsymmMode.
|
private |
After a simultaneous fit, add information to results table and group workspaces.
After a simultaneous fit, insert extra information into parameters table (i.e.
what runs, groups, periods "f0", "f1" etc were) and group the output workspaces
fitAlg | :: [input] Pointer to fit algorithm that just finished |
nWorkspaces | :: [input] Number of workspaces that were fitted |
Definition at line 933 of file MuonFitPropertyBrowser.cpp.
References Mantid::API::AnalysisDataServiceImpl::addOrReplace(), Mantid::API::AnalysisDataServiceImpl::addToGroup(), Mantid::API::g_log, Mantid::Kernel::IPropertyManager::getProperty(), Mantid::Kernel::IPropertyManager::getPropertyValue(), Mantid::API::AnalysisDataServiceImpl::retrieveWS(), Mantid::Kernel::Logger::warning(), and Mantid::Kernel::Exception::NotFoundError::what().
|
private |
After a TF simultaneous fit, insert extra information into parameters table (i.e.
what runs, groups, periods "f0", "f1" etc were) and group the output workspaces
alg | :: [input] Pointer to fit algorithm that just finished |
baseName | :: [input] The common name of the workspaces of interest |
Definition at line 977 of file MuonFitPropertyBrowser.cpp.
References Mantid::API::AnalysisDataServiceImpl::addOrReplace(), Mantid::API::AnalysisDataServiceImpl::addToGroup(), Mantid::API::g_log, Mantid::Kernel::IPropertyManager::getProperty(), Mantid::API::AnalysisDataServiceImpl::retrieveWS(), Mantid::Kernel::Logger::warning(), and Mantid::Kernel::Exception::NotFoundError::what().
|
overridevirtual |
Called when the fit is finished.
Reimplemented from MantidQt::MantidWidgets::FitPropertyBrowser.
Definition at line 877 of file MuonFitPropertyBrowser.cpp.
References Mantid::API::IAlgorithm::name().
void MantidQt::MantidWidgets::MuonFitPropertyBrowser::finishHandleNormal | ( | const Mantid::API::IAlgorithm * | alg | ) |
Definition at line 912 of file MuonFitPropertyBrowser.cpp.
References Mantid::Kernel::IPropertyManager::getProperty().
void MantidQt::MantidWidgets::MuonFitPropertyBrowser::finishHandleTF | ( | const Mantid::API::IAlgorithm * | alg | ) |
Definition at line 884 of file MuonFitPropertyBrowser.cpp.
References Mantid::Kernel::IPropertyManager::getProperty(), and Mantid::Kernel::IPropertyManager::getPropertyValue().
|
overrideslot |
Perform the fit algorithm.
Requests checks and updates prior to running a fit.
Definition at line 742 of file MuonFitPropertyBrowser.cpp.
|
overridesignal |
Emitted when "fit to raw data" is changed.
Referenced by boolChanged().
|
overridesignal |
Emitted when a fit or sequential fit is requested.
|
overridesignal |
Emitted when function should be updated.
|
private |
Definition at line 1689 of file MuonFitPropertyBrowser.cpp.
Referenced by generateBtnPressed().
|
slot |
Definition at line 304 of file MuonFitPropertyBrowser.cpp.
References genCombinePeriodWindow().
Referenced by init().
|
private |
Definition at line 1386 of file MuonFitPropertyBrowser.cpp.
Referenced by enumChanged(), and groupBtnPressed().
|
private |
Definition at line 1667 of file MuonFitPropertyBrowser.cpp.
Referenced by enumChanged(), and periodBtnPressed().
QStringList MantidQt::MantidWidgets::MuonFitPropertyBrowser::getChosenGroups | ( | ) | const |
Returns a list of the selected groups (checked boxes)
Definition at line 1335 of file MuonFitPropertyBrowser.cpp.
Referenced by updateGroupDisplay().
QStringList MantidQt::MantidWidgets::MuonFitPropertyBrowser::getChosenPeriods | ( | ) | const |
Returns a list of the selected periods (checked boxes)
Definition at line 1623 of file MuonFitPropertyBrowser.cpp.
Referenced by updatePeriodDisplay().
|
inlineoverridevirtual |
Get the fitting function.
Implements MantidQt::MantidWidgets::IMuonFitFunctionModel.
Definition at line 73 of file MuonFitPropertyBrowser.h.
|
private |
Definition at line 621 of file MuonFitPropertyBrowser.cpp.
References MantidQt::MantidWidgets::FitPropertyBrowser::rawData(), and TFExtension().
Referenced by doTFAsymmFit().
|
inlineoverridevirtual |
Get names of workspaces that are set to be fitted.
Implements MantidQt::MantidWidgets::IMuonFitFunctionModel.
Definition at line 83 of file MuonFitPropertyBrowser.h.
|
signal |
Referenced by boolChanged().
|
slot |
Definition at line 300 of file MuonFitPropertyBrowser.cpp.
References genGroupWindow().
Referenced by init().
|
overridevirtual |
Whether a guess is plotted or not.
Returns whether or not a guess is plotted.
Implements MantidQt::MantidWidgets::IMuonFitFunctionModel.
Definition at line 1260 of file MuonFitPropertyBrowser.cpp.
|
overridevirtual |
Initialise the layout.
Initialise the muon fit property browser.
Reimplemented from MantidQt::MantidWidgets::FitPropertyBrowser.
Definition at line 97 of file MuonFitPropertyBrowser.cpp.
References MantidQt::MantidWidgets::FitPropertyBrowser::addDoubleProperty(), addGroupCheckbox(), clearChosenGroups(), MantidQt::MantidWidgets::FitPropertyBrowser::createEditors(), MantidQt::MantidWidgets::FitPropertyBrowser::currentItemChanged(), MantidQt::MantidWidgets::FitPropertyBrowser::functionChanged(), generateBtnPressed(), MantidQt::MantidWidgets::FitPropertyBrowser::getAutoBackgroundString(), groupBtnPressed(), index, MantidQt::MantidWidgets::FitPropertyBrowser::initBasicLayout(), m_autoBackground, MantidQt::MantidWidgets::FitPropertyBrowser::m_boolManager, MantidQt::MantidWidgets::FitPropertyBrowser::m_browser, m_btnGroup, m_comboWindow, MantidQt::MantidWidgets::FitPropertyBrowser::m_costFunction, MantidQt::MantidWidgets::FitPropertyBrowser::m_costFunctions, MantidQt::MantidWidgets::FitPropertyBrowser::m_customSettingsGroup, MantidQt::MantidWidgets::FitPropertyBrowser::m_endX, MantidQt::MantidWidgets::FitPropertyBrowser::m_enumManager, MantidQt::MantidWidgets::FitPropertyBrowser::m_evaluationType, MantidQt::MantidWidgets::FitPropertyBrowser::m_evaluationTypes, MantidQt::MantidWidgets::FitPropertyBrowser::m_functionsGroup, m_generateBtn, MantidQt::MantidWidgets::FitPropertyBrowser::m_groupManager, m_groupsToFit, m_groupsToFitOptions, m_groupWindow, MantidQt::MantidWidgets::FitPropertyBrowser::m_intManager, m_keepNorm, m_mainSplitter, MantidQt::MantidWidgets::FitPropertyBrowser::m_minimizer, MantidQt::MantidWidgets::FitPropertyBrowser::m_minimizers, m_multiFitSettingsGroup, m_normalization, MantidQt::MantidWidgets::FitPropertyBrowser::m_output, MantidQt::MantidWidgets::FitPropertyBrowser::m_parameterManager, m_periodsToFit, m_periodsToFitOptions, m_periodWindow, MantidQt::MantidWidgets::FitPropertyBrowser::m_plotDiff, MantidQt::MantidWidgets::FitPropertyBrowser::m_rawData, m_reselectGroupBtn, m_reselectPeriodBtn, MantidQt::MantidWidgets::FitPropertyBrowser::m_settingsGroup, m_showGroup, m_showGroupValue, MantidQt::MantidWidgets::FitPropertyBrowser::m_showParamErrors, m_showPeriods, m_showPeriodValue, MantidQt::MantidWidgets::FitPropertyBrowser::m_startX, MantidQt::MantidWidgets::FitPropertyBrowser::m_stringManager, m_TFAsymmMode, m_widgetSplitter, MantidQt::MantidWidgets::FitPropertyBrowser::m_workspace, MantidQt::MantidWidgets::FitPropertyBrowser::m_workspaceIndex, periodBtnPressed(), MantidQt::MantidWidgets::FitPropertyBrowser::plotDiff(), setNormalization(), setTFAsymmMode(), tmp, MantidQt::MantidWidgets::FitPropertyBrowser::updateDecimals(), and MantidQt::MantidWidgets::FitPropertyBrowser::updateStructureTooltips().
|
overridevirtual |
returns true if the browser is set to multi fitting mode
Returns true is the browser is set to multi fitting mode This works using the visibility state of the button group which is controlled in setMultiFittingMode.
Implements MantidQt::MantidWidgets::IMuonFitFunctionModel.
Definition at line 1107 of file MuonFitPropertyBrowser.cpp.
|
private |
Check if a period is valid.
name | :: [input] Name of period to add |
Definition at line 1562 of file MuonFitPropertyBrowser.cpp.
|
overrideprivatevirtual |
Check if the workspace can be used in the fit.
The accepted types are MatrixWorkspaces same size and that it isn't the generated raw file.
ws | :: The workspace |
Reimplemented from MantidQt::MantidWidgets::FitPropertyBrowser.
Definition at line 840 of file MuonFitPropertyBrowser.cpp.
|
overridevirtual |
Get output name.
Override in the case of simultaneous fits to use a special prefix.
Otherwise, use the parent class method.
Reimplemented from MantidQt::MantidWidgets::FitPropertyBrowser.
Definition at line 1047 of file MuonFitPropertyBrowser.cpp.
Referenced by doTFAsymmFit().
|
signal |
Referenced by boolChanged().
|
slot |
Definition at line 302 of file MuonFitPropertyBrowser.cpp.
References genPeriodWindow().
Referenced by init().
|
overrideprivatevirtual |
Get the registered function names.
Reimplemented from MantidQt::MantidWidgets::FitPropertyBrowser.
Definition at line 590 of file MuonFitPropertyBrowser.cpp.
References Mantid::Kernel::SingletonHolder< T >::Instance(), MantidQt::MantidWidgets::FitPropertyBrowser::m_registeredBackgrounds, MantidQt::MantidWidgets::FitPropertyBrowser::m_registeredFunctions, MantidQt::MantidWidgets::FitPropertyBrowser::m_registeredOther, and MantidQt::MantidWidgets::FitPropertyBrowser::m_registeredPeaks.
|
overridesignal |
Emitted when fit is about to be run.
|
signal |
|
overridevirtual |
Run a non-sequential fit.
Creates an instance of Fit algorithm, sets its properties and launches it.
Implements MantidQt::MantidWidgets::IMuonFitFunctionModel.
Definition at line 747 of file MuonFitPropertyBrowser.cpp.
References observeFinish().
|
overridevirtual |
Run a sequential fit.
Show sequential fit dialog.
Implements MantidQt::MantidWidgets::IMuonFitFunctionModel.
Definition at line 820 of file MuonFitPropertyBrowser.cpp.
|
overrideslot |
Open sequential fit dialog.
Requests checks and updates prior to running a sequential fit.
Definition at line 825 of file MuonFitPropertyBrowser.cpp.
|
signal |
Emitted when sequential fit is requested by user.
void MantidQt::MantidWidgets::MuonFitPropertyBrowser::setAllGroups | ( | ) |
Selects all groups.
Definition at line 1356 of file MuonFitPropertyBrowser.cpp.
Referenced by enumChanged().
void MantidQt::MantidWidgets::MuonFitPropertyBrowser::setAllGroupsOrPairs | ( | const bool | isItGroup | ) |
Sets the multifit mode to all groups or all pairs depending on if a group or pair is selected in the home tab.
isItGroup | :: [input] if it is a group (true) |
Definition at line 1763 of file MuonFitPropertyBrowser.cpp.
References index.
void MantidQt::MantidWidgets::MuonFitPropertyBrowser::setAllPairs | ( | ) |
Definition at line 1370 of file MuonFitPropertyBrowser.cpp.
Referenced by enumChanged().
void MantidQt::MantidWidgets::MuonFitPropertyBrowser::setAllPeriods | ( | ) |
Selects all periods.
Definition at line 1407 of file MuonFitPropertyBrowser.cpp.
Referenced by enumChanged().
void MantidQt::MantidWidgets::MuonFitPropertyBrowser::setAvailableGroups | ( | const QStringList & | groups | ) |
Sets group names and updates checkboxes on UI By default sets all unchecked.
groups | :: [input] List of group names |
Definition at line 1274 of file MuonFitPropertyBrowser.cpp.
void MantidQt::MantidWidgets::MuonFitPropertyBrowser::setAvailablePeriods | ( | const QStringList & | periods | ) |
Sets period names and updates checkboxes on UI By default sets all unchecked.
periods | :: [input] List of period names |
Definition at line 1459 of file MuonFitPropertyBrowser.cpp.
void MantidQt::MantidWidgets::MuonFitPropertyBrowser::setChosenGroup | ( | const QString & | group | ) |
Selects a single group/pair.
group | :: [input] Group/pair to select |
Definition at line 1305 of file MuonFitPropertyBrowser.cpp.
void MantidQt::MantidWidgets::MuonFitPropertyBrowser::setChosenPeriods | ( | const QString & | period | ) |
Ticks the selected periods.
period | :: selected periods |
Definition at line 1655 of file MuonFitPropertyBrowser.cpp.
|
private |
Ticks the selected periods.
chosenPeriods | :: list of selected periods |
Definition at line 1641 of file MuonFitPropertyBrowser.cpp.
|
overridevirtual |
Enable/disable the Fit button;.
Reimplemented from MantidQt::MantidWidgets::FitPropertyBrowser.
Definition at line 307 of file MuonFitPropertyBrowser.cpp.
References MantidQt::MantidWidgets::FitPropertyBrowser::m_fitActionFit, and MantidQt::MantidWidgets::FitPropertyBrowser::m_fitActionSeqFit.
Referenced by checkFitEnabled().
|
private |
Definition at line 853 of file MuonFitPropertyBrowser.cpp.
References Mantid::API::ExperimentInfo::copyExperimentInfoFrom().
|
overridevirtual |
Set function externally.
Called externally to set the function.
func | :: [input] Fit function to use |
Implements MantidQt::MantidWidgets::IMuonFitFunctionModel.
Definition at line 1026 of file MuonFitPropertyBrowser.cpp.
void MantidQt::MantidWidgets::MuonFitPropertyBrowser::setGroupNames | ( | const std::vector< std::string > | groupNames | ) |
Definition at line 1803 of file MuonFitPropertyBrowser.cpp.
|
overridevirtual |
Set multiple fitting mode on or off.
If turned off, all parts of the fit property browser are shown and all extra widgets (like the function browser or data selector) are hidden, so it looks just like it used to before the changes in Mantid 3.8. If turned on, the "Function" and "Data" sections of the fit property browser are hidden and the extra widgets are shown.
enabled | :: [input] Whether to turn this mode on or off |
Implements MantidQt::MantidWidgets::IMuonFitFunctionModel.
Definition at line 1068 of file MuonFitPropertyBrowser.cpp.
|
protected |
Definition at line 495 of file MuonFitPropertyBrowser.cpp.
References setNormalization(), and MantidQt::MantidWidgets::FitPropertyBrowser::workspaceName().
Referenced by init(), and setNormalization().
void MantidQt::MantidWidgets::MuonFitPropertyBrowser::setNormalization | ( | const std::string & | name | ) |
name | :: the ws name to get normalization for |
Definition at line 500 of file MuonFitPropertyBrowser.cpp.
References MantidQt::MantidWidgets::FitPropertyBrowser::m_enumManager, m_normalization, m_normalizationValue, MantidQt::MantidWidgets::FitPropertyBrowser::rawData(), MantidQt::MantidWidgets::readMultipleNormalization(), and tmp.
|
slot |
Sets checkboxes for periods.
numPeriods | :: [input] Number of periods |
Definition at line 1418 of file MuonFitPropertyBrowser.cpp.
|
inlineoverridevirtual |
Set label for simultaneous fit results.
Implements MantidQt::MantidWidgets::IMuonFitDataModel.
Definition at line 81 of file MuonFitPropertyBrowser.h.
void MantidQt::MantidWidgets::MuonFitPropertyBrowser::setSingleFitLabel | ( | const std::string & | name | ) |
sets the label for a single fit and selects the relevant group/pair
name | :: string of the ws |
Definition at line 1735 of file MuonFitPropertyBrowser.cpp.
Referenced by doTFAsymmFit().
void MantidQt::MantidWidgets::MuonFitPropertyBrowser::setTFAsymm | ( | bool | state | ) |
Definition at line 1806 of file MuonFitPropertyBrowser.cpp.
|
private |
Set TF asymmetry mode on or off.
If turned off, the fit property browser looks like Mantid 3.8. If turned on, the fit menu has an extra button and normalization is shown in the data table
enabled | :: [input] Whether to turn this mode on or off |
Definition at line 1195 of file MuonFitPropertyBrowser.cpp.
Referenced by boolChanged(), and init().
|
overridevirtual |
Set the input workspace name.
Reimplemented from MantidQt::MantidWidgets::FitPropertyBrowser.
Definition at line 322 of file MuonFitPropertyBrowser.cpp.
References MantidQt::MantidWidgets::FitPropertyBrowser::m_enumManager, MantidQt::MantidWidgets::FitPropertyBrowser::m_workspace, MantidQt::MantidWidgets::FitPropertyBrowser::m_workspaceNames, and MantidQt::MantidWidgets::FitPropertyBrowser::populateWorkspaceNames().
|
overridevirtual |
Set list of workspaces to fit.
Set the list of workspaces to fit to the given list.
wsNames | :: [input] List of workspace names to fit |
Implements MantidQt::MantidWidgets::IMuonFitDataModel.
Definition at line 1032 of file MuonFitPropertyBrowser.cpp.
|
overrideprotected |
Connect to the AnalysisDataService when shown.
Definition at line 830 of file MuonFitPropertyBrowser.cpp.
|
private |
Definition at line 1215 of file MuonFitPropertyBrowser.cpp.
Referenced by getUnnormName().
|
signal |
|
private |
Sets the display for selected groups.
Definition at line 433 of file MuonFitPropertyBrowser.cpp.
References getChosenGroups(), MantidQt::MantidWidgets::FitPropertyBrowser::m_enumManager, m_multiFitSettingsGroup, m_showGroup, and m_showGroupValue.
Referenced by boolChanged(), and enumChanged().
|
private |
Sets the display for selected periods.
Definition at line 442 of file MuonFitPropertyBrowser.cpp.
References getChosenPeriods(), MantidQt::MantidWidgets::FitPropertyBrowser::m_enumManager, m_multiFitSettingsGroup, m_periodsToFitOptions, m_showPeriods, m_showPeriodValue, and tmp.
Referenced by boolChanged(), and enumChanged().
|
slot |
updates the period displays
Definition at line 1503 of file MuonFitPropertyBrowser.cpp.
|
private |
updates the period displays and conserves the selection if selection is niot available default to all periods
j | :: [input] index of selection in combobox selected is an input for changing runs and preserving selection (list of selected periods) currently has a bug |
Definition at line 1516 of file MuonFitPropertyBrowser.cpp.
|
private |
Makes sure we have the TF plot in TFAsymm mode.
Definition at line 1219 of file MuonFitPropertyBrowser.cpp.
Referenced by enumChanged().
|
inlineoverridevirtual |
User changed dataset index to fit.
Implements MantidQt::MantidWidgets::IMuonFitDataModel.
Definition at line 85 of file MuonFitPropertyBrowser.h.
References index.
|
overridesignal |
Emitted when dataset index to fit is changed.
|
overridesignal |
Emitted when number of workspaces to fit is changed.
|
private |
Definition at line 233 of file MuonFitPropertyBrowser.h.
Referenced by init().
|
private |
Definition at line 223 of file MuonFitPropertyBrowser.h.
Referenced by init().
|
private |
Definition at line 226 of file MuonFitPropertyBrowser.h.
Referenced by init().
|
private |
Definition at line 227 of file MuonFitPropertyBrowser.h.
Referenced by doTFAsymmFit().
|
private |
Definition at line 222 of file MuonFitPropertyBrowser.h.
Referenced by init().
|
private |
Map of group names to checkboxes.
Definition at line 207 of file MuonFitPropertyBrowser.h.
Referenced by boolChanged(), and enumChanged().
|
private |
Definition at line 228 of file MuonFitPropertyBrowser.h.
|
private |
Definition at line 204 of file MuonFitPropertyBrowser.h.
Referenced by enumChanged(), and init().
|
private |
Definition at line 205 of file MuonFitPropertyBrowser.h.
Referenced by enumChanged(), and init().
|
private |
Definition at line 224 of file MuonFitPropertyBrowser.h.
Referenced by init().
|
private |
Definition at line 231 of file MuonFitPropertyBrowser.h.
|
private |
Definition at line 201 of file MuonFitPropertyBrowser.h.
Referenced by boolChanged(), and init().
|
private |
Definition at line 194 of file MuonFitPropertyBrowser.h.
Referenced by init().
|
private |
Definition at line 203 of file MuonFitPropertyBrowser.h.
Referenced by enumChanged(), init(), updateGroupDisplay(), and updatePeriodDisplay().
|
private |
Definition at line 218 of file MuonFitPropertyBrowser.h.
|
private |
Definition at line 199 of file MuonFitPropertyBrowser.h.
Referenced by init(), and setNormalization().
|
private |
Definition at line 200 of file MuonFitPropertyBrowser.h.
Referenced by setNormalization().
|
private |
Map of group names to checkboxes.
Definition at line 214 of file MuonFitPropertyBrowser.h.
Referenced by boolChanged(), and enumChanged().
|
private |
Definition at line 211 of file MuonFitPropertyBrowser.h.
Referenced by enumChanged(), and init().
|
private |
Definition at line 212 of file MuonFitPropertyBrowser.h.
Referenced by enumChanged(), init(), and updatePeriodDisplay().
|
private |
Definition at line 225 of file MuonFitPropertyBrowser.h.
Referenced by init().
|
private |
Definition at line 217 of file MuonFitPropertyBrowser.h.
|
private |
Definition at line 220 of file MuonFitPropertyBrowser.h.
Referenced by enumChanged(), and init().
|
private |
Definition at line 221 of file MuonFitPropertyBrowser.h.
Referenced by enumChanged(), and init().
|
private |
Definition at line 208 of file MuonFitPropertyBrowser.h.
Referenced by init(), and updateGroupDisplay().
|
private |
Definition at line 209 of file MuonFitPropertyBrowser.h.
Referenced by init(), and updateGroupDisplay().
|
private |
Definition at line 215 of file MuonFitPropertyBrowser.h.
Referenced by init(), and updatePeriodDisplay().
|
private |
Definition at line 216 of file MuonFitPropertyBrowser.h.
Referenced by init(), and updatePeriodDisplay().
|
private |
Label to use for simultaneous fits.
Definition at line 198 of file MuonFitPropertyBrowser.h.
|
private |
Definition at line 202 of file MuonFitPropertyBrowser.h.
Referenced by boolChanged(), executeFitMenu(), and init().
|
private |
Splitter for additional widgets and splitter between this and browser.
Definition at line 194 of file MuonFitPropertyBrowser.h.
Referenced by init().
|
private |
Names of workspaces to fit.
Definition at line 196 of file MuonFitPropertyBrowser.h.
Referenced by doTFAsymmFit().
|
static |
Prefix for simultaneous fit results.
Definition at line 79 of file MuonFitPropertyBrowser.h.