|
musrfit 1.9.9
|
#include <PFitter.h>

Public Member Functions | |
| PFitter (PMsrHandler *runInfo, PRunListCollection *runListCollection, Bool_t chisq_only=false, Bool_t yaml_out=false) | |
| Constructor for the fitting engine. | |
| virtual | ~PFitter () |
| Destructor - Cleans up dynamically allocated resources. | |
| Bool_t | IsValid () |
| Bool_t | IsScanOnly () |
| Bool_t | HasConverged () |
| Bool_t | DoFit () |
| Main entry point for executing the fit. | |
Private Member Functions | |
| void | GetPhaseParams () |
| Identifies which parameters represent phase angles. | |
| PIntVector | GetParFromFun (const TString funStr) |
| Extracts parameter numbers from a FUNCTIONS block entry. | |
| PIntVector | GetParFromMap (const TString mapStr) |
| Extracts parameter numbers from a map reference. | |
| Bool_t | CheckCommands () |
| Validates COMMANDS block syntax and builds execution queue. | |
| Bool_t | SetParameters () |
| Transfers MSR parameters to Minuit2 parameter state. | |
| Bool_t | ExecuteContours () |
| Executes CONTOURS command (2D error contours). | |
| Bool_t | ExecuteFitRange (UInt_t lineNo) |
| Executes FIT_RANGE command (optimal time-window search). | |
| Bool_t | ExecuteFix (UInt_t lineNo) |
| Executes FIX command (freeze parameters). | |
| Bool_t | ExecuteHesse () |
| Executes HESSE command (calculate error matrix). | |
| Bool_t | ExecuteMigrad () |
| Executes MIGRAD command (gradient descent minimization). | |
| Bool_t | ExecuteMinimize () |
| Executes MINIMIZE command (automatic algorithm selection). | |
| Bool_t | ExecuteMinos () |
| Executes MINOS command (asymmetric error analysis). | |
| Bool_t | ExecutePlot () |
| Executes PLOT command (visualize scan/contour results). | |
| Bool_t | ExecutePrintLevel (UInt_t lineNo) |
| Executes PRINT command (set verbosity level). | |
| Bool_t | ExecuteRelease (UInt_t lineNo) |
| Executes RELEASE command (unfreeze parameters). | |
| Bool_t | ExecuteRestore () |
| Executes RESTORE command (reload saved parameters). | |
| Bool_t | ExecuteScan () |
| Executes SCAN command (1D parameter space scan). | |
| Bool_t | ExecuteSave (Bool_t first) |
| Executes SAVE command (store current parameters). | |
| Bool_t | ExecuteSimplex () |
| Executes SIMPLEX command (non-gradient minimization). | |
| void | PrepareSector (PDoubleVector ¶m, PDoubleVector &error) |
| Prepares sector χ² analysis data structures. | |
| Bool_t | ExecuteSector (std::ofstream &fout) |
| Executes SECTOR command (time-dependent χ² analysis). | |
| Double_t | MilliTime () |
| Returns current time in milliseconds. | |
| PDoubleVector | ParamRound (const PDoubleVector &par, const PDoubleVector &err, Bool_t &ok) |
| Rounds parameters for output with appropriate precision. | |
Private Attributes | |
| Bool_t | fIsValid |
| Overall validity flag: true if fitter initialized successfully. | |
| Bool_t | fIsScanOnly |
| Scan mode flag: true if only parameter scans requested (no minimization) | |
| Bool_t | fConverged |
| Convergence flag: true if fit converged to a valid minimum. | |
| Bool_t | fChisqOnly |
| Evaluation-only flag: true to calculate χ² without fitting. | |
| Bool_t | fYamlOut |
| Output flag: true to generate YAML output file (MINUIT2.OUTPUT → yaml) | |
| Bool_t | fUseChi2 |
| Fit mode: true = χ² minimization, false = log-max-likelihood. | |
| UInt_t | fPrintLevel |
| Verbosity level: 0=quiet, 1=normal, 2=verbose (Minuit output) | |
| UInt_t | fStrategy |
| Minuit2 strategy: 0=fast/low-accuracy, 1=default, 2=careful/high-accuracy. | |
| PMsrHandler * | fRunInfo |
| Pointer to MSR file handler (parameters, theory, commands) | |
| PRunListCollection * | fRunListCollection |
| Pointer to preprocessed run data collection. | |
| PMsrParamList | fParams |
| Copy of parameter list from MSR file. | |
| PMsrLines | fCmdLines |
| Raw command lines from MSR COMMANDS block. | |
| PIntPairVector | fCmdList |
| Parsed commands: first=command ID, second=line number. | |
| std::unique_ptr< PFitterFcn > | fFitterFcn |
| Objective function for Minuit2 minimization. | |
| ROOT::Minuit2::MnUserParameters | fMnUserParams |
| Minuit2 parameter state (values, errors, limits) | |
| std::unique_ptr< ROOT::Minuit2::FunctionMinimum > | fFcnMin |
| Minuit2 function minimum result. | |
| Bool_t | fScanAll |
| Multi-parameter scan flag: false=1D scan, true=2D scan (not fully implemented) | |
| UInt_t | fScanParameter [2] |
| Parameter indices: [0]=primary scan/contour, [1]=secondary (contours only) | |
| UInt_t | fScanNoPoints |
| Number of scan/contour evaluation points (default=41) | |
| Double_t | fScanLow |
| Scan lower bound: 0.0 = auto (2σ below current value) | |
| Double_t | fScanHigh |
| Scan upper bound: 0.0 = auto (2σ above current value) | |
| PDoublePairVector | fScanData |
| Scan results: (parameter_value, χ²) pairs. | |
| PDoublePairVector | fOriginalFitRange |
| Original fit ranges per run (saved for FIT_RANGE command) | |
| PStringVector | fElapsedTime |
| Timing information for each fit command. | |
| Bool_t | fSectorFlag |
| SECTOR command present flag. | |
| std::vector< PSectorChisq > | fSector |
| Sector analysis results (χ² vs. time windows) | |
| std::vector< bool > | fPhase |
| Phase parameter flags: true if parameter is a phase angle. | |
Main fitting engine interfacing with ROOT Minuit2.
PFitter orchestrates the entire fitting process for musrfit:
Fitting workflow:
Minimization modes:
Example COMMANDS block:
| PFitter::PFitter | ( | PMsrHandler * | runInfo, |
| PRunListCollection * | runListCollection, | ||
| Bool_t | chisq_only = false, | ||
| Bool_t | yaml_out = false ) |
Constructor for the fitting engine.
Constructor for fitting engine.
| runInfo | Pointer to MSR handler containing fit configuration |
| runListCollection | Pointer to collection of data runs to fit |
| chisq_only | If true, only calculate χ² without fitting |
| yaml_out | If true, generate YAML output file with fit results |
Initializes the fitter with MSR configuration and preprocessed data. Sets up the fitting environment including:
The constructor validates the COMMANDS block and creates the objective function (PFitterFcn) but does not start the fit. Call DoFit() to execute.
| runInfo | Pointer to MSR file handler containing fit configuration |
| runListCollection | Pointer to preprocessed data collection |
| chisq_only | If true, only evaluate χ² without fitting (useful for validation) |
| yaml_out | If true, generate YAML output file with fit results |
Definition at line 290 of file PFitter.cpp.
References CheckCommands(), fChisqOnly, fCmdLines, fConverged, fFitterFcn, fIsScanOnly, fOriginalFitRange, fParams, fPrintLevel, fRunInfo, fRunListCollection, fScanAll, fScanHigh, fScanLow, fScanNoPoints, fScanParameter, fSectorFlag, fStrategy, fUseChi2, fYamlOut, PMsrGlobalBlock::GetFitRange(), PMsrHandler::GetMsrCommands(), PMsrHandler::GetMsrParamList(), GetPhaseParams(), and PMUSR_UNDEFINED.
|
virtual |
Destructor - Cleans up dynamically allocated resources.
Frees memory used by command lists, scan data, and timing information. Smart pointers (fFitterFcn, fFcnMin) are automatically cleaned up.
Definition at line 352 of file PFitter.cpp.
References fCmdList, fElapsedTime, and fScanData.
|
private |
Validates COMMANDS block syntax and builds execution queue.
Validates COMMANDS block and builds execution queue.
Parses all command lines, checks for syntax errors, extracts parameters, and populates fCmdList for sequential execution.
Parses all command lines from the MSR file's COMMANDS block, validates syntax and parameters, and constructs an ordered execution list. This ensures commands are executable before starting the fit.
Definition at line 953 of file PFitter.cpp.
References fCmdLines, fCmdList, fIsScanOnly, fIsValid, fOriginalFitRange, fParams, fRunInfo, fScanAll, fScanHigh, fScanLow, fScanNoPoints, fScanParameter, fSector, fSectorFlag, fStrategy, fUseChi2, PMN_CONTOURS, PMN_EIGEN, PMN_FIT_RANGE, PMN_FIX, PMN_HESSE, PMN_INTERACTIVE, PMN_MACHINE_PRECISION, PMN_MIGRAD, PMN_MINIMIZE, PMN_MINOS, PMN_PLOT, PMN_PRINT, PMN_RELEASE, PMN_RESTORE, PMN_SAVE, PMN_SCAN, PMN_SECTOR, PMN_SIMPLEX, PMN_USER_COVARIANCE, PMN_USER_PARAM_STATE, PSectorChisq::SetRunFirstTime(), and PSectorChisq::SetSectorTime().
Referenced by PFitter().
| Bool_t PFitter::DoFit | ( | ) |
Main entry point for executing the fit.
Executes the complete fitting procedure.
Processes all commands from the COMMANDS block sequentially, performs the fit, calculates errors, and prepares output statistics.
This is the primary method that orchestrates the entire fitting process:
Definition at line 647 of file PFitter.cpp.
References ExecuteContours(), ExecuteFitRange(), ExecuteFix(), ExecuteHesse(), ExecuteMigrad(), ExecuteMinimize(), ExecuteMinos(), ExecutePlot(), ExecutePrintLevel(), ExecuteRelease(), ExecuteRestore(), ExecuteSave(), ExecuteScan(), ExecuteSimplex(), fChisqOnly, fCmdList, fFitterFcn, fMnUserParams, fParams, fRunInfo, fRunListCollection, fSector, fSectorFlag, fUseChi2, IsValid(), PMN_CONTOURS, PMN_EIGEN, PMN_FIT_RANGE, PMN_FIX, PMN_HESSE, PMN_INTERACTIVE, PMN_MACHINE_PRECISION, PMN_MIGRAD, PMN_MINIMIZE, PMN_MINOS, PMN_PLOT, PMN_PRINT, PMN_RELEASE, PMN_RESTORE, PMN_SAVE, PMN_SCAN, PMN_SECTOR, PMN_SIMPLEX, PMN_USER_COVARIANCE, PMN_USER_PARAM_STATE, SetParameters(), and status.
|
private |
Executes CONTOURS command (2D error contours).
Calculates confidence regions in 2D parameter space by evaluating χ² on a grid around the minimum.
Execute the minuit2 contour command. Makes sure that a valid minuit2 minimum is present.
return: true if the contour command could be executed successfully, otherwise returns false.
Definition at line 1688 of file PFitter.cpp.
References fFcnMin, fFitterFcn, fScanData, fScanNoPoints, and fScanParameter.
Referenced by DoFit().
|
private |
Executes FIT_RANGE command (optimal time-window search).
Scans fit quality vs. fit start time to find the optimal first-good-bin. Useful for determining when background subtraction is adequate.
| lineNo | Command line number in MSR file |
Change the fit range via command block.
| lineNo | the line number of the command block |
return: true if done, otherwise returns false.
Definition at line 1723 of file PFitter.cpp.
References fCmdLines, fOriginalFitRange, fRunInfo, and fRunListCollection.
Referenced by DoFit().
|
private |
Executes FIX command (freeze parameters).
Prevents specified parameters from varying during subsequent minimization.
| lineNo | Command line number in MSR file |
Fix parameter list given at lineNo of the command block.
| lineNo | the line number of the command block |
return: true if done, otherwise returns false.
Definition at line 1794 of file PFitter.cpp.
References fCmdLines, and fMnUserParams.
Referenced by DoFit().
|
private |
Executes HESSE command (calculate error matrix).
Computes the covariance matrix by evaluating second derivatives at the current minimum. Provides symmetric (parabolic) parameter errors.
Execute the minuit2 hesse command.
return: true if the hesse command could be executed successfully, otherwise returns false.
Definition at line 1832 of file PFitter.cpp.
References fElapsedTime, fFitterFcn, fMnUserParams, fParams, fPrintLevel, fRunInfo, and MilliTime().
Referenced by DoFit().
|
private |
Executes MIGRAD command (gradient descent minimization).
Runs Minuit2's MIGRAD algorithm, the recommended robust minimizer using first derivatives and approximate Hessian updates.
Execute the minuit2 migrad command.
return: true if the migrad command could be executed successfully, otherwise returns false.
Definition at line 1881 of file PFitter.cpp.
References fConverged, fElapsedTime, fFcnMin, fFitterFcn, fIsValid, fMnUserParams, fParams, fPhase, fPrintLevel, fRunInfo, fStrategy, and MilliTime().
Referenced by DoFit().
|
private |
Executes MINIMIZE command (automatic algorithm selection).
Lets Minuit2 choose the best minimization strategy. Usually equivalent to MIGRAD for well-behaved problems.
Execute the minuit2 minimize command.
return: true if the minimize command could be executed successfully, otherwise returns false.
Definition at line 1957 of file PFitter.cpp.
References fConverged, fElapsedTime, fFcnMin, fFitterFcn, fIsValid, fMnUserParams, fParams, fPhase, fPrintLevel, fRunInfo, fStrategy, and MilliTime().
Referenced by DoFit().
|
private |
Executes MINOS command (asymmetric error analysis).
Computes accurate asymmetric confidence intervals by scanning χ² along each parameter axis. Slower but more accurate than HESSE.
Execute the minuit2 minos command.
return: true if the minos command could be executed successfully, otherwise returns false.
Definition at line 2034 of file PFitter.cpp.
References fElapsedTime, fFcnMin, fFitterFcn, fMnUserParams, fParams, fRunInfo, and MilliTime().
Referenced by DoFit().
|
private |
Executes PLOT command (visualize scan/contour results).
Displays scan or contour data from previous SCAN/CONTOURS commands.
Execute the minuit2 plot command.
return: true.
Definition at line 2103 of file PFitter.cpp.
References fScanData.
Referenced by DoFit().
|
private |
Executes PRINT command (set verbosity level).
Controls Minuit2 output detail: 0=minimal, 1=normal, 2=debug.
| lineNo | Command line number in MSR file |
Set the print level.
| lineNo | the line number of the command block |
return: true if done, otherwise returns false.
Definition at line 2123 of file PFitter.cpp.
References fCmdLines, and fPrintLevel.
Referenced by DoFit().
|
private |
Executes RELEASE command (unfreeze parameters).
Allows previously fixed parameters to vary in subsequent fits.
| lineNo | Command line number in MSR file |
Release parameter list given at lineNo of the command block.
| lineNo | the line number of the command block |
return: true if done, otherwise returns false.
Definition at line 2181 of file PFitter.cpp.
References fCmdLines, and fMnUserParams.
Referenced by DoFit().
|
private |
Executes RESTORE command (reload saved parameters).
Restores parameter values from the last SAVE command.
Release all fixed parameters
return: true.
Definition at line 2223 of file PFitter.cpp.
References fMnUserParams.
Referenced by DoFit().
|
private |
Executes SAVE command (store current parameters).
Saves current parameter state for later RESTORE. Updates MSR file statistics on first save (after final fit).
| first | True if this is the first SAVE command in the session |
Execute the save command.
| firstSave | flag indication if this is the first save call and hence write a fresh MINUIT2.OUTPUT |
return: true if the valid minuit2 state is found, otherwise returns false.
Definition at line 2272 of file PFitter.cpp.
References ExecuteSector(), fElapsedTime, fFcnMin, fFitterFcn, PMsrStatisticStructure::fMin, PMsrStatisticStructure::fMinExpected, PMsrStatisticStructure::fMinExpectedPerHisto, PMsrStatisticStructure::fMinPerHisto, fMnUserParams, PMsrStatisticStructure::fNdf, PMsrStatisticStructure::fNdfPerHisto, fParams, fRunInfo, fRunListCollection, fSectorFlag, fUseChi2, fYamlOut, PMsrGlobalBlock::GetFitRange(), ParamRound(), PMUSR_UNDEFINED, and PrepareSector().
Referenced by DoFit().
|
private |
Executes SCAN command (1D parameter space scan).
Evaluates χ² along one or two parameter axes to visualize the objective function landscape near the minimum.
Execute the minuit2 scan command.
return: true.
Definition at line 2245 of file PFitter.cpp.
References fConverged, fFitterFcn, fMnUserParams, fScanAll, fScanData, fScanHigh, fScanLow, fScanNoPoints, and fScanParameter.
Referenced by DoFit().
|
private |
Executes SECTOR command (time-dependent χ² analysis).
Calculates χ² for progressively wider time windows to identify optimal fit ranges and systematic time-dependent effects.
| fout | Output stream for sector analysis results |
Write all chisq/maxLH sector information to MINUIT.OUTPUT and dump it to stdout.
return: if the sector command was successful, otherwise return flase.
Definition at line 2971 of file PFitter.cpp.
References fSector, and fUseChi2.
Referenced by ExecuteSave().
|
private |
Executes SIMPLEX command (non-gradient minimization).
Runs the Nelder-Mead simplex algorithm. Robust for rough objective functions but slow to converge. Often used before MIGRAD for difficult fits.
Execute the minuit2 simplex command.
return: true if the simplex command could be executed successfully, otherwise returns false.
Definition at line 2781 of file PFitter.cpp.
References fConverged, fElapsedTime, fFcnMin, fFitterFcn, fIsValid, fMnUserParams, fParams, fPhase, fPrintLevel, fRunInfo, fStrategy, and MilliTime().
Referenced by DoFit().
|
private |
Extracts parameter numbers from a FUNCTIONS block entry.
Parses "funX" references in theory lines to find all parameters used in the function definition.
| funStr | Function identifier string (e.g., "fun1", "fun23") |
Parses a function definition to find all parameters it references. Recursively handles nested map references within the function.
| funStr | Function identifier (e.g., "fun1", "fun23") |
Definition at line 489 of file PFitter.cpp.
References fRunInfo, and GetParFromMap().
Referenced by GetPhaseParams().
|
private |
Extracts parameter numbers from a map reference.
Parses "mapX" references to find mapped parameters across all runs. Maps allow different runs to use different parameters for the same theoretical component.
| mapStr | Map identifier string (e.g., "map1", "map5") |
Parses "mapX" to find which parameters are mapped to the X-th position across all RUN blocks. Maps allow different runs to use different parameters for the same theoretical component, enabling multi-run fits with run-dependent parameters.
| mapStr | Map identifier (e.g., "map1", "map5") |
Definition at line 570 of file PFitter.cpp.
References fRunInfo.
Referenced by GetParFromFun(), and GetPhaseParams().
|
private |
Identifies which parameters represent phase angles.
Scans the THEORY block to detect parameters used as phases in standard functions (TFieldCos, bessel, etc.). Phase parameters are constrained to [-360°, +360°] during fitting.
Scans the THEORY block to detect parameters used as phases in standard muSR functions. Phase parameters are flagged to enable automatic wrapping to the interval [-360°, +360°] during fitting, preventing meaningless phase values outside this range.
Recognized phase-containing functions:
Phase references can be:
Definition at line 390 of file PFitter.cpp.
References fPhase, fRunInfo, GetParFromFun(), and GetParFromMap().
Referenced by PFitter().
|
inline |
Returns true if fit converged successfully
Definition at line 281 of file PFitter.h.
References fConverged.
|
inline |
Returns true if only parameter scan requested (no minimization)
Definition at line 277 of file PFitter.h.
References fIsScanOnly.
|
inline |
|
private |
Returns current time in milliseconds.
Used for timing fit commands and generating performance statistics.
return:
Definition at line 3027 of file PFitter.cpp.
Referenced by ExecuteHesse(), ExecuteMigrad(), ExecuteMinimize(), ExecuteMinos(), and ExecuteSimplex().
|
private |
Rounds parameters for output with appropriate precision.
Determines significant figures based on errors and formats parameters for display in MSR file output.
| par | Parameter values |
| err | Parameter errors |
| ok | Output flag: false if rounding failed |
Rounds the parameter vector value according to the given error estimate, so that the msr-file value and the fitter result are consistent with each other. This means that musrfit -c, and musrfit -e -t should give essentially the same values of expected chisq (up to small rounding values).
| par | parameter value vector |
| err | error value vector |
| ok | true if size of par and err are identically, otherwise false. |
Definition at line 3050 of file PFitter.cpp.
Referenced by ExecuteSave().
|
private |
Prepares sector χ² analysis data structures.
Initializes sector time windows and allocates storage for sector results.
| param | Current parameter values |
| error | Current parameter errors |
Collect all the necessary chisq/maxLH sector information.
| param | parameter value vector of the converged fit. |
| error | step value vector of the converged fit. |
Definition at line 2858 of file PFitter.cpp.
References fFitterFcn, fRunInfo, fRunListCollection, fSector, and fUseChi2.
Referenced by ExecuteSave().
|
private |
Transfers MSR parameters to Minuit2 parameter state.
Initializes fMnUserParams with values, errors, and bounds from the MSR file's PARAMETERS block.
Feeds the internal minuit2 fit parameters. It also makes sure that unused parameters are fixed.
return: true.
Definition at line 1640 of file PFitter.cpp.
References fMnUserParams, fParams, and fRunInfo.
Referenced by DoFit().
|
private |
|
private |
Raw command lines from MSR COMMANDS block.
Definition at line 311 of file PFitter.h.
Referenced by CheckCommands(), ExecuteFitRange(), ExecuteFix(), ExecutePrintLevel(), ExecuteRelease(), and PFitter().
|
private |
Parsed commands: first=command ID, second=line number.
Definition at line 312 of file PFitter.h.
Referenced by CheckCommands(), DoFit(), and ~PFitter().
|
private |
Convergence flag: true if fit converged to a valid minimum.
Definition at line 297 of file PFitter.h.
Referenced by ExecuteMigrad(), ExecuteMinimize(), ExecuteScan(), ExecuteSimplex(), HasConverged(), and PFitter().
|
private |
Timing information for each fit command.
Definition at line 329 of file PFitter.h.
Referenced by ExecuteHesse(), ExecuteMigrad(), ExecuteMinimize(), ExecuteMinos(), ExecuteSave(), ExecuteSimplex(), and ~PFitter().
|
private |
Minuit2 function minimum result.
Definition at line 317 of file PFitter.h.
Referenced by ExecuteContours(), ExecuteMigrad(), ExecuteMinimize(), ExecuteMinos(), ExecuteSave(), and ExecuteSimplex().
|
private |
Objective function for Minuit2 minimization.
Definition at line 314 of file PFitter.h.
Referenced by DoFit(), ExecuteContours(), ExecuteHesse(), ExecuteMigrad(), ExecuteMinimize(), ExecuteMinos(), ExecuteSave(), ExecuteScan(), ExecuteSimplex(), PFitter(), and PrepareSector().
|
private |
Scan mode flag: true if only parameter scans requested (no minimization)
Definition at line 296 of file PFitter.h.
Referenced by CheckCommands(), IsScanOnly(), and PFitter().
|
private |
Overall validity flag: true if fitter initialized successfully.
Definition at line 295 of file PFitter.h.
Referenced by CheckCommands(), ExecuteMigrad(), ExecuteMinimize(), ExecuteSimplex(), and IsValid().
|
private |
Minuit2 parameter state (values, errors, limits)
Definition at line 316 of file PFitter.h.
Referenced by DoFit(), ExecuteFix(), ExecuteHesse(), ExecuteMigrad(), ExecuteMinimize(), ExecuteMinos(), ExecuteRelease(), ExecuteRestore(), ExecuteSave(), ExecuteScan(), ExecuteSimplex(), and SetParameters().
|
private |
Original fit ranges per run (saved for FIT_RANGE command)
Definition at line 327 of file PFitter.h.
Referenced by CheckCommands(), ExecuteFitRange(), and PFitter().
|
private |
Copy of parameter list from MSR file.
Definition at line 309 of file PFitter.h.
Referenced by CheckCommands(), DoFit(), ExecuteHesse(), ExecuteMigrad(), ExecuteMinimize(), ExecuteMinos(), ExecuteSave(), ExecuteSimplex(), PFitter(), and SetParameters().
|
private |
Phase parameter flags: true if parameter is a phase angle.
Definition at line 335 of file PFitter.h.
Referenced by ExecuteMigrad(), ExecuteMinimize(), ExecuteSimplex(), and GetPhaseParams().
|
private |
Verbosity level: 0=quiet, 1=normal, 2=verbose (Minuit output)
Definition at line 301 of file PFitter.h.
Referenced by ExecuteHesse(), ExecuteMigrad(), ExecuteMinimize(), ExecutePrintLevel(), ExecuteSimplex(), and PFitter().
|
private |
Pointer to MSR file handler (parameters, theory, commands)
Definition at line 306 of file PFitter.h.
Referenced by CheckCommands(), DoFit(), ExecuteFitRange(), ExecuteHesse(), ExecuteMigrad(), ExecuteMinimize(), ExecuteMinos(), ExecuteSave(), ExecuteSimplex(), GetParFromFun(), GetParFromMap(), GetPhaseParams(), PFitter(), PrepareSector(), and SetParameters().
|
private |
Pointer to preprocessed run data collection.
Definition at line 307 of file PFitter.h.
Referenced by DoFit(), ExecuteFitRange(), ExecuteSave(), PFitter(), and PrepareSector().
|
private |
Multi-parameter scan flag: false=1D scan, true=2D scan (not fully implemented)
Definition at line 320 of file PFitter.h.
Referenced by CheckCommands(), ExecuteScan(), and PFitter().
|
private |
Scan results: (parameter_value, χ²) pairs.
Definition at line 325 of file PFitter.h.
Referenced by ExecuteContours(), ExecutePlot(), ExecuteScan(), and ~PFitter().
|
private |
Scan upper bound: 0.0 = auto (2σ above current value)
Definition at line 324 of file PFitter.h.
Referenced by CheckCommands(), ExecuteScan(), and PFitter().
|
private |
Scan lower bound: 0.0 = auto (2σ below current value)
Definition at line 323 of file PFitter.h.
Referenced by CheckCommands(), ExecuteScan(), and PFitter().
|
private |
Number of scan/contour evaluation points (default=41)
Definition at line 322 of file PFitter.h.
Referenced by CheckCommands(), ExecuteContours(), ExecuteScan(), and PFitter().
|
private |
Parameter indices: [0]=primary scan/contour, [1]=secondary (contours only)
Definition at line 321 of file PFitter.h.
Referenced by CheckCommands(), ExecuteContours(), ExecuteScan(), and PFitter().
|
private |
Sector analysis results (χ² vs. time windows)
Definition at line 333 of file PFitter.h.
Referenced by CheckCommands(), DoFit(), ExecuteSector(), and PrepareSector().
|
private |
SECTOR command present flag.
Definition at line 332 of file PFitter.h.
Referenced by CheckCommands(), DoFit(), ExecuteSave(), and PFitter().
|
private |
Minuit2 strategy: 0=fast/low-accuracy, 1=default, 2=careful/high-accuracy.
Definition at line 303 of file PFitter.h.
Referenced by CheckCommands(), ExecuteMigrad(), ExecuteMinimize(), ExecuteSimplex(), and PFitter().
|
private |
Fit mode: true = χ² minimization, false = log-max-likelihood.
Definition at line 300 of file PFitter.h.
Referenced by CheckCommands(), DoFit(), ExecuteSave(), ExecuteSector(), PFitter(), and PrepareSector().
|
private |
Output flag: true to generate YAML output file (MINUIT2.OUTPUT → yaml)
Definition at line 299 of file PFitter.h.
Referenced by ExecuteSave(), and PFitter().