185 Commits

Author SHA1 Message Date
nemu
58a79084b1 added per run block chisq output 2011-07-25 07:35:29 +00:00
Bastian M. Wojek
1e115c7bd3 Slightly changed the behavior of msr2data (see ChangeLog for details) 2011-07-13 13:37:28 +00:00
nemu
d9f1f1235e added expected chisq calculation for single histogram fits (MUSR-194) 2011-07-09 16:26:42 +00:00
Bastian M. Wojek
caa3fdfc12 * Define a function for the XML-reading workaround in order to clean up a bit.
For the moment we keep to copies of it -- one for the use within the various
  musrfit programs, one that can be used in user functions.

* musrt0 is now again activated in musrgui/musredit by default.
2011-06-23 11:00:09 +00:00
Bastian M. Wojek
8dc31cad54 Fixed crash of musrview in case the XML startup file is present but cannot be parsed correctly 2011-06-14 17:53:33 +00:00
Bastian M. Wojek
f0d05d35cd Refined the data-file search 2011-06-14 09:42:24 +00:00
Bastian M. Wojek
b448487cd0 Try to provide a solution to MUSR-195:
In the RUN block data file names can now be given in the following way:
- without extension (default and only possible way up to now)
- with (completely) lower-case extension (e.g. .nxs)
- with (completely) upper-case extension (e.g. .NXS)

In any case, the file that is looked for can have both a lower-case or an upper-case extension.
2011-06-13 15:04:16 +00:00
Bastian M. Wojek
0ebf68156a Synchronized the 'noOfFitBins' calculations for single-histogram and asymmetry fits 2011-05-25 09:48:15 +00:00
nemu
49619fcffb added NeXus support. Still a lot of testing will be needed, documentation updated, etc. 2011-04-08 09:24:32 +00:00
nemu
103283400a improved parameter representation in musrview (MUSR-167) 2011-02-24 07:44:27 +00:00
nemu
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
nemu
90ed9df1b6 some more work, including the PSI-BIN write routines which are officially not released yet. 2011-02-07 06:02:56 +00:00
nemu
aca61d4731 improved parameter formating 2011-02-03 10:31:57 +00:00
nemu
fbd0cae432 tries to deal with precision request MUSR-167 2011-02-02 21:56:57 +00:00
Bastian M. Wojek
91b9fef9a2 Changed the default behavior of msr2data for writing output-file headers.
The default (if no option is given) is now that only for newly generated or empty files the respective header will be written.
If data is appended to an existing file, it is assumed that the header also is present already!
In this case only the new data blocks are appended directly after to existing ones.
[Most probably this behavior is broken if used in a native Windows environment, however, this is not the only problem there...]

The previous option "noheader" is preserved.
It suppresses the output of the header in any case.
If new data are appended to an existing output file this is done at the end of the file---just as before!

A new option "header" has been introduced.
If this is given, the output of the header is forced---no matter if a file (probably with header) existed before or not.
Also in this case all new data (and the header) are appended at the end of the output file if it existed already.

In case both options are given, the default behavior is activated.
2011-01-30 14:23:14 +00:00
Bastian M. Wojek
decd363404 msr2data becomes more tolerant
Non-existing msr-files in the specified list of runs are now ignored as far as possible!
Still a warning for each non-existing file will be issued!
Before, encountering such a file led to the termination of the program.

