musrfit 1.10.0
PFitter.h File Reference
#include <memory>
#include "Minuit2/MnUserParameters.h"
#include "Minuit2/FunctionMinimum.h"
#include "PMusr.h"
#include "PMsrHandler.h"
#include "PRunListCollection.h"
#include "PFitterFcn.h"
Include dependency graph for PFitter.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  PSectorChisq
 
class  PFitter
 

Macros

#define PMN_INTERACTIVE   0
 Interactive mode (not implemented in musrfit)
 
#define PMN_CONTOURS   1
 Contour plot command (2D error ellipses)
 
#define PMN_EIGEN   2
 Eigenvalue analysis (not implemented)
 
#define PMN_FIT_RANGE   3
 Fit range scan to find optimal fitting window.
 
#define PMN_FIX   4
 Fix parameters at current values.
 
#define PMN_HESSE   5
 Calculate Hessian matrix for error estimation.
 
#define PMN_MACHINE_PRECISION   6
 Set machine precision for numerical derivatives.
 
#define PMN_MIGRAD   7
 MIGRAD minimizer (gradient-based, recommended)
 
#define PMN_MINIMIZE   8
 MINIMIZE (automatic algorithm selection)
 
#define PMN_MINOS   9
 MINOS error analysis (asymmetric confidence intervals)
 
#define PMN_PLOT   10
 Plot command (for scan/contour results)
 
#define PMN_RELEASE   11
 Release previously fixed parameters.
 
#define PMN_RESTORE   12
 Restore parameters from previous SAVE.
 
#define PMN_SAVE   13
 Save current parameter state.
 
#define PMN_SCAN   14
 Parameter scan (1D or 2D)
 
#define PMN_SIMPLEX   15
 SIMPLEX minimizer (robust but slow)
 
#define PMN_STRATEGY   16
 Set minimization strategy (0=fast, 1=default, 2=careful)
 
#define PMN_USER_COVARIANCE   17
 Set user covariance matrix (not implemented)
 
#define PMN_USER_PARAM_STATE   18
 Set user parameter state (not implemented)
 
#define PMN_PRINT   19
 Set print level for fit output (0=quiet, 1=normal, 2=verbose)
 
#define PMN_SECTOR   20
 Calculate χ² vs. time in sectors (time-window analysis)
 

Macro Definition Documentation

◆ PMN_CONTOURS

#define PMN_CONTOURS   1

Contour plot command (2D error ellipses)

Definition at line 64 of file PFitter.h.

Referenced by PFitter::CheckCommands(), and PFitter::DoFit().

◆ PMN_EIGEN

#define PMN_EIGEN   2

Eigenvalue analysis (not implemented)

Definition at line 66 of file PFitter.h.

Referenced by PFitter::CheckCommands(), and PFitter::DoFit().

◆ PMN_FIT_RANGE

#define PMN_FIT_RANGE   3

Fit range scan to find optimal fitting window.

Definition at line 68 of file PFitter.h.

Referenced by PFitter::CheckCommands(), and PFitter::DoFit().

◆ PMN_FIX

#define PMN_FIX   4

Fix parameters at current values.

Definition at line 70 of file PFitter.h.

Referenced by PFitter::CheckCommands(), and PFitter::DoFit().

◆ PMN_HESSE

#define PMN_HESSE   5

Calculate Hessian matrix for error estimation.

Definition at line 72 of file PFitter.h.

Referenced by PFitter::CheckCommands(), and PFitter::DoFit().

◆ PMN_INTERACTIVE

#define PMN_INTERACTIVE   0

Interactive mode (not implemented in musrfit)

Minuit2 command identifiers for COMMANDS block.

These constants map MSR file COMMANDS block keywords to internal command identifiers. Commands control the fitting process, including minimization algorithms, parameter fixing/releasing, error analysis, and output options.

