Commit Graph

76 Commits

Author SHA1 Message Date
4a20d805dd updated the copyright info. 2025-01-30 11:15:42 +01:00
ead1674b13 Explicit passing of MnStrategy during minimizer initialization
This patch fixes compilation errors that arise with recent ROOT versions (e.g., 6.34.02),
which require a ROOT::Minuit2::MnStrategy object to be passed when initializing the
ROOT::Minuit2::MnX (X = Migrad, Simplex, Minimize) minimizers (i.e., instead of the integer
representing the "strategy").
2025-01-09 11:38:33 -08:00
64d3b6192b added the option to write the content of the MINUIT2.OUTPUT ascii file as yaml. This extends the previous commit from Ryan M.L. McFadden. 2024-06-18 11:16:15 +02:00
833171c712 write the fit results to an easy-to-read/parse yaml file
This patch adds routines for writing a comprehensive set of fit results (i.e., parameter values, parabolic errors, asymmetric errors, covariances, correlation coefficients, etc.) for an individual `.msr` file to an easy-to-read/parse `.yaml` file.

The main motivation for the code addition is to provide users with easy access to the fit's covariance matrix without the need for "extra" manual effort (e.g., parsing the contents of `MINUIT2.OUTPUT` or `MINUIT2.root`). The other fit quantities are also included for completeness.

