Merged muonspin/musrfit:root6 into master

This commit is contained in:
Zaher Salman 2021-04-13 15:33:36 +02:00
commit 29b603e124
2 changed files with 11 additions and 9 deletions

View File

@ -14,9 +14,9 @@ option(BMWlibs "build optional BMWlibs" OFF)
option(BNMRlibs "build optional beta-NMR libs" OFF) option(BNMRlibs "build optional beta-NMR libs" OFF)
option(qt_based_tools "try to install Qt based tools (musredit, musrWiz, musrStep, mupp)" ON) option(qt_based_tools "try to install Qt based tools (musredit, musrWiz, musrStep, mupp)" ON)
option(try_OpenMP "try to use OpenMP if available" ON) option(try_OpenMP "try to use OpenMP if available" ON)
# define qt_version with possible values 'auto' or version '3', '4', '5' # define qt_version with possible values 'auto' or version '3', '4', '5', '6'
set(qt_version AUTO CACHE STRING "provide a specific Qt version to be used.") set(qt_version AUTO CACHE STRING "provide a specific Qt version to be used.")
set_property(CACHE qt_version PROPERTY STRINGS AUTO 3 4 5) set_property(CACHE qt_version PROPERTY STRINGS AUTO 3 4 5 6)
#--- set a default build type if none was specified --------------------------- #--- set a default build type if none was specified ---------------------------
set(default_build_type "Release") set(default_build_type "Release")

View File

@ -6674,11 +6674,13 @@ void PMsrHandler::MakeDetectorGroupingString(TString str, PIntVector &group, TSt
UInt_t i=0, j=0; UInt_t i=0, j=0;
do { do {
j = i; j = i;
if (j+1 < group.size()) {
while (group[j]+1 == group[j+1]) { while (group[j]+1 == group[j+1]) {
j++; j++;
if (j == group.size()-1) if (j == group.size()-1)
break; break;
} }
}
if (j >= i+2) { if (j >= i+2) {
result += group[i]; result += group[i];