musredit 1.0.0
Loading...
Searching...
No Matches
PAdmin Class Reference

Central administration class for musredit configuration management. More...

#include <PAdmin.h>

Inheritance diagram for PAdmin:
Collaboration diagram for PAdmin:

Public Member Functions

 PAdmin ()
 Constructs the PAdmin object and loads configuration.
 
Configuration Getters

Methods to retrieve current configuration values.

int getTimeout ()
 Get musrfit process timeout in seconds.
 
QString getFontName ()
 Get editor font family name.
 
int getFontSize ()
 Get editor font size in points.
 
QString getExecPath ()
 Get path to musrfit executables.
 
QString getDefaultSavePath ()
 Get default directory for saving files.
 
bool getTitleFromDataFileFlag ()
 Check if title extraction from data file is enabled.
 
bool getMusrviewShowFourierFlag ()
 Check if musrview shows Fourier at startup.
 
bool getMusrviewShowAvgFlag ()
 Check if musrview shows averaged data.
 
bool getMusrviewShowOneToOneFlag ()
 Check if one-to-one theory display is enabled.
 
bool getEnableMusrT0Flag ()
 Check if musrT0 is enabled.
 
bool getYamlOutFlag ()
 Check if YAML output is enabled.
 
int getNoOfThreadsToBeUsed ()
 Get number of threads to be used.
 
bool getKeepMinuit2OutputFlag ()
 Check if MINUIT2 output files are preserved.
 
bool getDumpAsciiFlag ()
 Check if ASCII dump is enabled.
 
bool getDumpRootFlag ()
 Check if ROOT dump is enabled.
 
bool getEstimateN0Flag ()
 Check if N0 estimation is enabled.
 
bool getChisqPerRunBlockFlag ()
 Check if per-run-block chi-square is enabled.
 
bool getIgnoreThemeAutoDetection ()
 Check if theme auto-detection is ignored.
 
bool getDarkThemeIconsMenuFlag ()
 Check if dark theme icons are used in menus.
 
bool getDarkThemeIconsToolbarFlag ()
 Check if dark theme icons are used in toolbar.
 
int getEditWidth ()
 Get editor window width in pixels.
 
int getEditHeight ()
 Get editor window height in pixels.
 
QString getBeamline ()
 Get default beamline name.
 
QString getInstitute ()
 Get default institute name.
 
QString getFileFormat ()
 Get default data file format.
 
bool getLifetimeCorrectionFlag ()
 Check if lifetime correction is enabled.
 
QString getHelpUrl (QString tag)
 Get the help URL for a specific documentation section.
 
QString getTheoFuncPixmapPath ()
 Get path to theory function pixmaps.
 
unsigned int getTheoryCounts ()
 Get number of registered theory functions.
 
PTheorygetTheoryItem (const unsigned int idx)
 Get a theory function definition by index.
 
PMsr2DataParam getMsr2DataParam ()
 Get msr2data default parameters.
 
int getNumRecentFiles ()
 Get number of recent files in list.
 
QString getDefaultPrefPathName ()
 Get path to active configuration file.
 
QString getRecentFile (int idx)
 Get a recent file path by index.
 
Configuration Setters

Methods to modify configuration values.

void setTimeout (const int ival)
 Set musrfit process timeout.
 
void setTitleFromDataFileFlag (const bool flag)
 Enable/disable title extraction from data file.
 
void setMusrviewShowFourierFlag (const bool flag)
 Enable/disable Fourier display at startup.
 
void setMusrviewShowAvgFlag (const bool flag)
 Enable/disable averaged data display.
 
void setMusrviewShowOneToOneFlag (const bool flag)
 Enable/disable one-to-one theory.
 
void setEnableMusrT0Flag (const bool flag)
 Enable/disable musrT0.
 
void setKeepMinuit2OutputFlag (const bool flag)
 Enable/disable MINUIT2 output preservation.
 
void setDumpAsciiFlag (const bool flag)
 Enable/disable ASCII dump.
 
void setDumpRootFlag (const bool flag)
 Enable/disable ROOT dump.
 
void setEstimateN0Flag (const bool flag)
 Enable/disable N0 estimation.
 
void setYamlOutFlag (const bool flag)
 Enable/disable YAML output.
 
void setNoOfThreadsToBeUsed (const int num)
 set number of threads to be used
 