Categories:

  • Minimizers: MIGRAD (gradient descent), SIMPLEX (non-gradient), MINIMIZE (automatic)
  • Error analysis: HESSE (covariance matrix), MINOS (asymmetric errors)
  • Parameter control: FIX, RELEASE, RESTORE, SAVE
  • Exploration: SCAN (1D/2D parameter space), CONTOURS (error ellipses)
  • Settings: STRATEGY, MACHINE_PRECISION, PRINT
  • Analysis: FIT_RANGE (time-window scan), SECTOR (chisq vs. time)

Definition at line 62 of file PFitter.h.

Referenced by PFitter::CheckCommands(), and PFitter::DoFit().

◆ PMN_MACHINE_PRECISION

#define PMN_MACHINE_PRECISION   6

Set machine precision for numerical derivatives.

Definition at line 74 of file PFitter.h.

Referenced by PFitter::CheckCommands(), and PFitter::DoFit().

◆ PMN_MIGRAD

#define PMN_MIGRAD   7

MIGRAD minimizer (gradient-based, recommended)

Definition at line 76 of file PFitter.h.

Referenced by PFitter::CheckCommands(), and PFitter::DoFit().

◆ PMN_MINIMIZE

#define PMN_MINIMIZE   8

MINIMIZE (automatic algorithm selection)

Definition at line 78 of file PFitter.h.

Referenced by PFitter::CheckCommands(), and PFitter::DoFit().

◆ PMN_MINOS

#define PMN_MINOS   9

MINOS error analysis (asymmetric confidence intervals)

Definition at line 80 of file PFitter.h.

Referenced by PFitter::CheckCommands(), and PFitter::DoFit().

◆ PMN_PLOT

#define PMN_PLOT   10

Plot command (for scan/contour results)

Definition at line 82 of file PFitter.h.

Referenced by PFitter::CheckCommands(), and PFitter::DoFit().

◆ PMN_PRINT

#define PMN_PRINT   19

Set print level for fit output (0=quiet, 1=normal, 2=verbose)

Definition at line 100 of file PFitter.h.

Referenced by PFitter::CheckCommands(), and PFitter::DoFit().

◆ PMN_RELEASE

#define PMN_RELEASE   11

Release previously fixed parameters.

Definition at line 84 of file PFitter.h.

Referenced by PFitter::CheckCommands(), and PFitter::DoFit().

◆ PMN_RESTORE

#define PMN_RESTORE   12

Restore parameters from previous SAVE.

Definition at line 86 of file PFitter.h.

Referenced by PFitter::CheckCommands(), and PFitter::DoFit().

◆ PMN_SAVE

#define PMN_SAVE   13

Save current parameter state.

Definition at line 88 of file PFitter.h.

Referenced by PFitter::CheckCommands(), and PFitter::DoFit().

◆ PMN_SCAN

#define PMN_SCAN   14

Parameter scan (1D or 2D)

Definition at line 90 of file PFitter.h.

Referenced by PFitter::CheckCommands(), and PFitter::DoFit().

◆ PMN_SECTOR

#define PMN_SECTOR   20

Calculate χ² vs. time in sectors (time-window analysis)

Definition at line 102 of file PFitter.h.

Referenced by PFitter::CheckCommands(), and PFitter::DoFit().

◆ PMN_SIMPLEX

#define PMN_SIMPLEX   15

SIMPLEX minimizer (robust but slow)

Definition at line 92 of file PFitter.h.

Referenced by PFitter::CheckCommands(), and PFitter::DoFit().

◆ PMN_STRATEGY

#define PMN_STRATEGY   16

Set minimization strategy (0=fast, 1=default, 2=careful)

Definition at line 94 of file PFitter.h.

◆ PMN_USER_COVARIANCE

#define PMN_USER_COVARIANCE   17

Set user covariance matrix (not implemented)

Definition at line 96 of file PFitter.h.

Referenced by PFitter::CheckCommands(), and PFitter::DoFit().

◆ PMN_USER_PARAM_STATE

#define PMN_USER_PARAM_STATE   18

Set user parameter state (not implemented)

Definition at line 98 of file PFitter.h.

Referenced by PFitter::CheckCommands(), and PFitter::DoFit().