|
musredit 1.0.0
|
Dialog for creating single histogram type RUN blocks in msr files. More...
#include <PGetSingleHistoRunBlockDialog.h>


Public Member Functions | |
| PGetSingleHistoRunBlockDialog (const QString helpUrl="", const bool lifetimeCorrection=true) | |
| Constructs the single histogram RUN block dialog. | |
RUN Block Generators | |
Methods to generate formatted msr-file text for each parameter. | |
| QString | getRunHeaderInfo () |
| Generates the RUN header line for the single histogram block. | |
| QString | getMap (bool &valid) |
| Generates the parameter map line for the single histogram block. | |
| QString | getForward () |
| Gets the forward histogram specification line. | |
| QString | getNorm () |
| Gets the normalization parameter line. | |
| QString | getData (bool &valid) |
| Generates the data range specification for the single histogram block. | |
| QString | getBackground (bool &valid) |
| Generates the background specification for the single histogram block. | |
| QString | getFitRange (bool &valid) |
| Generates the fit range specification for the single histogram block. | |
| QString | getPacking (bool &present) |
| Generates the packing (rebinning) specification for the single histogram block. | |
| QString | getT0 (bool &present) |
| Generates the T0 (time zero) specification for the single histogram block. | |
| QString | getMuonLifetimeParam (bool &present) |
| Generates the muon lifetime parameter line for the single histogram block. | |
| QString | getLifetimeCorrection (bool &present) |
| Generates the lifetime correction flag for the single histogram block. | |
Private Slots | |
| void | helpContent () |
| Opens the online help for single histogram RUN blocks. | |
Private Attributes | |
| QString | fHelpUrl |
| URL to the online documentation for single histogram RUN blocks. | |
Dialog for creating single histogram type RUN blocks in msr files.
This dialog collects all parameters needed to generate a single histogram RUN block for muon spin rotation data analysis. Single histogram fitting is used when analyzing individual detector counts rather than computing asymmetry from forward/backward detector pairs.
Definition at line 101 of file PGetSingleHistoRunBlockDialog.h.
| PGetSingleHistoRunBlockDialog::PGetSingleHistoRunBlockDialog | ( | const QString | helpUrl = "", |
| const bool | lifetimeCorrection = true ) |
Constructs the single histogram RUN block dialog.
Initializes the dialog UI and sets up input validators for all numeric fields. The dialog is created as modal. The lifetime correction checkbox is initialized based on the provided parameter.
| helpUrl | URL to the online documentation for single histogram RUN blocks. Defaults to empty string if not provided. |
| lifetimeCorrection | Initial state of the lifetime correction checkbox. Defaults to true (enabled). |
Definition at line 71 of file PGetSingleHistoRunBlockDialog.cpp.
| QString PGetSingleHistoRunBlockDialog::getBackground | ( | bool & | valid | ) |
Generates the background specification for the single histogram block.
Creates either a "background" line (bin ranges for background estimation), "backgr.fix" line (fixed background value), or "backgr.fit" line (fit parameter for background). Only one type should be specified; if multiple are provided, the last one takes precedence.
| [out] | valid | Set to true if valid background info is provided, false if no background info given (a default "background 0 10" is returned). |
Definition at line 196 of file PGetSingleHistoRunBlockDialog.cpp.
| QString PGetSingleHistoRunBlockDialog::getData | ( | bool & | valid | ) |
Generates the data range specification for the single histogram block.
Creates the "data" line specifying the histogram bin range to be used for fitting. Both start and end bins are required.
| [out] | valid | Set to true if both data range values are provided, false if either is missing. |
Definition at line 160 of file PGetSingleHistoRunBlockDialog.cpp.
| QString PGetSingleHistoRunBlockDialog::getFitRange | ( | bool & | valid | ) |
Generates the fit range specification for the single histogram block.
Creates the "fit" line specifying the time range (in microseconds) over which the fit will be performed. If no fit range is provided by the user, a default range of [0.0, 10.0] is returned.
| [out] | valid | Set to true if both fit range values are provided by the user, false if using the default range. |
Definition at line 240 of file PGetSingleHistoRunBlockDialog.cpp.
|
inline |
Gets the forward histogram specification line.
Definition at line 119 of file PGetSingleHistoRunBlockDialog.h.
| QString PGetSingleHistoRunBlockDialog::getLifetimeCorrection | ( | bool & | present | ) |
Generates the lifetime correction flag for the single histogram block.
Creates the "lifetimecorrection" line if the checkbox is enabled. When present, musrfit will apply muon lifetime correction to the data, effectively removing the exponential decay component from the signal.
| [out] | present | Set to true if lifetime correction is enabled, false otherwise. |
Definition at line 352 of file PGetSingleHistoRunBlockDialog.cpp.
| QString PGetSingleHistoRunBlockDialog::getMap | ( | bool & | valid | ) |
Generates the parameter map line for the single histogram block.
The map line defines the mapping between theory function parameters and the fit parameters defined in the FITPARAMETER block. It should contain only space-separated integers.
| [out] | valid | Set to true if the map contains only digits and spaces, false if invalid characters are found. |
Definition at line 130 of file PGetSingleHistoRunBlockDialog.cpp.
| QString PGetSingleHistoRunBlockDialog::getMuonLifetimeParam | ( | bool & | present | ) |
Generates the muon lifetime parameter line for the single histogram block.
Creates the "lifetime" line specifying which fit parameter contains the muon lifetime value. This is used when the muon lifetime should be fitted rather than using the fixed standard value. This parameter is optional.
| [out] | present | Set to true if a lifetime parameter was provided, false otherwise. |
Definition at line 325 of file PGetSingleHistoRunBlockDialog.cpp.
|
inline |
Gets the normalization parameter line.
Definition at line 125 of file PGetSingleHistoRunBlockDialog.h.
| QString PGetSingleHistoRunBlockDialog::getPacking | ( | bool & | present | ) |
Generates the packing (rebinning) specification for the single histogram block.
Creates the "packing" line specifying how many histogram bins should be combined into one. A packing of 1 means no rebinning, 2 means combine pairs of bins, etc. If no packing is provided, a default value of 1 is used.
| [out] | present | Set to true if a packing value was provided by the user, false if using the default value. |
Definition at line 270 of file PGetSingleHistoRunBlockDialog.cpp.
| QString PGetSingleHistoRunBlockDialog::getRunHeaderInfo | ( | ) |
Generates the RUN header line for the single histogram block.
Creates the first line of the RUN block containing the run file name, beamline identifier, institute name, and data file format. The beamline is converted to uppercase.
Definition at line 105 of file PGetSingleHistoRunBlockDialog.cpp.
| QString PGetSingleHistoRunBlockDialog::getT0 | ( | bool & | present | ) |
Generates the T0 (time zero) specification for the single histogram block.
Creates the "t0" line specifying the time zero bin for the histogram. T0 is the bin corresponding to muon implantation time. This parameter is optional.
| [out] | present | Set to true if a t0 value was provided, false if not specified. |
Definition at line 297 of file PGetSingleHistoRunBlockDialog.cpp.
|
privateslot |
Opens the online help for single histogram RUN blocks.
Opens the online help documentation for single histogram RUN blocks.
Attempts to open the help URL in the system's default web browser using QDesktopServices. If the URL is empty, displays an informational message. If the browser fails to open, displays an error message with a clickable link.
Definition at line 374 of file PGetSingleHistoRunBlockDialog.cpp.
|
private |
URL to the online documentation for single histogram RUN blocks.
Definition at line 143 of file PGetSingleHistoRunBlockDialog.h.