void setChisqPerRunBlockFlag (const bool flag)
 Enable/disable per-run-block chi-square.
 
void setIgnoreThemeAutoDetection (const bool flag)
 Enable/disable theme auto-detection.
 
void setDarkThemeIconsMenuFlag (const bool flag)
 Enable/disable dark theme menu icons.
 
void setDarkThemeIconsToolbarFlag (const bool flag)
 Enable/disable dark theme toolbar icons.
 
void setEditWidth (const int width)
 Set editor window width.
 
void setEditHeight (const int height)
 Set editor window height.
 
void setFontName (const QString str)
 Set editor font family.
 
void setFontSize (const int ival)
 Set editor font size.
 
void addRecentFile (const QString str)
 Add a file to the recent files list.
 
Persistence Methods

Methods for loading and saving configuration.

int loadPrefs (QString fln)
 Load configuration from an XML file.
 
int savePrefs (QString pref_fln)
 Save current configuration to an XML file.
 
void saveRecentFiles ()
 Save recent file list to configuration file.
 

Protected Member Functions

Protected Setters

Setters accessible to friend class PAdminXMLParser during parsing.

void setExecPath (const QString str)
 Set path to musrfit executables.
 
void setDefaultSavePath (const QString str)
 Set default save directory.
 
void setBeamline (const QString str)
 Set default beamline name.
 
void setInstitute (const QString str)
 Set default institute name.
 
void setFileFormat (const QString str)
 Set default file format.
 
void setLifetimeCorrectionFlag (const bool flag)
 Enable/disable lifetime correction.
 
void setHelpUrl (const QString tag, const QString url)
 Set the help URL for a documentation section.
 
void setTheoFuncPixmapPath (const QString str)
 Set path to theory pixmaps.
 
void addTheoryItem (const PTheory theo)
 Add a theory function definition.
 

Private Member Functions

void createMusreditStartupFile ()
 Create default musredit_startup.xml in user's home directory.
 

Private Attributes

General Settings

Core application settings.

int fTimeout {3600}
 Timeout for musrfit processes in seconds (default: 1 hour).
 
QString fFontName {QString("Monospace")}
 Editor font family name (default: Monospace on Linux, Courier New on macOS).
 
int fFontSize {11}
 Editor font size in points (default: 11 on Linux, 16 on macOS).
 
Path Settings

File and directory paths.

QString fPrefPathName {QString("")}
 Full path to the active musredit_startup.xml configuration file.
 
QString fExecPath {QString("")}
 Directory containing musrfit executables (musrfit, musrview, etc.).
 
QString fDefaultSavePath {QString("")}
 Default directory for saving msr files.
 
QString fTheoFuncPixmapPath {QString("")}
 Directory containing theory function formula pixmaps.
 
Recent Files

Recently opened file tracking.

QVector< QString > fRecentFile
 Ring buffer of recently opened file paths (max MAX_RECENT_FILES entries).
 
Display Flags

Flags controlling musrview and editor display behavior.

bool fMusrviewShowFourier {false}
 If true, musrview shows Fourier transform at startup instead of time-domain data.
 
bool fMusrviewShowAvg {false}
 If true, musrview shows run-averaged data; if false, shows individual runs.
 
bool fMusrviewShowOneToOne {false}
 If true, theory is calculated only at data points; if false, uses higher density.
 
bool fEnableMusrT0 {true}
 If true, musrT0 tool is enabled in musredit (default: yes).
 
bool fIgnoreThemeAutoDetection {false}
 If true, ignore OS theme detection and use manual icon settings.
 
bool fDarkThemeIconsMenu {false}
 If true, use dark theme icons in application menus.
 
bool fDarkThemeIconsToolbar {false}
 If true, use dark theme icons in the toolbar.
 
int fEditWidth {900}
 Initial editor window width in pixels.
 
int fEditHeight {800}
 Initial editor window height in pixels.
 
Fit Output Flags

Flags controlling musrfit output options.

bool fKeepMinuit2Output {false}
 If true, preserve MINUIT2.OUTPUT and MINUIT2.root files after fitting.
 
bool fDumpAscii {false}
 If true, musrfit creates ASCII dump files (for debugging).
 
bool fDumpRoot {false}
 If true, musrfit creates ROOT dump files (for debugging).
 
bool fTitleFromDataFile {true}
 If true, extract msr-file title from the data file header.
 