Also the writing of the empty lines at the end of the data-output-file should be fixed now in this case.
It is needed to get a "correct db-file".
Before, when the program has been aborted before the last run was processed, these empty lines had not been appended to the file.
2011-01-29 13:16:04 +00:00
Bastian M. Wojek
ebcd192509 Added a minor extension to the global mode of msr2data which allows the generation of a global msr-file including the results of single-run fits for
run-specific parameters. This might help to get overall better starting parameters for a global fit.
For a few more details and an example, see the documentation.
Any testing is very welcome.
2011-01-22 01:17:22 +00:00
nemu
826ad1efa9 a more fexible handling of filename list and run list in any2many (see MUSR-166). Still far from production 2011-01-13 12:10:30 +00:00
nemu
a406219826 some more work on any2may. Still not meant for production 2011-01-11 06:24:02 +00:00
nemu
452018bedf added any2many, an attempt to write the universial musr-data-file converter. Still some work needed. Added the possibility to show the t0 saved in the data file. 2010-12-23 13:16:57 +00:00
nemu
62d33112ba y-axis cosmetics the 2nd, or 3rd, or ... never mind 2010-11-15 06:48:37 +00:00
nemu
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
Bastian M. Wojek
2e49d42cfb see MUSR-155 2010-11-10 23:02:10 +00:00
nemu
f4d6e349fe added the option to split a user function into a global and run-block related part (see MUSR-134) 2010-11-10 13:13:00 +00:00
nemu
a6466e2dac hanging musrt0's should be eliminated now (MUSR-153) 2010-10-29 05:29:49 +00:00
nemu
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
nemu
99c1e8d17e fit range decimal precision handling of PMsrHandler improved (MUSR-150 request). musredit keeps now it last open directory 2010-10-14 19:52:20 +00:00
nemu
cc3106ff5e added FIX/RELEASE/RESTORE minuit2 command to the COMMAND block 2010-10-12 19:30:38 +00:00
nemu
c3d9a11f63 zoom/unzoom once more. Uncluttered PMusrCanvas which should improve the situation 2010-10-07 14:42:34 +00:00
nemu
937a26d704 second attempt to improve the unzoom option after "improvement" in root-5.27.04. 2010-09-25 13:35:03 +00:00
nemu
1688a904f6 implemented more checks on the integrity of the msr-file (MUSR-145) 2010-08-27 04:54:40 +00:00
nemu
e94d869534 improved handling of LF, including bug fixing. 2010-08-05 14:20:49 +00:00
Bastian M. Wojek
20bb0e05a6 Added a tiny bit of documentation for the msr2data code 2010-06-27 11:23:40 +00:00
Bastian M. Wojek
fb8523d8bf Minor changes to the global input file generation 2010-06-10 12:01:40 +00:00
Bastian M. Wojek
ce6819b741 To AS
---

Added a "global" option to msr2data

First, I hope, this major "surgery" does not cause any regressions in the standard features.
If so, please revert to an older version and file a bug report.

This new option is not yet documented and should be considered as experimental.

Also the newly added code still needs some cleanup - many things have simply been written as a proof of concept.
This will be done during further testing and fine-tuning stages.
2010-06-09 19:08:30 +00:00
Bastian M. Wojek
52d91435c1 Added some minor extensions to PMsrHandler and PMsrRunBlock 2010-06-08 21:35:19 +00:00
Bastian M. Wojek
dbd9350522 Added a new method PWriteMsrFile to the PMsrHandler
The purpose of this method is to be able to write heavily modified msr-files using all the msr-handler support.
The further existing method PWriteMsrLogFile can only handle small changes to the msr-file (like changing parameter values or fixing the formatting),
however, it is e.g. not possible to add parameters or run blocks that have not existed before since during the mlog-file writing the original
msr-file is streamed again and then only things are handled which are present in the msr-file.

For writing the output the new method does _not_ read in the originally handled msr-file again!
Only the information stored in the internal data structures are used to recreate a full msr-file (including all changes that might have been made).
Since comments in the original msr-file are not stored internally these are lost.
At the moment it is however possible to add single lines of comments in the FITPARAMETER, THEORY, FUNCTIONS und between different RUN blocks.
This feature could easily be added also to the other blocks, if needed.

For now I skipped all checks for missing tags in the RUN blocks.

Nothing is tested, therefore:
THIS METHOD NEEDS TO BE REVIEWED AND TESTED BEFORE IT CAN BE USED SERIOUSLY!
2010-06-06 18:08:44 +00:00
nemu
5386342cf4 some more docu 2010-06-04 19:51:20 +00:00
nemu
787a95dad3 more docu 2010-06-04 04:55:19 +00:00
nemu
f938e4ed27 more docu, and a bug fix in the Abragam function 2010-06-02 20:18:22 +00:00
nemu
25693d6c44 more docu 2010-06-01 07:08:04 +00:00
nemu
5d124b3d79 added more docu 2010-05-31 08:25:57 +00:00
nemu
959c792a68 added more docu and cleaned up code a bit 2010-05-26 19:31:13 +00:00
nemu
a8043ce89c massive cleanup 2010-05-12 13:10:22 +00:00
nemu
686419119f some minor improvments in the SCAN/CONTOURS handling 2010-03-12 15:13:39 +00:00
nemu
97968654fa first (still crude) implementation of SCAN/CONTOURS/MNPLOT in PFitter (see MUSR-100). 2010-03-12 10:00:00 +00:00
nemu
842463dc23 added power capability [pow(base,exp)] to functions 2010-03-08 10:43:46 +00:00
Bastian M. Wojek
a63319fc70 Added the possibility to use sqrt() in the FUNCTION block - it could be removed again when finally pow() will be implemented 2010-03-06 23:53:53 +00:00
nemu
d5d36d21fd improved handling for grouping and addrun 2010-02-22 06:55:49 +00:00
nemu
f2bd5b124f first implementation of histogram grouping. Probably still some more testing needed. 2010-02-08 14:01:41 +00:00