diff --git a/doc/examples/data/03000.root b/doc/examples/data/03000.root deleted file mode 100644 index 9e0d0db7..00000000 Binary files a/doc/examples/data/03000.root and /dev/null differ diff --git a/doc/examples/data/lem12_his_2466.root b/doc/examples/data/lem12_his_2466.root new file mode 100644 index 00000000..6a8441ac Binary files /dev/null and b/doc/examples/data/lem12_his_2466.root differ diff --git a/doc/examples/test-histo-MusrRoot.msr b/doc/examples/test-histo-MusrRoot.msr index b953d9b9..afcda768 100644 --- a/doc/examples/test-histo-MusrRoot.msr +++ b/doc/examples/test-histo-MusrRoot.msr @@ -1,63 +1,96 @@ -03000 - test +LSCO x=0.02 (224-227), T=12.00 (K), E=5.57 keV, WEW B=~49(G)/8.62(A), Tr=15.02 (kV), Sample=8.70 (kV), SpinRot -10 ############################################################### FITPARAMETER # No Name Value Step Pos_Error Boundaries - 1 asym1 0.1137 -0.0016 0.0016 0 0.3 - 2 field1 150.04 -0.10 0.10 0 300 - 3 rate1 0.1845 -0.0088 0.0089 0 none - 4 asym2 0.04571 -0.00099 0.00099 0 0.3 - 5 field2 399.80 -0.13 0.13 0 none - 6 rate2 0.170 -0.018 0.017 0 none - 7 phase_L 26.96 -0.90 0.89 -360 360 - 8 Norm_L 1024.12 -0.98 0.98 - 9 BG_L 102.25 -0.17 0.17 - 10 phase_R 208.14 -0.90 0.90 -360 360 - 11 Norm_R 1022.3 -1.0 1.0 - 12 BG_R 144.09 -0.20 0.20 + 1 AsymT 0.0506 -0.0010 0.0010 0 0.33 + 2 Field 48.29 -0.13 0.13 + 3 RateT 0.128 -0.015 0.014 0 none + 4 AsymL 0 0 none 0 0.33 + 5 RateL 0 0 none + 6 AlphaLR 0.9785 -0.0019 0.0019 + 7 PhaseL 6.5 -2.2 2.3 -40 40 + 8 BkgL 6.824 -0.068 0.067 + 9 RelPhaseR 178.7 -2.7 2.7 150 210 + 10 NormR 419.43 -0.57 0.56 + 11 BkgR 8.303 -0.071 0.071 + 12 AlphaTB 1.1026 -0.0021 0.0021 + 13 RelPhaseT 269.1 -2.7 2.7 240 300 + 14 BkgT 7.363 -0.070 0.070 + 15 NormB 393.04 -0.55 0.55 + 16 RelPhaseB 90.8 -2.8 2.8 60 120 + 17 BkgB 6.995 -0.067 0.067 + 18 One 1 0 none + 19 Zero 0 0 none ############################################################### THEORY asymmetry 1 -simplExpo 3 (rate) -TFieldCos map1 fun1 (phase frequency) +simpleGss 3 (rate) +TFieldCos fun1 fun2 (phase frequency) + -asymmetry 4 -simpleGss 6 (rate) -TFieldCos map1 fun2 (phase frequency) +asymmetry fun4 +simplExpo 5 (rate) ############################################################### FUNCTIONS -fun1 = par2 * gamma_mu -fun2 = par5 * gamma_mu +fun1 = par7 + map1 +fun2 = par2 * gamma_mu +fun3 = map2 * map3 +fun4 = par4 * cos(pi / 180.0 * (par7 + map1)) ############################################################### -RUN data/03000 MUE4 PSI MUSR-ROOT (name beamline institute data-file-format) +RUN data/lem12_his_2466 MUE4 PSI MUSR-ROOT (name beamline institute data-file-format) fittype 0 (single histogram fit) -norm 8 -backgr.fit 9 +norm fun3 +backgr.fit 8 lifetimecorrection -map 7 0 0 0 0 0 0 0 0 0 -forward 1 2 -data 3479 66000 -t0 3419.0 3520.0 -fit 0.1 10 +map 19 6 10 0 0 0 0 0 0 0 +forward 1 5 +data 2741 63000 +t0 2741.0 2741.0 +fit 0.2 10 packing 50 -RUN data/03000 MUE4 PSI MUSR-ROOT (name beamline institute data-file-format) +RUN data/lem12_his_2466 MUE4 PSI MUSR-ROOT (name beamline institute data-file-format) fittype 0 (single histogram fit) -norm 11 -backgr.fit 12 +norm fun3 +backgr.fit 11 lifetimecorrection -map 10 0 0 0 0 0 0 0 0 0 -forward 5 6 -data 3609 66000 -t0 3517.0 3418.0 -fit 0.1 10 +map 9 18 10 0 0 0 0 0 0 0 +forward 3 7 +data 2741 63000 +t0 2741.0 2741.0 +fit 0.2 10 +packing 50 + +RUN data/lem12_his_2466 MUE4 PSI MUSR-ROOT (name beamline institute data-file-format) +fittype 0 (single histogram fit) +norm fun3 +backgr.fit 14 +lifetimecorrection +map 13 12 15 0 0 0 0 0 0 0 +forward 2 6 +data 2741 63000 +t0 2741.0 2741.0 +fit 0.2 10 +packing 50 + +RUN data/lem12_his_2466 MUE4 PSI MUSR-ROOT (name beamline institute data-file-format) +fittype 0 (single histogram fit) +norm fun3 +backgr.fit 17 +lifetimecorrection +map 16 18 15 0 0 0 0 0 0 0 +forward 4 8 +data 2741 63000 +t0 2741.0 2741.0 +fit 0.2 10 packing 50 ############################################################### COMMANDS MINIMIZE +#HESSE MINOS SAVE @@ -65,17 +98,16 @@ SAVE FOURIER units Gauss # units either 'Gauss', 'MHz', or 'Mc/s' fourier_power 11 -apodization STRONG # NONE, WEAK, MEDIUM, STRONG +apodization MEDIUM # NONE, WEAK, MEDIUM, STRONG plot POWER # REAL, IMAG, REAL_AND_IMAG, POWER, PHASE -phase par7 -range 0 1000 +range 0 100 ############################################################### PLOT 0 (single histo plot) -runs 1 -range 0 10 -0.3 0.3 -view_packing 100 +runs 1 3 +range 0 9 -0.15 0.15 +view_packing 500 ############################################################### -STATISTIC --- 2012-03-22 09:15:43 - chisq = 2418.0, NDF = 2016, chisq/NDF = 1.199415 +STATISTIC --- 2012-06-03 14:14:15 + chisq = 3981.9, NDF = 4001, chisq/NDF = 0.995215 diff --git a/doc/html/user/MUSR/BmwLibs.html b/doc/html/user/MUSR/BmwLibs.html index 0f4922a4..7e2f571d 100644 --- a/doc/html/user/MUSR/BmwLibs.html +++ b/doc/html/user/MUSR/BmwLibs.html @@ -1,31 +1,19 @@ - - + - +
-musrfit
libFitPofB
: routines for calculating transverse-field muon-spin depolarization functions from various static field distributions in superconductors
libZFRelaxation
: routines for calculating zero-field muon-spin depolarization functions from various static field distributions
msr2data
musrfit
User Manual musrfit
calculates χ2 only once and sends the result to the standard output if called with this option. This might be useful for the adjustment of the initial values of the fit parameters.
musrfit
will replace the title in the <msr_file> by the run title in the data file of the first run appearing in a RUN block. In case there is no run title in the data file no substitution is done.
ROOT
histograms)
-nn
will set the timeout to nn
(sec). If during a fit this timeout is reached, musrfit
will terminate. This is used to prevent orphan musrfit process to jam the system.
+nn
will set the timeout to nn
(sec). If during a fit this timeout is reached, musrfit
will terminate. This is used to prevent orphan musrfit process to jam the system.
musrfit
ROOT
canvas.
+
+ A few comments concerning the rotating reference frame (rrf) plot option: the idea of the rrf is to transform a high frequency μSR spectrum into a low frequency spectrum. This is essentially done by multiplying the original asymmetry rrf_packing
is used, we just over-bin the high frequency copy (for now. In the future this will be dealt with FIR filtering)! The theory, however, is filtered via Kaiser filter. Here a short example:
+
++ ############################################################### + PLOT 0 (single histo plot) + runs 1 + range 0 10 -0.3 0.3 + rrf_freq 13900 G + rrf_packing 75 +
musrfit
musrfit
, his many useful suggestions, contributions, and for the largest part of the user manual of musrfit
which makes it accessible to a broader audience! Many thanks Bastian!
musrfit
on Different Platforms ROOT
folder so that the user has easy write access to this directory:
+ 1 : In case only a single user is working at the machine it might be considerable to change the ownership of the ROOT
folder so that the user has easy write access to this directory:
2 : When using GCC
≥ 4.2 please make sure that the environment variables USE_PARALLEL_MINUIT2 and USE_OPENMP are not set! Otherwise MINUIT2
will be compiled with parallelization support and cannot be used together with musrfit
afterwards since the musrfit
code is not fully thread-safe! When compiled with GCC
≥ 4.2 musrfit
itself will parallelize the χ2 calculation.
@@ -529,7 +524,7 @@ With Mac OS X the situation is up to some extent similar like on MS Windows but
MacPorts
) ROOT
and NeXus
MacPorts
system first a few useful tools provided by Apple together with OS X (on the installation DVD/CDs) should be installed: ROOT
system there are two independent Visit the ROOT
web page and download the packed precompiled binary version matching the OS X version. Then unpack the bundle to its final destination (e.g. /opt/root-system).
ROOT
available for your system or e.g. ROOT
should be compiled with another version of GCC
visit the web page and download the 'complete source tree for all systems'. Then unpack this source tree to its destination (e.g. /opt/root-system). In case only a single user is working at the machine it might be considerable to change the ownership of the ROOT
folder so that the user ("username" in the example) has easy write access to this directory: sudo chown -R username:staff /opt/root-system/Finally,
ROOT
can be configured (here using the minimal set of options) and compiled as stated right below: cd /opt/root-system -./configure --gminimal --enable-asimage --enable-mathmore --enable-minuit2 --enable-xml +./configure --gminimal --enable-fink --enable-asimage --enable-mathmore --enable-minuit2 --enable-xml make+
ROOT
, i.e. that you have to checkout ROOT
via svn
: +svn co https://root.cern.ch/svn/root/trunk root +For details see ROOT: How to's.
ROOT
installation and to prepare already the installation of musrfit
and musrgui
/ musredit
this is a good time for setting necessary environment variables for the use in Mac OS X. Put the following lines (without the comments in parentheses and with the paths adjusted to your local installation) into the file ~/.MacOSX/environment.plist and re-login:musrgui / musredit
mus
For reporting bugs or requesting new features and improvements please use the PSI Tracker or send an e-mail to A. Suter.
--- BMW & AS
WKM
users musrfit
reads the data from the file superconductor-data.db
; the x and y data are specified by the DB parameter names range
and field
. An alternative specification of the x and y data by the parameter number in the DB file is also possible!
musrfit
Single-Histogram-Fit Tutorial musrfit
is based on so-called msr
files. These files contain all information needed for the analysis such as names of the data files, a theory function, fit and plot parameters, and so on. It is the idea of this page to explain the basic use of an msr
file and the different programs of the musrfit
suite using the example of a single-histogram fit to time-differential transverse-field μSR data. For a complete description of all options please refer to the manual.
@@ -275,106 +270,93 @@ This page only summarizes the very basic features and options of the programs co
msr2data
.
musrfit
musrfit
?