bool fChisqPreRunBlock {false}
 If true, write per-run-block chi-square values to msr-file.
 
bool fEstimateN0 {true}
 If true, estimate N0 parameter for single histogram fits.
 
bool fYamlOut {false}
 If true, write MINUIT2 output additionally as <msr-file>.yaml.
 
int fNoOfThreadsToBeUsed {1}
 number of threads to be used
 
MSR File Defaults

Default values for new msr files.

QString fBeamline
 Default beamline name for new msr-file RUN blocks (e.g., "GPS", "LEM").
 
QString fInstitute
 Default institute name for new msr-file RUN blocks (e.g., "PSI", "ISIS").
 
QString fFileFormat
 Default data file format for new msr-files (e.g., "ROOT-NPP", "MusrRoot").
 
bool fLifetimeCorrection
 If true, enable lifetime correction flag in single histogram msr-files.
 
Msr2Data Parameters

Default parameters for msr2data batch operations.

PMsr2DataParam fMsr2DataParam
 Default parameter values for msr2data tool integration.
 
Help System

Online help URL mappings.

QMap< QString, QString > fHelpUrl
 Maps section tags (e.g., "theory", "parameters") to help URLs.
 
Theory Functions

Available theory function definitions.

QVector< PTheoryfTheory
 Collection of theory functions available in the Theory menu.
 

Friends

class PAdminXMLParser
 Allow XML parser to access protected setters.
 

Detailed Description

Central administration class for musredit configuration management.

The PAdmin class serves as the central repository for all musredit configuration settings. It loads configuration from the musredit_startup.xml file and provides getters/setters for all configurable parameters.

Main Responsibilities:
  • Loading and saving configuration to XML files
  • Managing musrfit executable paths
  • Storing editor preferences (font, window size)
  • Tracking recently opened files
  • Managing theory function definitions
  • Storing msr2data default parameters
  • Mapping help URLs for context-sensitive help
Configuration File Search Order:
The constructor searches for musredit_startup.xml in:
  1. Current working directory
  2. $HOME/.musrfit/musredit/
  3. $MUSRFITPATH/
  4. $ROOTSYS/bin/

If no configuration file is found, a default one is created in $HOME/.musrfit/musredit/.

See also
PAdminXMLParser For XML parsing implementation
PMsr2DataParam For msr2data parameter structure
PTheory For theory function structure

Definition at line 208 of file PAdmin.h.

Constructor & Destructor Documentation

◆ PAdmin()

PAdmin::PAdmin ( )

Constructs the PAdmin object and loads configuration.

Initializes all member variables to default values, then searches for and loads the musredit_startup.xml configuration file. The search order is:

  1. Current working directory
  2. $HOME/.musrfit/musredit/
  3. $MUSRFITPATH/
  4. $ROOTSYS/bin/

If no configuration file is found, a default one is created in the user's home directory. After loading, the constructor verifies that the musrfit executable can be found and that required environment variables are set.

Note
Displays error dialogs if musrfit cannot be found or if required environment variables (ROOTSYS, MUSRFITPATH) are not set.

Definition at line 852 of file PAdmin.cpp.

Member Function Documentation

◆ addRecentFile()

void PAdmin::addRecentFile ( const QString str)

Add a file to the recent files list.

Adds the specified file path to the front of the recent files list. If the file is already in the list, it is not added again (no duplicates). The list is maintained as a ring buffer with a maximum of MAX_RECENT_FILES entries.

Parameters
strFull path to the file to add to the recent list.
See also
getRecentFile() To retrieve files from the list.
saveRecentFiles() To persist the list to the configuration file.

Definition at line 1223 of file PAdmin.cpp.

◆ addTheoryItem()

void PAdmin::addTheoryItem ( const PTheory theo)
inlineprotected

Add a theory function definition.

Definition at line 303 of file PAdmin.h.

◆ createMusreditStartupFile()

void PAdmin::createMusreditStartupFile ( )
private

Create default musredit_startup.xml in user's home directory.

Create a default musredit_startup.xml configuration file.

Creates a new configuration file with default settings in the user's home directory at $HOME/.musrfit/musredit/musredit_startup.xml. The method:

  1. Creates the directory structure if it doesn't exist
  2. Reads the default template from internal Qt resources (musredit_startup.xml.in)
  3. Substitutes build-time paths (@prefix@, @DOCDIR@) with actual values
  4. Adjusts font settings for macOS (Courier New size 16 vs Monospace size 12)
