|
musredit 1.0.0
|
Dialog for creating asymmetry-type RUN blocks in msr files. More...
#include <PGetAsymmetryRunBlockDialog.h>


Public Member Functions | |
| PGetAsymmetryRunBlockDialog (const QString helpUrl) | |
| Constructs the asymmetry 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 asymmetry block. | |
| QString | getAlphaParameter (bool &present) |
| Generates the alpha parameter line for the asymmetry block. | |
| QString | getBetaParameter (bool &present) |
| Generates the beta parameter line for the asymmetry block. | |
| QString | getMap (bool &valid) |
| Generates the parameter map line for the asymmetry block. | |
| QString | getForward () |
| Get the forward histogram specification line. | |
| QString | getBackward () |
| Get the backward histogram specification line. | |
| QString | getBackground (bool &valid) |
| Generates the background specification for the asymmetry block. | |
| QString | getData (bool &valid) |
| Generates the data range specification for the asymmetry block. | |
| QString | getT0 (bool &present) |
| Generates the T0 (time zero) specification for the asymmetry block. | |
| QString | getFitRange (bool &valid) |
| Generates the fit range specification for the asymmetry block. | |
| QString | getPacking (bool &present) |
| Generates the packing (rebinning) specification for the asymmetry block. | |
Private Slots | |
| void | helpContent () |
| Opens the online help for asymmetry RUN blocks. | |
Private Attributes | |
| QString | fHelpUrl |
| URL to the online documentation for asymmetry RUN blocks. | |
Dialog for creating asymmetry-type RUN blocks in msr files.
This dialog collects all parameters needed to generate an asymmetry RUN block for muon spin rotation data analysis. Asymmetry fitting uses the ratio of forward and backward detector counts to extract the muon spin polarization signal.
Definition at line 91 of file PGetAsymmetryRunBlockDialog.h.
| PGetAsymmetryRunBlockDialog::PGetAsymmetryRunBlockDialog | ( | const QString | helpUrl | ) |
Constructs the asymmetry RUN block dialog.
Initializes the dialog UI and sets up input validators for all numeric fields. The dialog is created as modal.
| helpUrl | URL to the online documentation for asymmetry RUN blocks. |
Definition at line 66 of file PGetAsymmetryRunBlockDialog.cpp.
| QString PGetAsymmetryRunBlockDialog::getAlphaParameter | ( | bool & | present | ) |
Generates the alpha parameter line for the asymmetry block.
Alpha is the detector efficiency ratio correction parameter used in asymmetry calculations: A = (N_F - alpha * N_B) / (N_F + alpha * N_B). The parameter typically references a fit parameter number.
| [out] | present | Set to true if an alpha value was entered, false if empty (default alpha=1 will be used). |
Definition at line 129 of file PGetAsymmetryRunBlockDialog.cpp.
| QString PGetAsymmetryRunBlockDialog::getBackground | ( | bool & | valid | ) |
Generates the background specification for the asymmetry block.
Creates either a "background" line (bin ranges for background estimation) or a "backgr.fix" line (fixed background values). Only one type should be specified.
| [out] | valid | Set to true if valid background info is provided, false if no background info given (a default "background 0 10 0 10" is returned). |
Definition at line 213 of file PGetAsymmetryRunBlockDialog.cpp.
|
inline |
Get the backward histogram specification line.
Definition at line 117 of file PGetAsymmetryRunBlockDialog.h.
| QString PGetAsymmetryRunBlockDialog::getBetaParameter | ( | bool & | present | ) |
Generates the beta parameter line for the asymmetry block.
Beta is the detector phase correction parameter, typically used for correcting phase differences between forward and backward detectors. The parameter typically references a fit parameter number.
| [out] | present | Set to true if a beta value was entered, false if empty (default beta=1 will be used). |
Definition at line 154 of file PGetAsymmetryRunBlockDialog.cpp.
| QString PGetAsymmetryRunBlockDialog::getData | ( | bool & | valid | ) |
Generates the data range specification for the asymmetry block.
Creates the "data" line specifying the histogram bin ranges to be used for fitting. Four values are required: start and end bins for both forward and backward histograms.
| [out] | valid | Set to true if all four data range values are provided, false if any are missing. |
Definition at line 257 of file PGetAsymmetryRunBlockDialog.cpp.
| QString PGetAsymmetryRunBlockDialog::getFitRange | ( | bool & | valid | ) |
Generates the fit range specification for the asymmetry block.
Creates the "fit" line specifying the time range (in microseconds) over which the fit will be performed.
| [out] | valid | Set to true if both fit range values are provided, false if missing (a default range [0.0, 10.0] is returned). |
Definition at line 316 of file PGetAsymmetryRunBlockDialog.cpp.
|
inline |
Get the forward histogram specification line.
Definition at line 111 of file PGetAsymmetryRunBlockDialog.h.
| QString PGetAsymmetryRunBlockDialog::getMap | ( | bool & | valid | ) |
Generates the parameter map line for the asymmetry 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 179 of file PGetAsymmetryRunBlockDialog.cpp.
| QString PGetAsymmetryRunBlockDialog::getPacking | ( | bool & | present | ) |
Generates the packing (rebinning) specification for the asymmetry 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.
| [out] | present | Set to true if a packing value was provided, false if missing (a default packing of 1 is returned). |
Definition at line 346 of file PGetAsymmetryRunBlockDialog.cpp.
| QString PGetAsymmetryRunBlockDialog::getRunHeaderInfo | ( | ) |
Generates the RUN header line for the asymmetry 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 104 of file PGetAsymmetryRunBlockDialog.cpp.
| QString PGetAsymmetryRunBlockDialog::getT0 | ( | bool & | present | ) |
Generates the T0 (time zero) specification for the asymmetry block.
Creates the "t0" line specifying the time zero bin for both forward and backward histograms. T0 is the bin corresponding to muon implantation time.
| [out] | present | Set to true if both t0 values are provided, false otherwise. |
Definition at line 288 of file PGetAsymmetryRunBlockDialog.cpp.
|
privateslot |
Opens the online help for asymmetry RUN blocks.
Opens the online help documentation for asymmetry 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 369 of file PGetAsymmetryRunBlockDialog.cpp.
|
private |
URL to the online documentation for asymmetry RUN blocks.
Definition at line 133 of file PGetAsymmetryRunBlockDialog.h.