From 258f248e9980cf8e9dfd05eece2109f5a8c36bb0 Mon Sep 17 00:00:00 2001 From: Andreas Suter Date: Mon, 27 Jan 2025 18:00:32 +0100 Subject: [PATCH] make sure that 'ASCII', 'DAT', and 'DB' is rejected from musrFT. --- src/musrFT.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/musrFT.cpp b/src/musrFT.cpp index c64135d0..37361f77 100644 --- a/src/musrFT.cpp +++ b/src/musrFT.cpp @@ -1105,6 +1105,21 @@ Int_t main(Int_t argc, Char_t *argv[]) } } + // check for ascii-, db- or dat-files in msr-file RUN block + TString ffstr(""); + for (UInt_t i=0; iGetMsrRunList(); + for (UInt_t j=0; jat(i).GetFileFormatSize(); j++) { + ffstr = *(runList->at(i).GetFileFormat(j)); + if (!ffstr.CompareTo("ascii", TString::kIgnoreCase) || !ffstr.CompareTo("dat", TString::kIgnoreCase) || !ffstr.CompareTo("db", TString::kIgnoreCase)) { + std::cout << std::endl; + std::cout << "**ERROR** Currently file format's 'ASCII', 'DAT', nor 'DB' are NOT supported." << std::endl; + std::cout << std::endl; + return PMUSR_UNSUPPORTED_FEATURE; + } + } + } + std::vector< std::unique_ptr > runDataHandler; runDataHandler.resize(startupParam.msrFln.size()+startupParam.dataFln.size()); // resize to the total number of run data provided // load data-file(s) related to msr-file