Note
Displays an error dialog if the resource template cannot be found or the output file cannot be written.

Definition at line 1328 of file PAdmin.cpp.

◆ getBeamline()

QString PAdmin::getBeamline ( )
inline

Get default beamline name.

Definition at line 239 of file PAdmin.h.

◆ getChisqPerRunBlockFlag()

bool PAdmin::getChisqPerRunBlockFlag ( )
inline

Check if per-run-block chi-square is enabled.

Definition at line 233 of file PAdmin.h.

◆ getDarkThemeIconsMenuFlag()

bool PAdmin::getDarkThemeIconsMenuFlag ( )
inline

Check if dark theme icons are used in menus.

Definition at line 235 of file PAdmin.h.

◆ getDarkThemeIconsToolbarFlag()

bool PAdmin::getDarkThemeIconsToolbarFlag ( )
inline

Check if dark theme icons are used in toolbar.

Definition at line 236 of file PAdmin.h.

◆ getDefaultPrefPathName()

QString PAdmin::getDefaultPrefPathName ( )
inline

Get path to active configuration file.

Definition at line 249 of file PAdmin.h.

◆ getDefaultSavePath()

QString PAdmin::getDefaultSavePath ( )
inline

Get default directory for saving files.

Definition at line 221 of file PAdmin.h.

◆ getDumpAsciiFlag()

bool PAdmin::getDumpAsciiFlag ( )
inline

Check if ASCII dump is enabled.

Definition at line 230 of file PAdmin.h.

◆ getDumpRootFlag()

bool PAdmin::getDumpRootFlag ( )
inline

Check if ROOT dump is enabled.

Definition at line 231 of file PAdmin.h.

◆ getEditHeight()

int PAdmin::getEditHeight ( )
inline

Get editor window height in pixels.

Definition at line 238 of file PAdmin.h.

◆ getEditWidth()

int PAdmin::getEditWidth ( )
inline

Get editor window width in pixels.

Definition at line 237 of file PAdmin.h.

◆ getEnableMusrT0Flag()

bool PAdmin::getEnableMusrT0Flag ( )
inline

Check if musrT0 is enabled.

Definition at line 226 of file PAdmin.h.

◆ getEstimateN0Flag()

bool PAdmin::getEstimateN0Flag ( )
inline

Check if N0 estimation is enabled.

Definition at line 232 of file PAdmin.h.

◆ getExecPath()

QString PAdmin::getExecPath ( )
inline

Get path to musrfit executables.

Definition at line 220 of file PAdmin.h.

◆ getFileFormat()

QString PAdmin::getFileFormat ( )
inline

Get default data file format.

Definition at line 241 of file PAdmin.h.

◆ getFontName()

QString PAdmin::getFontName ( )
inline

Get editor font family name.

Definition at line 218 of file PAdmin.h.

◆ getFontSize()

int PAdmin::getFontSize ( )
inline

Get editor font size in points.

Definition at line 219 of file PAdmin.h.

◆ getHelpUrl()

QString PAdmin::getHelpUrl ( QString tag)

Get the help URL for a specific documentation section.

Retrieves the URL for online help corresponding to the given tag. The URLs are loaded from the configuration file and map to sections of the musrfit user manual.

Parameters
tagSection identifier. Supported tags include:
  • main - Main musrfit documentation
  • title - TITLE block documentation
  • parameters - FITPARAMETER block documentation
  • theory - THEORY block documentation
  • functions - FUNCTIONS block documentation
  • run - RUN block documentation
  • command - COMMANDS block documentation
  • fourier - FOURIER block documentation
  • plot - PLOT block documentation
  • statistic - STATISTIC block documentation
  • msr2data - msr2data tool documentation
  • musrFT - musrFT tool documentation
Returns
The URL string for the requested help section, or empty string if tag not found.

Definition at line 959 of file PAdmin.cpp.

◆ getIgnoreThemeAutoDetection()

bool PAdmin::getIgnoreThemeAutoDetection ( )
inline

Check if theme auto-detection is ignored.

Definition at line 234 of file PAdmin.h.

◆ getInstitute()

QString PAdmin::getInstitute ( )
inline

Get default institute name.

Definition at line 240 of file PAdmin.h.

◆ getKeepMinuit2OutputFlag()

