Compare commits
470 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 6a41458310 | |||
| d70fd34345 | |||
| 3858cc723a | |||
| a6f5b956bf | |||
| 86ecfc84af | |||
| 8cb4fc7221 | |||
| 95d087164d | |||
| 8f3ad0c61d | |||
| 49d42c93ba | |||
| df379b834e | |||
| 3bb004ea2d | |||
| fc478d27c7 | |||
| c690965025 | |||
| 300c9200df | |||
| 4dcef1a835 | |||
| 4519a0b76e | |||
| 3aecdbf0a8 | |||
| dfa8852cfe | |||
| 29fbb4a62b | |||
| de8b02b94d | |||
| dd2f743b3a | |||
| d5dbc12175 | |||
| 643be9738f | |||
| 88b5e492dd | |||
| 810306cb2a | |||
| 43cb8b2460 | |||
| ceb9673330 | |||
| da0b356e3b | |||
| b262ee33c5 | |||
| 12888be4c9 | |||
| 867ac4895b | |||
| a6c9120d06 | |||
| 417901e271 | |||
| 8d1dcef2de | |||
| 30fbd8eb67 | |||
| 76dbd757e3 | |||
| c894c21bf3 | |||
| 008ca7210a | |||
| 60f11dfc0e | |||
| 3aaca28c87 | |||
| d4f0855b19 | |||
| 00c980af68 | |||
| fb9d6e917c | |||
| 2eb0cf28d5 | |||
| 65efb389c3 | |||
| 83c8f6630c | |||
| 3c02c6073a | |||
| b3e4d247f0 | |||
| 6aaed94adf | |||
| c3e9c03920 | |||
| 909fa6519d | |||
| 3eea73f07a | |||
| f66c832d56 | |||
| 990e280c8f | |||
| 7615e791d3 | |||
| 394ea01d37 | |||
| d19d7b59c8 | |||
| 7dc0a237dc | |||
| 1b4b9cc238 | |||
| db54db3394 | |||
| 84bb6e3a72 | |||
| ce1bc1583b | |||
| 4adf66cb26 | |||
| 8a86351674 | |||
| 418ca6b0a1 | |||
| 73aff4ec69 | |||
| 7ce0926fd9 | |||
| e4ff8ca7d5 | |||
| 5d3981d8b2 | |||
| 3442ca7b62 | |||
| a023a4b090 | |||
| 642f878833 | |||
| 8852cf21cf | |||
| 89f695d6ce | |||
| 975f48f3fa | |||
| 93f6bccaef | |||
| 1a922125bb | |||
| 322aa58fbc | |||
| 4cbf625b84 | |||
| 1b0cddc0ee | |||
| 4f52ff7b9b | |||
| 0cb9b20738 | |||
| 20d5955977 | |||
| ab14747460 | |||
| 6c87889f5c | |||
| c434993763 | |||
| 9fa970a53e | |||
| 87fcf91593 | |||
| 02ddc3889d | |||
| 2fd0248e37 | |||
| b658b8b9de | |||
| 948ac57be6 | |||
| 4802a7a016 | |||
| 244baa4dd4 | |||
| e1f2941d7f | |||
| 98ee6a3983 | |||
| 3f50462ce4 | |||
| 4c5a009305 | |||
| 7e415e636c | |||
| b3bffd6a51 | |||
| cbd6bb984e | |||
| 1aec75d5ad | |||
| 8b631e026c | |||
| 456bc2adb4 | |||
| 8b42254cbb | |||
| 06ccceb810 | |||
| 6ca0461f9b | |||
| 9cbcec63be | |||
| b714c8d170 | |||
| eb807ade7b | |||
| 1f7ce9f88a | |||
| be24a3aa73 | |||
| aaa609b3e2 | |||
| a0e6a3a83d | |||
| 0db498284f | |||
| d8ae606a55 | |||
| e940ad09b4 | |||
| 633f63b104 | |||
| db4b6395ef | |||
| fa1d496cf5 | |||
| 310713da0e | |||
| 3e545f1d50 | |||
| 278fd47e52 | |||
| 26b87e0659 | |||
| 38decd8b58 | |||
| a05b4fe867 | |||
| 7b82b2c2c8 | |||
| 4d5ad0a00c | |||
| c5d5038b4d | |||
| be8161bac1 | |||
| cdd248d116 | |||
| 26d55bc048 | |||
| 218e2125e3 | |||
| 5f1b4fa5f5 | |||
| a40c431396 | |||
| 40a797c0da | |||
| f8a2d646dc | |||
| 224f7a15d0 | |||
| 25024aae6b | |||
| 4ab01f4faf | |||
| 5ae66a0614 | |||
| d38fb078f9 | |||
| f1587af451 | |||
| ddf434f595 | |||
| 22112e47b2 | |||
| 9363bafec4 | |||
| 3d07894b2d | |||
| 262b5a36aa | |||
| 7745fe6e65 | |||
| 189f95cb04 | |||
| f3250ededc | |||
| 9820c5dba7 | |||
| 7b9a473296 | |||
| 23e68c1c4f | |||
| c9414f7f08 | |||
| bac6202a73 | |||
| b5447aef32 | |||
| 1e9b82f1c2 | |||
| fbfce99790 | |||
| 32b49e7ac8 | |||
| df7b8433e1 | |||
| 10117abeff | |||
| 675ed39739 | |||
| 7f911cd3ab | |||
| 288c4c644b | |||
| ea646e012b | |||
| d8d1eb1838 | |||
| 4917e5c7ae | |||
| 7e28402e25 | |||
| db71346ebb | |||
| 4fbd678a88 | |||
| 376b4f59ba | |||
| a61a09bddd | |||
| 475bb6a9f7 | |||
| a6153a0eb7 | |||
| 7405a95c6e | |||
| ed6e392a53 | |||
| ef4c6d75e5 | |||
| 392a0b089d | |||
| 06a509a420 | |||
| 2e951d92f1 | |||
| d9016d82a8 | |||
| 25bcdd25e5 | |||
| 781a2e7dbd | |||
| 1aa7e6941f | |||
| 7491a2c331 | |||
| 832a74e0b5 | |||
| 0b1c9e53c6 | |||
| 18bf65a231 | |||
| 0cde84d756 | |||
| 0943f1f061 | |||
| 769a828a76 | |||
| ecec59c8a3 | |||
| 66af890157 | |||
| eb98c9727c | |||
| 079baa3edf | |||
| 7df47a05f3 | |||
| 15c5b02c8b | |||
| 37f099542a | |||
| c2fb166d3b | |||
| e8806c3e72 | |||
| 91a45cad90 | |||
| d1f025a8c2 | |||
| e525abe614 | |||
| 005b33c379 | |||
| 3bcc382679 | |||
| 249d6ff97c | |||
| 69ab03d5ae | |||
| 819d209863 | |||
| bcc1597e30 | |||
| 9fa90c24fb | |||
| 236a702d36 | |||
| 09f9782a31 | |||
| f99f71a8db | |||
| 6e60013037 | |||
| e38fa47961 | |||
| 764cdf4e51 | |||
| e5ff0fa743 | |||
| e26fa4eea2 | |||
| 5648757389 | |||
|
|
c3b4c7c3b1 | ||
| e233c860d1 | |||
| c230bfb1bc | |||
| 5119b1cd13 | |||
| d937324885 | |||
| f7e5c53879 | |||
| 3796925e93 | |||
| d5343a0073 | |||
| bb99482461 | |||
| f0869935d1 | |||
| 0f95551200 | |||
| b8ce741534 | |||
| 4b6654ca2a | |||
| 38d4ec1806 | |||
| 4231d26604 | |||
| a28650f017 | |||
| 9a23c4f241 | |||
| 5f7f79e46d | |||
| 4a20d805dd | |||
| 10cfe3f863 | |||
| 0828d1b8d4 | |||
| 75785d2c0e | |||
| e4b84b12df | |||
| 124a31386c | |||
| ebdb0feb7f | |||
| e67d92fc05 | |||
| ead1674b13 | |||
| fd22884ce8 | |||
| 20dd08fbef | |||
| 3e66760c26 | |||
| d6bcdf52b8 | |||
| 30bd2b2876 | |||
| 9f8f89db6d | |||
| 458913ca31 | |||
| 5c3accc6ed | |||
| 6f8b0a2341 | |||
| 4febdb42b4 | |||
| ae95a5dc1c | |||
| c3f531e0d5 | |||
| 0b61130e28 | |||
| d1cd63dcb0 | |||
| 7838901fbe | |||
| 00b012d0dd | |||
| d2984d8923 | |||
| 58889614e5 | |||
| c9fc373862 | |||
| ebefcf7af9 | |||
| 64d3b6192b | |||
| 6bcb26f9d5 | |||
| 6b865efd3b | |||
| caccfb175a | |||
| 1845b5c176 | |||
| 8821112927 | |||
| 833171c712 | |||
| 61749b91c4 | |||
| 3d92e2eefb | |||
| b71dce9291 | |||
| 1aa4ce0a99 | |||
| 425ed02e22 | |||
| a36abfc461 | |||
| ccaba41868 | |||
| 418adfde67 | |||
| 66df43c663 | |||
| 4a6885f55b | |||
| 92b1aac7a6 | |||
| 26e25ce10b | |||
| cedaabeb98 | |||
| 032510fbcb | |||
| 8cfd0bcc4a | |||
| 7198521f60 | |||
| 834884f3a4 | |||
| 80591f6f13 | |||
| 44456c49e9 | |||
| 495f02c3c6 | |||
| ad2e84581f | |||
| 59dbae4a1e | |||
| 4d176c395c | |||
| 74978025fb | |||
| deeee783f5 | |||
| cadd28b9fe | |||
| 79c8be54bf | |||
| 3cf89c6571 | |||
| 673a742631 | |||
| f68775dd64 | |||
| 23bf2ec2fc | |||
| 23ac67a443 | |||
| d6a3767040 | |||
| 75d0c9e01a | |||
| ecd9e4a953 | |||
| 3c2b0322c0 | |||
| 4747fbc77d | |||
| b1b808ad7b | |||
| 2d1875ebfe | |||
| d221ef1ed0 | |||
| f7c45f46ff | |||
| 5b093208eb | |||
| 7a1f60d00f | |||
| de2d8394d3 | |||
| af13e78c52 | |||
| 7691ef2815 | |||
| 8f4a7c6b68 | |||
| 1cb0cfd3e7 | |||
| 344a5c8ba0 | |||
| 6f521668c0 | |||
| 02a1cb7a0c | |||
| fdeed5dec4 | |||
| e676d3c045 | |||
| 9911d88889 | |||
| 51520868f1 | |||
| 3d149dc6ab | |||
| e79322b348 | |||
| 62e86f42b7 | |||
| c18ed68aa8 | |||
| e376e9a2e6 | |||
| a90af4c342 | |||
| 1c7556a73d | |||
| eb234b7de5 | |||
| 3d7d86d657 | |||
| 7743eaee09 | |||
| 9c2e981e2a | |||
| f9b1ef9dcc | |||
| 89146f3cee | |||
| be29e55834 | |||
| 8e7fda92e1 | |||
| 890d48a95c | |||
| 823ef087c9 | |||
| 05c06a071e | |||
| dbfadc4e42 | |||
| 93754a9fc2 | |||
| 0bff931af9 | |||
| 1a72d67be9 | |||
| 7e17af0256 | |||
| 5d731611cf | |||
| 4b561b1f15 | |||
| 69305f8b1d | |||
| 88b3ab8a01 | |||
| ca742a064f | |||
| b5a391e355 | |||
| 1feed7116a | |||
| ff9245fd28 | |||
| 98026c725d | |||
| 5972391ff4 | |||
| c5f6eb04b4 | |||
| 2a2e2b40d5 | |||
| c2a2051d29 | |||
|
|
578dc900c2 | ||
| cf44df21ed | |||
|
|
ef641de033 | ||
| 4c62ae547f | |||
|
|
91d6a4bc99 | ||
| c6ebaf3675 | |||
| 1df6643bfa | |||
| 4d1c7c10c8 | |||
| 0b3fc43123 | |||
| 1f32698b5f | |||
| 22178f7869 | |||
| 2e6e5ecb97 | |||
|
|
56a8730252 | ||
| 40e15218a3 | |||
| 39a54d7f63 | |||
|
|
d664f5d877 | ||
|
|
8765ac9192 | ||
|
|
f1b7ca226a | ||
|
|
30d124ab51 | ||
|
|
feb33b24ae | ||
|
|
c6cf124ee3 | ||
|
|
401ff9ead6 | ||
|
|
5fa84c74ec | ||
|
|
7b0492f499 | ||
|
|
da2705aa0e | ||
|
|
dd733164d1 | ||
|
|
5658c06afd | ||
|
|
b8622fefa8 | ||
|
|
382fd8ad99 | ||
|
|
96ac7f68a2 | ||
|
|
02f7c459c5 | ||
|
|
bb9942e34b | ||
|
|
8245728f82 | ||
|
|
3c607768b9 | ||
|
|
b47c735a1c | ||
|
|
c585fedb63 | ||
|
|
374367bee8 | ||
|
|
e1c9a61251 | ||
|
|
6e9d8b3e35 | ||
|
|
e37dede866 | ||
|
|
0b93a08108 | ||
|
|
326b3bea17 | ||
|
|
aeaa698be2 | ||
|
|
5bcc460cce | ||
|
|
6e4e9ab55e | ||
|
|
c4da2c4ec0 | ||
|
|
edbbb8fc45 | ||
|
|
3e6d55f0e8 | ||
|
|
d9b29388d0 | ||
|
|
f94c43ccdf | ||
|
|
30d2275b86 | ||
|
|
7d6d8e279f | ||
|
|
f3388a7d17 | ||
|
|
2d65bc4574 | ||
|
|
51e4482945 | ||
|
|
5235935f85 | ||
|
|
76c2a98f5a | ||
|
|
b488ed60a0 | ||
|
|
b9e3ceea5c | ||
|
|
e0ecad2f3a | ||
|
|
97400255a0 | ||
|
|
16a1629ab6 | ||
|
|
939d4fb7b5 | ||
|
|
c638456afe | ||
|
|
29b603e124 | ||
|
|
9c438b580b | ||
|
|
65ee70c52e | ||
|
|
6b32dcaa38 | ||
|
|
7f2d8f6625 | ||
|
|
4dea80c6b6 | ||
|
|
8afc51f497 | ||
|
|
acd149a159 | ||
|
|
c87906efd6 | ||
|
|
21dedba8fa | ||
|
|
7279de07ff | ||
|
|
693b99755d | ||
|
|
0069ef02c8 | ||
|
|
45de42bc5b | ||
|
|
7d1cb313f2 | ||
|
|
6a8ec77037 | ||
|
|
85359817f9 | ||
|
|
268772e953 | ||
|
|
260c2c19e7 | ||
|
|
c8e863617a | ||
|
|
8da82ee6cc | ||
|
|
a7e1477f7f | ||
|
|
cbdef9b7b9 | ||
|
|
5cc8722a95 | ||
|
|
56337cf7a5 | ||
|
|
a2855bba19 | ||
|
|
263554dd37 | ||
|
|
a701a7a336 | ||
|
|
a30ac29032 | ||
|
|
479e81cc68 | ||
|
|
896540bee6 | ||
|
|
2f5259d6e5 | ||
|
|
8742d9651b | ||
|
|
63f73427b1 | ||
|
|
2afc21becc | ||
|
|
63a1b1c1f3 | ||
|
|
b916b0f6da | ||
|
|
4ef4316b97 | ||
|
|
357b225d53 | ||
|
|
5fff38d36b | ||
|
|
d00752b196 |
45
.gitea/workflows/deploy-pages.yml
Normal file
45
.gitea/workflows/deploy-pages.yml
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
name: Build and Deploy Documentation
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- root6
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-and-deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: gitea.psi.ch/images/alpine-jupyterbook
|
||||||
|
steps:
|
||||||
|
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Install system dependencies
|
||||||
|
run: |
|
||||||
|
apk add doxygen graphviz
|
||||||
|
|
||||||
|
- name: Build musrfit-tech-docu
|
||||||
|
run: |
|
||||||
|
cd doc
|
||||||
|
mkdir technical
|
||||||
|
doxygen musrfit_dox.cfg
|
||||||
|
doxygen musredit_qt6_dox.cfg
|
||||||
|
doxygen mupp_qt6_dox.cfg
|
||||||
|
doxygen musrStep_qt6_dox.cfg
|
||||||
|
doxygen musrWiz_qt6_dox.cfg
|
||||||
|
|
||||||
|
- name: Configure Git
|
||||||
|
run: |
|
||||||
|
git config --global user.name "Gitea Actions"
|
||||||
|
git config --global user.email "actions@gitea.local"
|
||||||
|
|
||||||
|
- name: Push to gitea-pages branch
|
||||||
|
run: |
|
||||||
|
git checkout --orphan gitea-pages
|
||||||
|
git reset --hard
|
||||||
|
cp -r ./doc/technical/html/* .
|
||||||
|
git add .
|
||||||
|
git commit -m "Deploy site"
|
||||||
|
git push --verbose -f https://${{secrets.GITHUB_TOKEN}}@gitea.psi.ch/${{ github.repository }}.git gitea-pages
|
||||||
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
# ignore all files generated from an in-repo build
|
||||||
|
build/
|
||||||
123
CMakeLists.txt
123
CMakeLists.txt
@@ -1,7 +1,12 @@
|
|||||||
# - musrfit
|
# - musrfit
|
||||||
cmake_minimum_required(VERSION 3.17)
|
cmake_minimum_required(VERSION 3.17)
|
||||||
|
|
||||||
project(musrfit VERSION 1.9.1 LANGUAGES C CXX)
|
# cmake: use BoostConfig.cmake instead of FindBoost
|
||||||
|
if (CMAKE_VERSION GREATER_EQUAL "3.3")
|
||||||
|
cmake_policy(SET CMP0167 NEW)
|
||||||
|
endif ()
|
||||||
|
|
||||||
|
project(musrfit VERSION 1.9.11 LANGUAGES C CXX)
|
||||||
|
|
||||||
#--- musrfit specific options -------------------------------------------------
|
#--- musrfit specific options -------------------------------------------------
|
||||||
option(nexus "build optional NeXus support. Needed for ISIS" OFF)
|
option(nexus "build optional NeXus support. Needed for ISIS" OFF)
|
||||||
@@ -92,11 +97,19 @@ endif ()
|
|||||||
set(ROOT_GRTEQ_24 ${ROOT_GRTEQ_24} CACHE INTERNAL "ROOT Version check")
|
set(ROOT_GRTEQ_24 ${ROOT_GRTEQ_24} CACHE INTERNAL "ROOT Version check")
|
||||||
|
|
||||||
#--- check for boost ----------------------------------------------------------
|
#--- check for boost ----------------------------------------------------------
|
||||||
find_package(Boost REQUIRED
|
find_package(Boost QUIET)
|
||||||
COMPONENTS
|
if (Boost_VERSION VERSION_GREATER_EQUAL "1.89")
|
||||||
system
|
find_package(Boost REQUIRED
|
||||||
filesystem
|
COMPONENTS
|
||||||
)
|
filesystem
|
||||||
|
)
|
||||||
|
else (Boost_VERSION VERSION_GREATER_EQUAL "1.89")
|
||||||
|
find_package(Boost REQUIRED
|
||||||
|
COMPONENTS
|
||||||
|
system
|
||||||
|
filesystem
|
||||||
|
)
|
||||||
|
endif (Boost_VERSION VERSION_GREATER_EQUAL "1.89")
|
||||||
message(STATUS "Boost libs: ${Boost_LIBRARIES}")
|
message(STATUS "Boost libs: ${Boost_LIBRARIES}")
|
||||||
|
|
||||||
#--- check for gsl ------------------------------------------------------------
|
#--- check for gsl ------------------------------------------------------------
|
||||||
@@ -109,13 +122,13 @@ find_package(FFTW3 REQUIRED)
|
|||||||
find_package(LibXml2 REQUIRED)
|
find_package(LibXml2 REQUIRED)
|
||||||
|
|
||||||
#--- check for OpenMP ---------------------------------------------------------
|
#--- check for OpenMP ---------------------------------------------------------
|
||||||
if (try_OpenMP AND NOT APPLE)
|
if (try_OpenMP)
|
||||||
find_package(OpenMP)
|
find_package(OpenMP)
|
||||||
if (OpenMP_FOUND)
|
if (OpenMP_CXX_FOUND)
|
||||||
add_definitions(-DHAVE_GOMP)
|
add_definitions(-DHAVE_GOMP)
|
||||||
set(HAVE_GOMP 1 CACHE INTERNAL "Have GOMP")
|
set(HAVE_GOMP 1 CACHE INTERNAL "Have GOMP")
|
||||||
endif (OpenMP_FOUND)
|
endif (OpenMP_CXX_FOUND)
|
||||||
endif (try_OpenMP AND NOT APPLE)
|
endif (try_OpenMP)
|
||||||
|
|
||||||
#--- check for Qt -------------------------------------------------------------
|
#--- check for Qt -------------------------------------------------------------
|
||||||
if (qt_based_tools)
|
if (qt_based_tools)
|
||||||
@@ -198,11 +211,41 @@ if (qt_based_tools)
|
|||||||
endif (qt_version STREQUAL 3)
|
endif (qt_version STREQUAL 3)
|
||||||
endif (qt_based_tools)
|
endif (qt_based_tools)
|
||||||
|
|
||||||
#--- if NeXus check also for HDF4, HDF5, and MXML -----------------------------
|
#--- if NeXus check also for HDF4 (optional), HDF5 ----------------------------
|
||||||
if (nexus)
|
if (nexus)
|
||||||
find_package(HDF5 COMPONENTS CXX REQUIRED )
|
find_package(HDF5 COMPONENTS CXX REQUIRED)
|
||||||
find_package(HDF4 REQUIRED)
|
if (HAVE_HDF4)
|
||||||
find_package(NEXUS REQUIRED)
|
#--- check for HDF4 -----------------------------------------------------------
|
||||||
|
# Find HDF4 manually (pkg-config often doesn't have hdf4)
|
||||||
|
find_path(HDF4_INCLUDE_DIR
|
||||||
|
NAMES mfhdf.h
|
||||||
|
PATHS /usr/include /usr/local/include
|
||||||
|
PATH_SUFFIXES hdf
|
||||||
|
)
|
||||||
|
|
||||||
|
find_library(HDF4_DF_LIBRARY
|
||||||
|
NAMES df libdf
|
||||||
|
PATHS /usr/lib64 /usr/lib /usr/local/lib64 /usr/local/lib
|
||||||
|
)
|
||||||
|
|
||||||
|
find_library(HDF4_MFHDF_LIBRARY
|
||||||
|
NAMES mfhdf libmfhdf
|
||||||
|
PATHS /usr/lib64 /usr/lib /usr/local/lib64 /usr/local/lib
|
||||||
|
)
|
||||||
|
|
||||||
|
if (HDF4_INCLUDE_DIR AND HDF4_DF_LIBRARY AND HDF4_MFHDF_LIBRARY)
|
||||||
|
set(HDF4_FOUND TRUE)
|
||||||
|
set(HDF4_INCLUDE_DIRS ${HDF4_INCLUDE_DIR})
|
||||||
|
set(HDF4_LIBRARIES ${HDF4_MFHDF_LIBRARY} ${HDF4_DF_LIBRARY})
|
||||||
|
message(STATUS "Found HDF4: ${HDF4_INCLUDE_DIR}")
|
||||||
|
message(STATUS " HDF4 libraries: ${HDF4_LIBRARIES}")
|
||||||
|
else()
|
||||||
|
message(FATAL_ERROR "HDF4 library not found. Please install libhdf4-dev or hdf-devel")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
include_directories(${HDF4_INCLUDE_DIRS})
|
||||||
|
add_definitions(-DHAVE_HDF4)
|
||||||
|
endif (HAVE_HDF4)
|
||||||
add_definitions(-DPNEXUS_ENABLED)
|
add_definitions(-DPNEXUS_ENABLED)
|
||||||
endif (nexus)
|
endif (nexus)
|
||||||
|
|
||||||
@@ -222,10 +265,50 @@ else ()
|
|||||||
set(IS_GIT_REPO 0)
|
set(IS_GIT_REPO 0)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
|
#--- start create git-revision.h ----------------------------------------------
|
||||||
|
if (IS_GIT_REPO)
|
||||||
|
add_custom_target(git_revision ALL
|
||||||
|
COMMAND sh ${CMAKE_SOURCE_DIR}/src/git_revision.sh ${CMAKE_BINARY_DIR}/src
|
||||||
|
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
||||||
|
COMMENT "Checking git revision"
|
||||||
|
)
|
||||||
|
|
||||||
|
set(HAVE_GIT_REV_H "-DHAVE_GIT_REV_H")
|
||||||
|
else (IS_GIT_REPO)
|
||||||
|
set(HAVE_GIT_REV_H "")
|
||||||
|
endif (IS_GIT_REPO)
|
||||||
|
|
||||||
|
#--- end create git-revision.h ------------------------------------------------
|
||||||
|
|
||||||
|
#--- rpath related things -----------------------------------------------------
|
||||||
|
# use, i.e. don't skip the full RPATH for the build tree
|
||||||
|
set(CMAKE_SKIP_BUILD_RPATH FALSE)
|
||||||
|
|
||||||
|
# when building, don't use the install RPATH already
|
||||||
|
# (but later on when installing)
|
||||||
|
set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
|
||||||
|
|
||||||
|
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
|
||||||
|
|
||||||
|
# add the automatically determined parts of the RPATH
|
||||||
|
# which point to directories outside the build tree to the install RPATH
|
||||||
|
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
|
||||||
|
|
||||||
|
# the RPATH to be used when installing, but only if it's not a system directory
|
||||||
|
list(FIND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES "${CMAKE_INSTALL_PREFIX}/lib" isSystemDir)
|
||||||
|
if("${isSystemDir}" STREQUAL "-1")
|
||||||
|
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
|
||||||
|
endif("${isSystemDir}" STREQUAL "-1")
|
||||||
|
set(rpath ${CMAKE_INSTALL_RPATH})
|
||||||
|
string(APPEND rpath ";/usr/local/lib")
|
||||||
|
set(CMAKE_INSTALL_RPATH "${rpath}")
|
||||||
|
|
||||||
#--- propagate to the sub-directories -----------------------------------------
|
#--- propagate to the sub-directories -----------------------------------------
|
||||||
add_subdirectory(src)
|
add_subdirectory(src)
|
||||||
|
|
||||||
#--- write summary of the installation
|
#--- write summary of the installation
|
||||||
|
cmake_host_system_information(RESULT PROCESSOR QUERY PROCESSOR_DESCRIPTION)
|
||||||
|
|
||||||
message("")
|
message("")
|
||||||
message("|-----------------------------------------------------------------------|")
|
message("|-----------------------------------------------------------------------|")
|
||||||
message("| |")
|
message("| |")
|
||||||
@@ -233,8 +316,9 @@ message("| Summary
|
|||||||
message("| |")
|
message("| |")
|
||||||
message("|-----------------------------------------------------------------------|")
|
message("|-----------------------------------------------------------------------|")
|
||||||
message("")
|
message("")
|
||||||
message(" System: ${CMAKE_HOST_SYSTEM_NAME} ${CMAKE_SYSTEM_PROCESSOR} - ${CMAKE_HOST_SYSTEM_VERSION}")
|
message(" System: ${CMAKE_HOST_SYSTEM_NAME} ${CMAKE_SYSTEM_PROCESSOR} - ${CMAKE_HOST_SYSTEM_VERSION}")
|
||||||
message(" -------")
|
message(" Processor: ${PROCESSOR} (${CMAKE_SYSTEM_PROCESSOR})")
|
||||||
|
message(" ----------")
|
||||||
message("")
|
message("")
|
||||||
message(" musrfit Version: ${musrfit_VERSION}")
|
message(" musrfit Version: ${musrfit_VERSION}")
|
||||||
message(" ----------------")
|
message(" ----------------")
|
||||||
@@ -260,9 +344,12 @@ endif (OpenMP_FOUND)
|
|||||||
|
|
||||||
if (nexus)
|
if (nexus)
|
||||||
message("")
|
message("")
|
||||||
message(" HDF4 found in ${HDF4_INCLUDE_DIRS}")
|
if (HAVE_HDF4)
|
||||||
|
message(" HDF4 found in ${HDF4_INCLUDE_DIRS}")
|
||||||
|
else (HAVE_HDF4)
|
||||||
|
message(" HDF4 not present.")
|
||||||
|
endif (HAVE_HDF4)
|
||||||
message(" HDF5 found in ${HDF5_INCLUDE_DIRS}, Version: ${HDF5_VERSION}")
|
message(" HDF5 found in ${HDF5_INCLUDE_DIRS}, Version: ${HDF5_VERSION}")
|
||||||
message(" NeXus found in ${NEXUS_INCLUDE_DIR}, Version: ${NEXUS_VERSION_STRING}")
|
|
||||||
endif (nexus)
|
endif (nexus)
|
||||||
|
|
||||||
message("")
|
message("")
|
||||||
|
|||||||
50
ChangeLog
50
ChangeLog
@@ -6,11 +6,57 @@ The ChangeLog will describe feature changes rather than coding detail changes.
|
|||||||
|
|
||||||
For detailed information about changes have a look here:
|
For detailed information about changes have a look here:
|
||||||
|
|
||||||
https://gitlab.psi.ch/nemu/musrfit/activity
|
https://gitea.psi.ch/LMU/musrfit
|
||||||
|
|
||||||
or
|
or
|
||||||
|
|
||||||
https://bitbucket.org/muonspin/musrfit/commits/all
|
https://bitbucket.org/muonspin/musrfit
|
||||||
|
|
||||||
|
Release of V1.9.10, 2026/01/16
|
||||||
|
==============================
|
||||||
|
|
||||||
|
function handling lifted from boost/spirit classic/qi to x3
|
||||||
|
|
||||||
|
Release of V1.9.9, 2025/06/08
|
||||||
|
=============================
|
||||||
|
|
||||||
|
add THEORY functions for local Gaussian / global Lorentzian, and a simple F-mu-F function.
|
||||||
|
|
||||||
|
Release of V1.9.8, 2025/03/24
|
||||||
|
=============================
|
||||||
|
|
||||||
|
add a user interface option to export data from a msr-file view (single- or multiple files).
|
||||||
|
|
||||||
|
Release of V1.9.7, 2025/01/18
|
||||||
|
=============================
|
||||||
|
|
||||||
|
allow spaces in RUN block path-filename
|
||||||
|
|
||||||
|
Release of V1.9.6, 2024/12/02
|
||||||
|
=============================
|
||||||
|
|
||||||
|
added jump to block feature in musredit.
|
||||||
|
|
||||||
|
|
||||||
|
Release of V1.9.5, 2024/06/24
|
||||||
|
=============================
|
||||||
|
|
||||||
|
yaml export of ALL fit-parameters, as initiated by R.M.L. McFadden.
|
||||||
|
|
||||||
|
Release of V1.9.4, 2024/06/08
|
||||||
|
=============================
|
||||||
|
|
||||||
|
enable OpenMP for macOS.
|
||||||
|
|
||||||
|
Release of V1.9.3, 2024/04/19
|
||||||
|
=============================
|
||||||
|
|
||||||
|
fix of function string generation from AST.
|
||||||
|
|
||||||
|
Release of V1.9.2, 2023/10/25
|
||||||
|
=============================
|
||||||
|
|
||||||
|
switch over to smart pointers wherever possible.
|
||||||
|
|
||||||
Release of V1.9.1, 2023/05/16
|
Release of V1.9.1, 2023/05/16
|
||||||
=============================
|
=============================
|
||||||
|
|||||||
6
INSTALL
6
INSTALL
@@ -18,7 +18,7 @@ directory and
|
|||||||
cd build
|
cd build
|
||||||
cmake ../ -DCMAKE_INSTALL_PREFIX=$ROOTSYS (or where ever musrfit should be installed)
|
cmake ../ -DCMAKE_INSTALL_PREFIX=$ROOTSYS (or where ever musrfit should be installed)
|
||||||
cmake --build ./ --clean-first
|
cmake --build ./ --clean-first
|
||||||
make install (as superuser -- maybe)
|
cmake --install ./ (as superuser -- maybe)
|
||||||
/sbin/ldconfig (as superuser)
|
/sbin/ldconfig (as superuser)
|
||||||
|
|
||||||
cmake configuration allows a couple of switches. For details check the documentation at
|
cmake configuration allows a couple of switches. For details check the documentation at
|
||||||
@@ -31,7 +31,7 @@ An example with NeXus support and BMWlibs needed would look like this
|
|||||||
cd build
|
cd build
|
||||||
cmake ../ -Dnexus=1 -DBMWlibs=1 -DCMAKE_INSTALL_PREFIX=$ROOTSYS
|
cmake ../ -Dnexus=1 -DBMWlibs=1 -DCMAKE_INSTALL_PREFIX=$ROOTSYS
|
||||||
cmake --build ./ --clean-first
|
cmake --build ./ --clean-first
|
||||||
make install (as superuser -- maybe)
|
cmake --install ./ (as superuser -- maybe)
|
||||||
/sbin/ldconfig (as superuser)
|
/sbin/ldconfig (as superuser)
|
||||||
|
|
||||||
In the optimal case everything is ready to be used ;-)
|
In the optimal case everything is ready to be used ;-)
|
||||||
@@ -43,7 +43,7 @@ In the optimal case everything is ready to be used ;-)
|
|||||||
More information regarding software requirements and the installation process
|
More information regarding software requirements and the installation process
|
||||||
can be found here:
|
can be found here:
|
||||||
|
|
||||||
http://lmu.web.psi.ch/musrfit/user/MUSR/MusrFitSetup.html
|
https://lmu.pages.psi.ch/musrfit-docu/setup-standard.html
|
||||||
|
|
||||||
#---------------------------------------------------------------------
|
#---------------------------------------------------------------------
|
||||||
# this is the end ...
|
# this is the end ...
|
||||||
|
|||||||
2
README
2
README
@@ -32,7 +32,7 @@ Documentation
|
|||||||
|
|
||||||
For a more exhaustive user documentation see:
|
For a more exhaustive user documentation see:
|
||||||
|
|
||||||
http://lmu.web.psi.ch/musrfit/user/html/index.html
|
https://lmu.pages.psi.ch/musrfit-docu/index.html
|
||||||
|
|
||||||
Contacts
|
Contacts
|
||||||
|
|
||||||
|
|||||||
@@ -26,13 +26,12 @@ Currently it allows the following:
|
|||||||
|
|
||||||
For a more exhaustive user documentation see:
|
For a more exhaustive user documentation see:
|
||||||
|
|
||||||
http://lmu.web.psi.ch/musrfit/user/html/index.html
|
https://lmu.pages.psi.ch/musrfit-docu/index.html
|
||||||
|
|
||||||
### Contacts ###
|
### Contacts ###
|
||||||
|
|
||||||
<andreas.suter@psi.ch>
|
<andreas.suter@psi.ch>
|
||||||
|
|
||||||
For the beta-NMR related parts, please contact
|
For the beta-NMR related parts, please contact Zaher Salman
|
||||||
|
|
||||||
<zaher.salman@psi.ch>
|
<zaher.salman@psi.ch>
|
||||||
|
|
||||||
|
|||||||
@@ -1,97 +0,0 @@
|
|||||||
## Process this file with cmake
|
|
||||||
#=============================================================================
|
|
||||||
# NeXus - Neutron & X-ray Common Data Format
|
|
||||||
#
|
|
||||||
# CMakeLists for building the NeXus library and applications.
|
|
||||||
#
|
|
||||||
# Copyright (C) 2011 Stephen Rankin
|
|
||||||
#
|
|
||||||
# This library is free software; you can redistribute it and/or modify it
|
|
||||||
# under the terms of the GNU Lesser General Public License as published by the
|
|
||||||
# Free Software Foundation; either version 2 of the License, or (at your
|
|
||||||
# option) any later version.
|
|
||||||
#
|
|
||||||
# This library is distributed in the hope that it will be useful, but WITHOUT
|
|
||||||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
||||||
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
|
|
||||||
# for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU Lesser General Public License
|
|
||||||
# along with this library; if not, write to the Free Software Foundation,
|
|
||||||
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
||||||
#
|
|
||||||
# For further information, see <http://www.nexusformat.org>
|
|
||||||
#
|
|
||||||
#
|
|
||||||
#=============================================================================
|
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# find the runtime binaries of the HDF4 library
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
find_library(HDF4_DF_LIBRARY NAMES df hdf
|
|
||||||
HINTS ENV HDF4_ROOT
|
|
||||||
PATH_SUFFIXES hdf)
|
|
||||||
|
|
||||||
|
|
||||||
if(HDF4_DF_LIBRARY MATCHES HDF4_DF_LIBRARY-NOTFOUND)
|
|
||||||
message(FATAL_ERROR "Could not find HDF4 DF library!")
|
|
||||||
else()
|
|
||||||
get_filename_component(HDF4_LIBRARY_DIRS ${HDF4_DF_LIBRARY} PATH)
|
|
||||||
message(STATUS "Found HDF4 DF library: ${HDF4_DF_LIBRARY}")
|
|
||||||
message(STATUS "HDF4 libary path: ${HDF4_LIBRARY_DIRS}")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
find_library(HDF4_MFHDF_LIBRARY NAMES mfhdf
|
|
||||||
HINTS ENV HDF4_ROOT
|
|
||||||
PATH_SUFFIXES hdf)
|
|
||||||
|
|
||||||
if(HDF4_MFHDF_LIBRARY MATCHES HDF4_MFHDF_LIBRARY-NOTFOUND)
|
|
||||||
message(FATAL_ERROR "Could not find HDF5 MFHDF library!")
|
|
||||||
else()
|
|
||||||
message(STATUS "Found HDF4 MFHDF library: ${HDF4_MFHDF_LIBRARY}")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# find the HDF4 header file
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
find_path(HDF4_INCLUDE_DIRS mfhdf.h
|
|
||||||
HINTS ENV HDF4_ROOT
|
|
||||||
PATH_SUFFIXES hdf)
|
|
||||||
|
|
||||||
if(HDF4_INCLUDE_DIRS MATCHES HDF4_INCLUDE_DIRS-NOTFOUND)
|
|
||||||
message(FATAL_ERROR "Could not find HDF4 header files")
|
|
||||||
else()
|
|
||||||
message(STATUS "Found HDF4 header files in: ${HDF4_INCLUDE_DIRS}")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# search for additional packages required to link against HDF4
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
find_package(JPEG REQUIRED)
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# add libraries to the link list for NAPI
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
get_filename_component(LIB_EXT ${HDF4_DF_LIBRARY} EXT)
|
|
||||||
if(LIB_EXT MATCHES .a)
|
|
||||||
message(STATUS "HDF4 DF library is static")
|
|
||||||
list(APPEND NAPI_LINK_LIBS "-Wl,-whole-archive" ${HDF4_DF_LIBRARY} "-Wl,-no-whole-archive")
|
|
||||||
else()
|
|
||||||
list(APPEND NAPI_LINK_LIBS ${HDF4_DF_LIBRARY})
|
|
||||||
endif()
|
|
||||||
|
|
||||||
|
|
||||||
get_filename_component(LIB_EXT ${HDF4_MFHDF_LIBRARY} EXT)
|
|
||||||
if(LIB_EXT MATCHES .a)
|
|
||||||
message(STATUS "HDF4 MFHDF library is static")
|
|
||||||
list(APPEND NAPI_LINK_LIBS "-Wl,-whole-archive" ${HDF4_MFHDF_LIBRARY} "-Wl,-no-whole-archive")
|
|
||||||
else()
|
|
||||||
list(APPEND NAPI_LINK_LIBS ${HDF4_MFHDF_LIBRARY})
|
|
||||||
endif()
|
|
||||||
|
|
||||||
list(APPEND NAPI_LINK_LIBS jpeg)
|
|
||||||
|
|
||||||
include_directories ( SYSTEM ${HDF4_INCLUDE_DIRS} )
|
|
||||||
link_directories(${HDF4_LIBRARY_DIRS})
|
|
||||||
@@ -1,34 +0,0 @@
|
|||||||
# - find MXML
|
|
||||||
# find the MXML lib and includes
|
|
||||||
# This module defines
|
|
||||||
# LIBMXML_INCLUDE_DIR, where to find mxml.h
|
|
||||||
# LIBMXML_LIBRARY, library to link against
|
|
||||||
# LIBMXML_FOUND, if false, do not try to use the MXML lib
|
|
||||||
|
|
||||||
find_path(LIBMXML_INCLUDE_DIR mxml.h
|
|
||||||
HINT "/usr/include"
|
|
||||||
)
|
|
||||||
# find position of mxml.h from the end
|
|
||||||
string(FIND "${LIBMXML_INCLUDE_DIR}" "/mxml.h" pos REVERSE)
|
|
||||||
# truncate the string
|
|
||||||
string(SUBSTRING "${LIBMXML_INCLUDE_DIR}" 0 ${pos} substr)
|
|
||||||
set(LIBMXML_INCLUDE_DIR ${substr})
|
|
||||||
unset(substr)
|
|
||||||
|
|
||||||
find_library(LIBMXML_LIBRARY mxml)
|
|
||||||
|
|
||||||
# get version string
|
|
||||||
# currently do not know from where to get it automatically
|
|
||||||
|
|
||||||
# handle the QUIETLY and REQUIRED arguments and set LIBMXML_FOUND to TRUE if
|
|
||||||
# all listed variables are TRUE
|
|
||||||
include(${CMAKE_ROOT}/Modules/FindPackageHandleStandardArgs.cmake)
|
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(MXML
|
|
||||||
REQUIRED_VARS LIBMXML_LIBRARY LIBMXML_INCLUDE_DIR)
|
|
||||||
|
|
||||||
if (NOT LIBMXML_FOUND)
|
|
||||||
unset(LIBMXML_LIBRARY)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
mark_as_advanced(LIBMXML_INCLUDE_DIR LIBMXML_LIBRARY)
|
|
||||||
|
|
||||||
@@ -1,45 +0,0 @@
|
|||||||
# - Find NeXus library
|
|
||||||
# Find the native NEXUS includes and library
|
|
||||||
# This module defines
|
|
||||||
# NEXUS_INCLUDE_DIR, where to find NeXus.h, etc.
|
|
||||||
# NEXUS_LIBRARY, library to link against to use NEXUS
|
|
||||||
# NEXUS_FOUND, if false, do not try to use NEXUS.
|
|
||||||
|
|
||||||
find_path(NEXUS_INCLUDE_DIR napi.h
|
|
||||||
HINTS "/usr/local/include" "/opt/nexus/include" "/usr/local/include/nexus"
|
|
||||||
)
|
|
||||||
# find position of napi.h from the end
|
|
||||||
string(FIND "${NEXUS_INCLUDE_DIR}" "/napi.h" pos REVERSE)
|
|
||||||
# truncate the string
|
|
||||||
string(SUBSTRING "${NEXUS_INCLUDE_DIR}" 0 ${pos} substr)
|
|
||||||
set(NEXUS_INCLUDE_DIR ${substr})
|
|
||||||
unset(substr)
|
|
||||||
|
|
||||||
find_library(NEXUS_LIBRARY NeXus
|
|
||||||
HINTS "/usr/lib" "/usr/lib64" "/usr/local/lib" "/usr/local/lib64" "/opt/nexus/lib")
|
|
||||||
|
|
||||||
# get version string
|
|
||||||
if (NEXUS_INCLUDE_DIR AND EXISTS ${NEXUS_INCLUDE_DIR}/napi.h)
|
|
||||||
file(STRINGS "${NEXUS_INCLUDE_DIR}/napi.h" NEXUS_version_str
|
|
||||||
REGEX "^#define[\t ]+NEXUS_VERSION[\t ].*")
|
|
||||||
|
|
||||||
string(REGEX REPLACE "^#define[\t ]+NEXUS_VERSION[\t ]+\"([^\"]*).*"
|
|
||||||
"\\1" NEXUS_VERSION_STRING "${NEXUS_version_str}")
|
|
||||||
unset(NEXUS_version_str)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# handle the QUIETLY and REQUIRED arguments and set NEXUS_FOUND to TRUE if
|
|
||||||
# all listed variables are TRUE
|
|
||||||
include(${CMAKE_ROOT}/Modules/FindPackageHandleStandardArgs.cmake)
|
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(NEXUS
|
|
||||||
REQUIRED_VARS NEXUS_LIBRARY NEXUS_INCLUDE_DIR
|
|
||||||
VERSION_VAR NEXUS_VERSION_STRING)
|
|
||||||
|
|
||||||
if (NOT NEXUS_FOUND)
|
|
||||||
unset(NEXUS_LIBRARY)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
mark_as_advanced(NEXUS_INCLUDE_DIR NEXUS_LIBRARY)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,30 +0,0 @@
|
|||||||
# configure_musrfit_version_file.cmake.in:
|
|
||||||
set(SRC_DIR "@CMAKE_SOURCE_DIR@")
|
|
||||||
set(BIN_DIR "@CMAKE_CURRENT_BINARY_DIR@")
|
|
||||||
|
|
||||||
# Set variables
|
|
||||||
set(CMAKE_INSTALL_PREFIX "@CMAKE_INSTALL_PREFIX@")
|
|
||||||
set(MUSRFIT_VERSION "@MUSRFIT_VERSION@")
|
|
||||||
|
|
||||||
# Get the current working branch
|
|
||||||
execute_process(
|
|
||||||
COMMAND git rev-parse --abbrev-ref HEAD
|
|
||||||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
|
||||||
OUTPUT_VARIABLE GIT_BRANCH
|
|
||||||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
|
||||||
)
|
|
||||||
|
|
||||||
# Get the latest abbreviated commit hash of the working branch
|
|
||||||
execute_process(
|
|
||||||
COMMAND git log -1 --pretty="%h, %ci"
|
|
||||||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
|
||||||
OUTPUT_VARIABLE GIT_CURRENT_SHA1
|
|
||||||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
|
||||||
)
|
|
||||||
|
|
||||||
configure_file(
|
|
||||||
${SRC_DIR}/cmake/git-revision.h.in
|
|
||||||
${BIN_DIR}/git-revision.h
|
|
||||||
@ONLY
|
|
||||||
)
|
|
||||||
# EOF
|
|
||||||
BIN
doc/.DS_Store
vendored
BIN
doc/.DS_Store
vendored
Binary file not shown.
BIN
doc/examples/.DS_Store
vendored
BIN
doc/examples/.DS_Store
vendored
Binary file not shown.
BIN
doc/examples/ASlibs/.DS_Store
vendored
BIN
doc/examples/ASlibs/.DS_Store
vendored
Binary file not shown.
BIN
doc/examples/DepthProfiles/.DS_Store
vendored
BIN
doc/examples/DepthProfiles/.DS_Store
vendored
Binary file not shown.
@@ -8,7 +8,7 @@
|
|||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (C) 2007-2023 by Andreas Suter *
|
* Copyright (C) 2007-2026 by Andreas Suter *
|
||||||
* andreas.suter@psi.ch *
|
* andreas.suter@psi.ch *
|
||||||
* *
|
* *
|
||||||
* This program is free software; you can redistribute it and/or modify *
|
* This program is free software; you can redistribute it and/or modify *
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (C) 2007-2021 by Andreas Suter *
|
* Copyright (C) 2007-2026 by Andreas Suter *
|
||||||
* andreas.suter@psi.ch *
|
* andreas.suter@psi.ch *
|
||||||
* *
|
* *
|
||||||
* This program is free software; you can redistribute it and/or modify *
|
* This program is free software; you can redistribute it and/or modify *
|
||||||
|
|||||||
Binary file not shown.
BIN
doc/examples/data/emu00139040.nxs
Normal file
BIN
doc/examples/data/emu00139040.nxs
Normal file
Binary file not shown.
@@ -1,33 +1,32 @@
|
|||||||
nc-ZnO T=80 F=69
|
Ag_T=100_F=20
|
||||||
###############################################################
|
###############################################################
|
||||||
FITPARAMETER
|
FITPARAMETER
|
||||||
# No Name Value Step Pos_Error Boundaries
|
# No Name Value Step Pos_Error Boundaries
|
||||||
1 alpha 0.88008 -0.00063 0.00063
|
1 alpha 1.02825 -0.00097 0.00098
|
||||||
2 asym 0.1708 -0.0017 0.0017 0 0.3
|
2 asym 0.23163 -0.00083 0.00103 0 0.3
|
||||||
3 phase 3.90 -0.38 0.38 0 100
|
3 phase 0.000 -0.000 0.011 0 100
|
||||||
4 field 71.003 -0.036 0.036 0 none
|
4 field 20.310 -0.010 0.010 0 none
|
||||||
5 rate 0.1526 -0.0024 0.0024 0 100
|
5 rate 0.00031 -0.00031 0.00134 0 100
|
||||||
6 beta 1.231 -0.046 0.047
|
|
||||||
|
|
||||||
###############################################################
|
###############################################################
|
||||||
THEORY
|
THEORY
|
||||||
asymmetry 2
|
asymmetry 2
|
||||||
TFieldCos 3 fun1 (phase frequency)
|
TFieldCos 3 fun1 (phase frequency)
|
||||||
generExpo 5 6 (rate exponent)
|
simplExpo 5 (rate)
|
||||||
|
|
||||||
###############################################################
|
###############################################################
|
||||||
FUNCTIONS
|
FUNCTIONS
|
||||||
fun1 = gamma_mu * par4
|
fun1 = gamma_mu * par4
|
||||||
|
|
||||||
###############################################################
|
###############################################################
|
||||||
RUN data/EMU00005989_v2 EMU ISIS NEXUS (name beamline institute data-file-format)
|
RUN data/emu00139040 EMU ISIS NEXUS (name beamline institute data-file-format)
|
||||||
fittype 2 (asymmetry fit)
|
fittype 2 (asymmetry fit)
|
||||||
alpha 1
|
alpha 1
|
||||||
map 0 0 0 0 0 0 0 0 0 0
|
map 0 0 0 0 0 0 0 0 0 0
|
||||||
forward 1-16
|
forward 1-48
|
||||||
backward 17-32
|
backward 49-96
|
||||||
backgr.fix 0 0
|
backgr.fix 0 0
|
||||||
data 40 1500 40 1500
|
data 10 2048 10 2048
|
||||||
fit 0.2 14
|
fit 0.2 14
|
||||||
packing 1
|
packing 1
|
||||||
|
|
||||||
@@ -39,19 +38,19 @@ SAVE
|
|||||||
|
|
||||||
###############################################################
|
###############################################################
|
||||||
FOURIER
|
FOURIER
|
||||||
units Gauss # units either 'Gauss', 'MHz', or 'Mc/s'
|
units Gauss # units either 'Gauss', 'Tesla', 'MHz', or 'Mc/s'
|
||||||
fourier_power 10
|
fourier_power 10
|
||||||
apodization STRONG # NONE, WEAK, MEDIUM, STRONG
|
apodization STRONG # NONE, WEAK, MEDIUM, STRONG
|
||||||
plot REAL # REAL, IMAG, REAL_AND_IMAG, POWER, PHASE
|
plot REAL # REAL, IMAG, REAL_AND_IMAG, POWER, PHASE, PHASE_OPT_REAL
|
||||||
range 0 100
|
range 0 100
|
||||||
phase par2
|
phase par2
|
||||||
|
|
||||||
###############################################################
|
###############################################################
|
||||||
PLOT 2 (asymmetry plot)
|
PLOT 2 (asymmetry plot)
|
||||||
runs 1
|
runs 1
|
||||||
range 0 14 -0.22 0.22
|
range 0 14 -0.32 0.32
|
||||||
view_packing 5
|
view_packing 10
|
||||||
|
|
||||||
###############################################################
|
###############################################################
|
||||||
STATISTIC --- 2012-03-20 10:28:41
|
STATISTIC --- 2026-02-06 14:00:49
|
||||||
chisq = 796.7, NDF = 846, chisq/NDF = 0.941749
|
chisq = 1092.3, NDF = 858, chisq/NDF = 1.273055
|
||||||
|
|||||||
@@ -1,23 +1,22 @@
|
|||||||
nc-ZnO T=80 F=69
|
Ag_T=100_F=20
|
||||||
###############################################################
|
###############################################################
|
||||||
FITPARAMETER
|
FITPARAMETER
|
||||||
# No Name Value Step Pos_Error Boundaries
|
# No Name Value Step Pos_Error Boundaries
|
||||||
1 zero 0 0 none
|
1 zero 0 0 none
|
||||||
2 phase 2.81 -0.30 0.30 0 100
|
2 phase 0.000000011 -0.000000011 0.005772888 0 100
|
||||||
3 field 70.998 -0.025 0.025 0 none
|
3 field 20.3391 -0.0085 0.0085 0 none
|
||||||
4 asym 0.1700 -0.0011 0.0012 0 0.3
|
4 asym 0.23461 -0.00051 0.00051 0 0.3
|
||||||
5 rate 0.1523 -0.0017 0.0017 0 100
|
5 rate 0.0239 -0.0040 0.0035 0 100
|
||||||
6 beta 1.255 -0.033 0.033
|
6 Norm_L 1151.24 -0.53 0.53
|
||||||
7 Norm_L 2410.44 -0.83 0.83
|
7 BG_L 0 0 none 0 none
|
||||||
8 BG_L 0 0 none 0 none
|
8 Norm_R 1178.60 -0.58 0.58 0 none
|
||||||
9 Norm_R 2121.43 -0.77 0.77 0 none
|
9 BG_R 0 0 none 0 none
|
||||||
10 BG_R 0 0 none 0 none
|
10 relPhase 178.49 -0.20 0.20 0 none
|
||||||
11 relPhase 182.29 -0.31 0.31 0 none
|
|
||||||
|
|
||||||
###############################################################
|
###############################################################
|
||||||
THEORY
|
THEORY
|
||||||
asymmetry 4
|
asymmetry 4
|
||||||
generExpo 5 6 (rate exponent)
|
simpleGss 5 (rate)
|
||||||
TFieldCos fun1 fun2 (phase frequency)
|
TFieldCos fun1 fun2 (phase frequency)
|
||||||
|
|
||||||
###############################################################
|
###############################################################
|
||||||
@@ -28,22 +27,25 @@ fun2 = gamma_mu * par3
|
|||||||
###############################################################
|
###############################################################
|
||||||
GLOBAL
|
GLOBAL
|
||||||
fittype 0 (single histogram fit)
|
fittype 0 (single histogram fit)
|
||||||
data 40 1500
|
data 5 2048
|
||||||
fit 0.2 14
|
t0 10.0
|
||||||
|
deadtime-cor file
|
||||||
|
fit 0.144 30
|
||||||
packing 1
|
packing 1
|
||||||
|
|
||||||
###############################################################
|
###############################################################
|
||||||
RUN data/EMU00005989_v2 XXXX ISIS NEXUS (name beamline institute data-file-format)
|
RUN data/emu00139040 EMU ISIS NEXUS (name beamline institute data-file-format)
|
||||||
norm 7
|
norm 6
|
||||||
backgr.fit 8
|
backgr.fit 7
|
||||||
map 1 0 0 0 0 0 0 0 0 0
|
map 1 0 0 0 0 0 0 0 0 0
|
||||||
forward 1-16
|
forward 1-48
|
||||||
|
#deadtime-cor file
|
||||||
|
|
||||||
RUN data/EMU00005989_v2 XXXX ISIS NEXUS (name beamline institute data-file-format)
|
RUN data/emu00139040 XXXX ISIS NEXUS (name beamline institute data-file-format)
|
||||||
norm 9
|
norm 8
|
||||||
backgr.fit 10
|
backgr.fit 9
|
||||||
map 11 0 0 0 0 0 0 0 0 0
|
map 10 0 0 0 0 0 0 0 0 0
|
||||||
forward 17-32
|
forward 49-96
|
||||||
|
|
||||||
###############################################################
|
###############################################################
|
||||||
COMMANDS
|
COMMANDS
|
||||||
@@ -59,15 +61,15 @@ fourier_power 11
|
|||||||
apodization STRONG # NONE, WEAK, MEDIUM, STRONG
|
apodization STRONG # NONE, WEAK, MEDIUM, STRONG
|
||||||
plot REAL # REAL, IMAG, REAL_AND_IMAG, POWER, PHASE, PHASE_OPT_REAL
|
plot REAL # REAL, IMAG, REAL_AND_IMAG, POWER, PHASE, PHASE_OPT_REAL
|
||||||
range 0 200
|
range 0 200
|
||||||
phase parR2 par11
|
phase parR2, par10
|
||||||
|
|
||||||
###############################################################
|
###############################################################
|
||||||
PLOT 0 (single histo plot)
|
PLOT 0 (single histo plot)
|
||||||
lifetimecorrection
|
lifetimecorrection
|
||||||
runs 1 2
|
runs 1 2
|
||||||
range 0 14 -0.22 0.22
|
range 0 20 -0.35 0.35
|
||||||
view_packing 2
|
#view_packing 10
|
||||||
|
|
||||||
###############################################################
|
###############################################################
|
||||||
STATISTIC --- 2019-03-12 18:08:05
|
STATISTIC --- 2026-02-08 15:32:12
|
||||||
maxLH = 2585.1, NDF = 1696, maxLH/NDF = 1.524236
|
maxLH = 4233.1, NDF = 3725, maxLH/NDF = 1.136412
|
||||||
|
|||||||
@@ -15,9 +15,6 @@ asymmetry 3
|
|||||||
simplExpo 4 (rate)
|
simplExpo 4 (rate)
|
||||||
TFieldCos 1 2 (phase frequency)
|
TFieldCos 1 2 (phase frequency)
|
||||||
|
|
||||||
###############################################################
|
|
||||||
#FUNCTIONS
|
|
||||||
|
|
||||||
###############################################################
|
###############################################################
|
||||||
RUN data/lem08_his_2279 MUE4 PSI ROOT-NPP (name beamline institute data-file-format)
|
RUN data/lem08_his_2279 MUE4 PSI ROOT-NPP (name beamline institute data-file-format)
|
||||||
fittype 0 (single histogram fit)
|
fittype 0 (single histogram fit)
|
||||||
@@ -39,6 +36,14 @@ MINIMIZE
|
|||||||
MINOS
|
MINOS
|
||||||
SAVE
|
SAVE
|
||||||
|
|
||||||
|
###############################################################
|
||||||
|
FOURIER
|
||||||
|
units Gauss # units either 'Gauss', 'Tesla', 'MHz', or 'Mc/s'
|
||||||
|
fourier_power 10
|
||||||
|
apodization STRONG # NONE, WEAK, MEDIUM, STRONG
|
||||||
|
plot POWER # REAL, IMAG, REAL_AND_IMAG, POWER, PHASE, PHASE_OPT_REAL
|
||||||
|
dc-corrected true
|
||||||
|
|
||||||
###############################################################
|
###############################################################
|
||||||
PLOT 0 (single histo plot)
|
PLOT 0 (single histo plot)
|
||||||
runs 1
|
runs 1
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user