Reading/accessing the output is trivial using, for example, the PyYAML Python library (https://github.com/yaml/pyyaml):

```python
import yaml

with open("2125_tf_histo.yaml", "r") as fh:
	results = yaml.load(fh, Loader=yaml.SafeLoader)

cov = results["covariance"]["Field_1"]["Sigma_1"]
```

Note: the naming conventions chosen for the blocks in the `.yaml` output closely follow those used by the iminuit Python library (https://github.com/scikit-hep/iminuit).
2024-06-17 12:51:04 -03:00
79c8be54bf update of the copyright info. 2024-02-03 19:58:11 +01:00
93754a9fc2 replaced some raw pointer by smart pointer in PFitter. 2023-10-21 17:45:49 +02:00
1a72d67be9 switched PFitter to smart pointers. 2023-10-21 11:39:16 +02:00
f7620445dc fixed c++ streaming output flag error. 2023-03-07 12:28:01 +01:00
fe32046c21 updated the copyright info. 2023-01-05 10:24:31 +01:00
8274fb9d54 add option to musrfit that the user can choose from the command line the number of threads to be used for OpenMP. Updated the docu accordingly. 2021-10-02 19:41:45 +02:00
df03277c4c removed debug info from phase detection. 2021-09-22 09:54:25 +02:00
00398c7fa9 fix phases to +-360 degree. 2021-09-22 08:09:18 +02:00
c06f510aff changes needed since upcoming ROOT6.24 (minuit2) will break the backward compatibility. 2021-04-09 10:03:34 +02:00
e6e951e8f4 update the copyright info. 2021-03-29 08:22:38 +02:00
10271dab9a update of the copyright info. 2020-04-29 09:05:40 +02:00
fe7a1b7920 first full implementation of the sector command. 2020-02-03 20:54:23 +01:00
1fb1753d82 more work on the SECTOR command. CalcNoOfFitBins() needed to be changed from protected to public. 2020-02-02 17:12:08 +01:00
ed0bfd516b started to implement a chisq/maxLH sector command. Currently only the skeleton is in place. 2020-01-31 16:39:52 +01:00
795cd75b1e modernized code to C++11 and newer.
This allows to analyze the code by external code analyzers. Since a lot is adopted,
the version is changed to 1.4.3
2019-04-16 15:34:49 +02:00
60580a920f make sure that a valid covariance matrix is available after Hesse. 2017-11-02 20:24:09 +01:00
b4aaa2bc15 add some additional output when minos is called. 2017-05-04 15:25:42 +02:00
c768c27898 for maxLH it is now possible to get the per-run-block maxLH, and the expected maxLH 2016-12-18 10:36:02 +01:00
8e399fa04e first steps towards asymmetry RRF fit. 2016-01-15 17:16:07 +01:00
bbb8550f96 since we moved to git, I cleaned up the svn prop's from the sources and added a GIT_REVISION through git-revision.h 2014-02-12 12:43:32 +01:00
22c7702cfe docu updated 2013-01-15 12:25:48 +00:00
b737649b50 newly added: a library related to spin valve physics 2013-01-15 06:41:12 +00:00
459a36fa79 added some information about elapsed fitting times. Corrected some outdated online helps. 2013-01-07 11:54:28 +00:00
3fe4875267 if multiple SAVE are present in the COMMAND block, append MINUIT2.OUTPUT file. Added docu for PRINT_LEVEL (MUSR-244). 2012-12-11 09:56:17 +00:00
6c8ce66e1d (i) add PRINT_LEVEL to the command block (0='nothing' to
3='everything'). This allows to tune the Minuit2 output. (ii) added the
possibilty to give the fit range in bins. For details see the docu.
2012-10-25 14:44:16 +00:00
138e7ba369 first implementation of MusrRoot. Cleaner handling of Red/Green mode data. General cleanup 2012-03-22 07:00:34 +00:00
d9a83c6c19 when release or restore is called (command block commands), the
corresponding parameter error is set to 2% of its parameter value (MUSR-188).
At the same time removed a left-over unused variable.
2011-10-17 08:26:12 +00:00
58a79084b1 added per run block chisq output 2011-07-25 07:35:29 +00:00
d9f1f1235e added expected chisq calculation for single histogram fits (MUSR-194) 2011-07-09 16:26:42 +00:00
37c2cd0d8f Added some debugging information 2011-05-31 14:55:56 +00:00
ccd9d6ccfd added the command SCALE_N0_BKG TRUE | FALSE to the command-block. This can be used to force a single histogram fit to use either 1/ns scaling for N0 and background or 1/bins one. 2011-02-14 19:52:00 +00:00
a1b94ae247 fixes the inadequate attempt to use log max likelihood fit for asymmetry/non-muSR fit (MUSR-148) 2010-11-12 09:30:18 +00:00
5cd4283d30 added FIT_RANGE RESET | start end | s1 e1 s2 e2 .. sN eN command to the COMMAND block 2010-10-20 09:24:12 +00:00
cc3106ff5e added FIX/RELEASE/RESTORE minuit2 command to the COMMAND block 2010-10-12 19:30:38 +00:00
6774573f7a fixed fitting issue for boundaries none/none (MUSR-136), and some minor cleanup in PFitter 2010-08-31 06:02:06 +00:00
68e3dc4dac fixed formating issue raised in MUSR-142 2010-08-17 11:26:07 +00:00
7536ca6fc6 Submission of a few minor changes of the last time 2010-07-29 09:25:16 +00:00
959c792a68 added more docu and cleaned up code a bit 2010-05-26 19:31:13 +00:00
686419119f some minor improvments in the SCAN/CONTOURS handling 2010-03-12 15:13:39 +00:00
97968654fa first (still crude) implementation of SCAN/CONTOURS/MNPLOT in PFitter (see MUSR-100). 2010-03-12 10:00:00 +00:00
2a03bb7f61 changed variables to comply with the ROOT standards. Error messages now sent to stderr rather than stdout 2009-10-30 08:29:27 +00:00
b5016637fd Added autotool-support for building musrfit - some additional tests are needed, the old Makefiles are still around 2009-06-19 20:37:06 +00:00
921f3da2c9 changes for a selfconsistent error handling see MUSR-13 2009-06-17 05:45:56 +00:00
d9fdd3543f validate minos errors 2009-06-17 05:33:49 +00:00
b494f757be prevent crashing for simplex only calls 2009-06-16 10:32:05 +00:00
073f0bbf08 minor change 2009-04-24 13:27:43 +00:00