bool PAdmin::getKeepMinuit2OutputFlag ( )
inline

Check if MINUIT2 output files are preserved.

Definition at line 229 of file PAdmin.h.

◆ getLifetimeCorrectionFlag()

bool PAdmin::getLifetimeCorrectionFlag ( )
inline

Check if lifetime correction is enabled.

Definition at line 242 of file PAdmin.h.

◆ getMsr2DataParam()

PMsr2DataParam PAdmin::getMsr2DataParam ( )
inline

Get msr2data default parameters.

Definition at line 247 of file PAdmin.h.

◆ getMusrviewShowAvgFlag()

bool PAdmin::getMusrviewShowAvgFlag ( )
inline

Check if musrview shows averaged data.

Definition at line 224 of file PAdmin.h.

◆ getMusrviewShowFourierFlag()

bool PAdmin::getMusrviewShowFourierFlag ( )
inline

Check if musrview shows Fourier at startup.

Definition at line 223 of file PAdmin.h.

◆ getMusrviewShowOneToOneFlag()

bool PAdmin::getMusrviewShowOneToOneFlag ( )
inline

Check if one-to-one theory display is enabled.

Definition at line 225 of file PAdmin.h.

◆ getNoOfThreadsToBeUsed()

int PAdmin::getNoOfThreadsToBeUsed ( )
inline

Get number of threads to be used.

Definition at line 228 of file PAdmin.h.

◆ getNumRecentFiles()

int PAdmin::getNumRecentFiles ( )
inline

Get number of recent files in list.

Definition at line 248 of file PAdmin.h.

◆ getRecentFile()

QString PAdmin::getRecentFile ( int idx)

Get a recent file path by index.

Retrieves the full path of a recently opened file from the recent files list. The list is ordered with most recently opened files first.

Parameters
idxZero-based index into the recent files list.
Returns
The full path to the recent file, or empty string if idx is out of range.
See also
getNumRecentFiles() To get the number of recent files.
addRecentFile() To add a new file to the recent list.

Definition at line 1000 of file PAdmin.cpp.

◆ getTheoFuncPixmapPath()

QString PAdmin::getTheoFuncPixmapPath ( )
inline

Get path to theory function pixmaps.

Definition at line 244 of file PAdmin.h.

◆ getTheoryCounts()

unsigned int PAdmin::getTheoryCounts ( )
inline

Get number of registered theory functions.

Definition at line 245 of file PAdmin.h.

◆ getTheoryItem()

PTheory * PAdmin::getTheoryItem ( const unsigned int idx)

Get a theory function definition by index.

Retrieves a pointer to a PTheory structure containing the definition of a theory function. Theory functions are used for fitting muon spin rotation/relaxation data.

Parameters
idxZero-based index of the theory item in the collection.
Returns
Pointer to the PTheory structure, or nullptr if idx is out of range.
See also
getTheoryCounts() To get the number of available theory items.

Definition at line 978 of file PAdmin.cpp.

◆ getTimeout()

int PAdmin::getTimeout ( )
inline

Get musrfit process timeout in seconds.

Definition at line 217 of file PAdmin.h.

◆ getTitleFromDataFileFlag()

bool PAdmin::getTitleFromDataFileFlag ( )
inline

Check if title extraction from data file is enabled.

Definition at line 222 of file PAdmin.h.

◆ getYamlOutFlag()

bool PAdmin::getYamlOutFlag ( )
inline

Check if YAML output is enabled.

Definition at line 227 of file PAdmin.h.

◆ loadPrefs()

int PAdmin::loadPrefs ( QString fln)

Load configuration from an XML file.

Parses the specified musredit_startup.xml file and populates this PAdmin instance with the configuration values. Uses PAdminXMLParser for the actual XML parsing.

Parameters
flnFull path to the configuration XML file to load.
Returns
1 on successful load, 0 if the file doesn't exist or parsing fails.
Note
Displays an error dialog if parsing fails or the file is not found.

Definition at line 1039 of file PAdmin.cpp.

◆ savePrefs()

int PAdmin::savePrefs ( QString pref_fln)

Save current configuration to an XML file.

Saves modified preferences (timeout, flags, font settings) to the configuration file. The method reads the existing XML file, updates the relevant values in-place, and writes the result to the specified output file.

If a local musredit_startup.xml exists in the current directory, it is used as the source; otherwise, the master configuration file is used.

