modernized code to C++11 and newer -- cleanup.

This commit is contained in:
suter_a 2019-04-24 17:53:18 +02:00
parent c64c74dbf8
commit 9b2a01db2d

View File

@ -528,13 +528,13 @@ Int_t musrFT_parse_options(Int_t argc, Char_t *argv[], musrFT_startup_param &sta
startupParam.lifetimecorrection = fudge.Atof();
} else if (tstr.BeginsWith("--useDKS")) {
if (i+1 >= argc) { // something is wrong since there needs to be an argument here
cerr << std::endl << ">> musrFT **ERROR** found option --useDKS without argument!" << std::endl;
std::cerr << std::endl << ">> musrFT **ERROR** found option --useDKS without argument!" << std::endl;
return 2;
}
++i;
TString tt(argv[i]);
if (tt.CompareTo("yes", TString::kIgnoreCase) && tt.CompareTo("no", TString::kIgnoreCase)) {
cerr << std::endl << ">> musrFT **ERROR** found option --useDKS with a <flag> which is not yes/no '" << tt << "'." << std::endl;
std::cerr << std::endl << ">> musrFT **ERROR** found option --useDKS with a <flag> which is not yes/no '" << tt << "'." << std::endl;
return 2;
}
if (!tt.CompareTo("yes", TString::kIgnoreCase))
@ -1433,9 +1433,9 @@ Int_t main(Int_t argc, Char_t *argv[])
if (startupParam.useDKS == MFT_DKS)
fftw_flag = false;
if (fftw_flag)
cout << "info> will use FFTW" << std::endl;
std::cout << "info> will use FFTW" << std::endl;
else
cout << "info> will use DKS" << std::endl;
std::cout << "info> will use DKS" << std::endl;
for (UInt_t i=0; i<fourier.size(); i++) {
fourier[i] = new PFourier(histo[i], unitTag, 0.0, 0.0, true, startupParam.fourierPower, fftw_flag);
}