fix 'musrfit arguments not passed from msr2data with golbal+' bug report #17 gitea
Build and Deploy Documentation / build-and-deploy (push) Successful in 22s
Build and Deploy Documentation / build-and-deploy (push) Successful in 22s
This commit is contained in:
@@ -775,8 +775,9 @@ bool compare_parameters(const PMsrParamStructure &par1, const PMsrParamStructure
|
||||
* - 0: simple global mode with the same template starting parameters for each run
|
||||
* - 1: global mode including single run fits and data extraction for the global msr-file (same template for all runs)
|
||||
* - 2: global mode including single run fits and data extraction for the global msr-file (successive template generation)
|
||||
* \param musrfitOptions options to be passed to musrfit for the single run fits (global+ mode)
|
||||
*/
|
||||
bool PMsr2Data::PrepareGlobalInputFile(unsigned int tempRun, const std::string &msrOutFile, unsigned int globalPlus) const
|
||||
bool PMsr2Data::PrepareGlobalInputFile(unsigned int tempRun, const std::string &msrOutFile, unsigned int globalPlus, const std::string &musrfitOptions) const
|
||||
{
|
||||
const TString alpha("alpha"), beta("beta"), norm("norm"), bkgfit("bkgfit"), lifetime("lifetime");
|
||||
|
||||
@@ -1423,7 +1424,7 @@ bool PMsr2Data::PrepareGlobalInputFile(unsigned int tempRun, const std::string &
|
||||
std::cerr << std::endl << ">> msr2data: **WARNING** Please set it or at least ensure that musrfit can be found on the PATH!" << std::endl;
|
||||
}
|
||||
std::ostringstream oss;
|
||||
oss << path << "musrfit" << " " << *fRunVectorIter << "-OneRunFit" << fFileExtension << ".msr";
|
||||
oss << path << "musrfit" << " " << *fRunVectorIter << "-OneRunFit" << fFileExtension << ".msr" << " " << musrfitOptions;
|
||||
std::cout << std::endl << ">> msr2data: **INFO** Calling " << oss.str() << std::endl;
|
||||
if (system(oss.str().c_str()) == -1) {
|
||||
std::cerr << std::endl << "**ERROR** system call: " << oss.str().c_str() << " failed." << std::endl;
|
||||
|
||||
Reference in New Issue
Block a user