Parameters
pref_flnFull path to the output configuration file.
Returns
1 on successful save, 0 if the file cannot be written.
Note
Only preference values are saved; structure elements like theory definitions are preserved from the source file.

Definition at line 1076 of file PAdmin.cpp.

◆ saveRecentFiles()

void PAdmin::saveRecentFiles ( )

Save recent file list to configuration file.

Save the recent files list to the configuration file.

Persists the current recent files list to musredit_startup.xml. The method reads the existing XML file, removes all existing <path_file_name> entries, inserts the current list, and writes the file back.

If a local musredit_startup.xml exists in the current directory, it is updated; otherwise, the master configuration file (fPrefPathName) is used.

Note
This method modifies the XML file in-place. If neither a local nor master configuration file exists, a warning dialog is displayed.

Definition at line 1250 of file PAdmin.cpp.

◆ setBeamline()

void PAdmin::setBeamline ( const QString str)
inlineprotected

Set default beamline name.

Definition at line 297 of file PAdmin.h.

◆ setChisqPerRunBlockFlag()

void PAdmin::setChisqPerRunBlockFlag ( const bool flag)
inline

Enable/disable per-run-block chi-square.

Definition at line 269 of file PAdmin.h.

◆ setDarkThemeIconsMenuFlag()

void PAdmin::setDarkThemeIconsMenuFlag ( const bool flag)
inline

Enable/disable dark theme menu icons.

Definition at line 271 of file PAdmin.h.

◆ setDarkThemeIconsToolbarFlag()

void PAdmin::setDarkThemeIconsToolbarFlag ( const bool flag)
inline

Enable/disable dark theme toolbar icons.

Definition at line 272 of file PAdmin.h.

◆ setDefaultSavePath()

void PAdmin::setDefaultSavePath ( const QString str)
inlineprotected

Set default save directory.

Definition at line 296 of file PAdmin.h.

◆ setDumpAsciiFlag()

void PAdmin::setDumpAsciiFlag ( const bool flag)
inline

Enable/disable ASCII dump.

Definition at line 264 of file PAdmin.h.

◆ setDumpRootFlag()

void PAdmin::setDumpRootFlag ( const bool flag)
inline

Enable/disable ROOT dump.

Definition at line 265 of file PAdmin.h.

◆ setEditHeight()

void PAdmin::setEditHeight ( const int height)
inline

Set editor window height.

Definition at line 274 of file PAdmin.h.

◆ setEditWidth()

void PAdmin::setEditWidth ( const int width)
inline

Set editor window width.

Definition at line 273 of file PAdmin.h.

◆ setEnableMusrT0Flag()

void PAdmin::setEnableMusrT0Flag ( const bool flag)
inline

Enable/disable musrT0.

Definition at line 262 of file PAdmin.h.

◆ setEstimateN0Flag()

void PAdmin::setEstimateN0Flag ( const bool flag)
inline

Enable/disable N0 estimation.

Definition at line 266 of file PAdmin.h.

◆ setExecPath()

void PAdmin::setExecPath ( const QString str)
inlineprotected

Set path to musrfit executables.

Definition at line 295 of file PAdmin.h.

◆ setFileFormat()

void PAdmin::setFileFormat ( const QString str)
inlineprotected

Set default file format.

Definition at line 299 of file PAdmin.h.

◆ setFontName()

void PAdmin::setFontName ( const QString str)
inline

Set editor font family.

Definition at line 276 of file PAdmin.h.

◆ setFontSize()

void PAdmin::setFontSize ( const int ival)
inline

Set editor font size.

Definition at line 277 of file PAdmin.h.

◆ setHelpUrl()

void PAdmin::setHelpUrl ( const QString tag,
const QString url )
protected

Set the help URL for a documentation section.

Associates a URL with a documentation section tag. This is typically called during XML configuration parsing to load help URL mappings.

Parameters
tagSection identifier (e.g., "main", "theory", "parameters").
urlFull URL to the online documentation for this section.
See also
getHelpUrl() To retrieve URLs by tag.

Definition at line 1020 of file PAdmin.cpp.

◆ setIgnoreThemeAutoDetection()

void PAdmin::setIgnoreThemeAutoDetection ( const bool flag)
inline

Enable/disable theme auto-detection.

Definition at line 270 of file PAdmin.h.

◆ setInstitute()

void PAdmin::setInstitute ( const QString str)
inlineprotected

Set default institute name.

Definition at line 298 of file PAdmin.h.

◆ setKeepMinuit2OutputFlag()

void PAdmin::setKeepMinuit2OutputFlag ( const bool flag)
inline

Enable/disable MINUIT2 output preservation.

Definition at line 263 of file PAdmin.h.

◆ setLifetimeCorrectionFlag()

void PAdmin::setLifetimeCorrectionFlag ( const bool flag)
inlineprotected

Enable/disable lifetime correction.

Definition at line 300 of file PAdmin.h.

◆ setMusrviewShowAvgFlag()

void PAdmin::setMusrviewShowAvgFlag ( const bool flag)
inline

Enable/disable averaged data display.

Definition at line 260 of file PAdmin.h.

◆ setMusrviewShowFourierFlag()

void PAdmin::setMusrviewShowFourierFlag ( const bool flag)
inline

Enable/disable Fourier display at startup.

Definition at line 259 of file PAdmin.h.

◆ setMusrviewShowOneToOneFlag()

void PAdmin::setMusrviewShowOneToOneFlag ( const bool flag)
inline

Enable/disable one-to-one theory.

Definition at line 261 of file PAdmin.h.

◆ setNoOfThreadsToBeUsed()

void PAdmin::setNoOfThreadsToBeUsed ( const int num)
inline

set number of threads to be used

Definition at line 268 of file PAdmin.h.

◆ setTheoFuncPixmapPath()

void PAdmin::setTheoFuncPixmapPath ( const QString str)
inlineprotected

Set path to theory pixmaps.

Definition at line 302 of file PAdmin.h.

◆ setTimeout()

void PAdmin::setTimeout ( const int ival)
inline

Set musrfit process timeout.

Definition at line 257 of file PAdmin.h.

◆ setTitleFromDataFileFlag()

void PAdmin::setTitleFromDataFileFlag ( const bool flag)
inline

Enable/disable title extraction from data file.

Definition at line 258 of file PAdmin.h.

◆ setYamlOutFlag()

void PAdmin::setYamlOutFlag ( const bool flag)
inline

Enable/disable YAML output.

Definition at line 267 of file PAdmin.h.

Friends And Related Symbol Documentation

◆ PAdminXMLParser

friend class PAdminXMLParser
friend

Allow XML parser to access protected setters.

Definition at line 307 of file PAdmin.h.

Member Data Documentation

◆ fBeamline

QString PAdmin::fBeamline
private

Default beamline name for new msr-file RUN blocks (e.g., "GPS", "LEM").

Definition at line 368 of file PAdmin.h.

◆ fChisqPreRunBlock

bool PAdmin::fChisqPreRunBlock {false}
private

If true, write per-run-block chi-square values to msr-file.

Definition at line 358 of file PAdmin.h.

◆ fDarkThemeIconsMenu

bool PAdmin::fDarkThemeIconsMenu {false}
private

If true, use dark theme icons in application menus.

Definition at line 344 of file PAdmin.h.

◆ fDarkThemeIconsToolbar

bool PAdmin::fDarkThemeIconsToolbar {false}
private

If true, use dark theme icons in the toolbar.

Definition at line 345 of file PAdmin.h.

◆ fDefaultSavePath

QString PAdmin::fDefaultSavePath {QString("")}
private

Default directory for saving msr files.

Definition at line 324 of file PAdmin.h.

◆ fDumpAscii

bool PAdmin::fDumpAscii {false}
private

If true, musrfit creates ASCII dump files (for debugging).

Definition at line 355 of file PAdmin.h.

◆ fDumpRoot

bool PAdmin::fDumpRoot {false}
private

If true, musrfit creates ROOT dump files (for debugging).

Definition at line 356 of file PAdmin.h.

◆ fEditHeight

int PAdmin::fEditHeight {800}
private

Initial editor window height in pixels.

Definition at line 347 of file PAdmin.h.

◆ fEditWidth

int PAdmin::fEditWidth {900}
private

Initial editor window width in pixels.

Definition at line 346 of file PAdmin.h.

◆ fEnableMusrT0

bool PAdmin::fEnableMusrT0 {true}
private

If true, musrT0 tool is enabled in musredit (default: yes).

Definition at line 342 of file PAdmin.h.

◆ fEstimateN0

bool PAdmin::fEstimateN0 {true}
private

If true, estimate N0 parameter for single histogram fits.

Definition at line 359 of file PAdmin.h.

◆ fExecPath

QString PAdmin::fExecPath {QString("")}
private

Directory containing musrfit executables (musrfit, musrview, etc.).

Definition at line 323 of file PAdmin.h.

◆ fFileFormat

QString PAdmin::fFileFormat
private

Default data file format for new msr-files (e.g., "ROOT-NPP", "MusrRoot").

Definition at line 370 of file PAdmin.h.

◆ fFontName

QString PAdmin::fFontName {QString("Monospace")}
private

Editor font family name (default: Monospace on Linux, Courier New on macOS).

Definition at line 314 of file PAdmin.h.

◆ fFontSize

int PAdmin::fFontSize {11}
private

Editor font size in points (default: 11 on Linux, 16 on macOS).

Definition at line 315 of file PAdmin.h.

◆ fHelpUrl

QMap<QString, QString> PAdmin::fHelpUrl
private

Maps section tags (e.g., "theory", "parameters") to help URLs.

Definition at line 385 of file PAdmin.h.

◆ fIgnoreThemeAutoDetection

bool PAdmin::fIgnoreThemeAutoDetection {false}
private

If true, ignore OS theme detection and use manual icon settings.

Definition at line 343 of file PAdmin.h.

◆ fInstitute

QString PAdmin::fInstitute
private

Default institute name for new msr-file RUN blocks (e.g., "PSI", "ISIS").

Definition at line 369 of file PAdmin.h.

◆ fKeepMinuit2Output

bool PAdmin::fKeepMinuit2Output {false}
private

If true, preserve MINUIT2.OUTPUT and MINUIT2.root files after fitting.

Definition at line 354 of file PAdmin.h.

◆ fLifetimeCorrection

bool PAdmin::fLifetimeCorrection
private

If true, enable lifetime correction flag in single histogram msr-files.

Definition at line 371 of file PAdmin.h.

◆ fMsr2DataParam

PMsr2DataParam PAdmin::fMsr2DataParam
mutableprivate

Default parameter values for msr2data tool integration.

Definition at line 378 of file PAdmin.h.

◆ fMusrviewShowAvg

bool PAdmin::fMusrviewShowAvg {false}
private

If true, musrview shows run-averaged data; if false, shows individual runs.

Definition at line 340 of file PAdmin.h.

◆ fMusrviewShowFourier

bool PAdmin::fMusrviewShowFourier {false}
private

If true, musrview shows Fourier transform at startup instead of time-domain data.

Definition at line 339 of file PAdmin.h.

◆ fMusrviewShowOneToOne

bool PAdmin::fMusrviewShowOneToOne {false}
private

If true, theory is calculated only at data points; if false, uses higher density.

Definition at line 341 of file PAdmin.h.

◆ fNoOfThreadsToBeUsed

int PAdmin::fNoOfThreadsToBeUsed {1}
private

number of threads to be used

Definition at line 361 of file PAdmin.h.

◆ fPrefPathName

QString PAdmin::fPrefPathName {QString("")}
private

Full path to the active musredit_startup.xml configuration file.

Definition at line 322 of file PAdmin.h.

◆ fRecentFile

QVector<QString> PAdmin::fRecentFile
private

Ring buffer of recently opened file paths (max MAX_RECENT_FILES entries).

Definition at line 332 of file PAdmin.h.

◆ fTheoFuncPixmapPath

QString PAdmin::fTheoFuncPixmapPath {QString("")}
private

Directory containing theory function formula pixmaps.

Definition at line 325 of file PAdmin.h.

◆ fTheory

QVector<PTheory> PAdmin::fTheory
private

Collection of theory functions available in the Theory menu.

Definition at line 392 of file PAdmin.h.

◆ fTimeout

int PAdmin::fTimeout {3600}
private

Timeout for musrfit processes in seconds (default: 1 hour).

Definition at line 313 of file PAdmin.h.

◆ fTitleFromDataFile

bool PAdmin::fTitleFromDataFile {true}
private

If true, extract msr-file title from the data file header.

Definition at line 357 of file PAdmin.h.

◆ fYamlOut

bool PAdmin::fYamlOut {false}
private

If true, write MINUIT2 output additionally as <msr-file>.yaml.

Definition at line 360 of file PAdmin.h.


The documentation for this class was generated from the following files: