This commit is contained in:
suter_a 2016-04-12 08:45:13 +02:00
commit 2d2d24681c
3 changed files with 20 additions and 1 deletions

View File

@ -1555,7 +1555,7 @@ void PRunSingleHisto::EstimateN0()
if (paramNo > 10000) // i.e. fun or map if (paramNo > 10000) // i.e. fun or map
return; return;
// still missing: set this value in the parameters // get the parameters
PMsrParamList *param = fMsrInfo->GetMsrParamList(); PMsrParamList *param = fMsrInfo->GetMsrParamList();
assert(param); assert(param);
@ -1564,6 +1564,11 @@ void PRunSingleHisto::EstimateN0()
return; return;
} }
// check if N0 is fixed. If this is the case, do NOT estimate N0
if (param->at(paramNo-1).fStep == 0.0) // N0 parameter fixed
return;
// check that 'backgr.fit' in the msr-file run block is indeed a parameter number. // check that 'backgr.fit' in the msr-file run block is indeed a parameter number.
// in case it is a function, nothing will be done. // in case it is a function, nothing will be done.
Int_t paramNoBkg = fRunInfo->GetBkgFitParamNo(); Int_t paramNoBkg = fRunInfo->GetBkgFitParamNo();

View File

@ -2186,6 +2186,9 @@ void PTextEdit::musrView()
cmd = str + " \""; cmd = str + " \"";
str = *fFilenames.find( currentEditor() ); str = *fFilenames.find( currentEditor() );
int pos = str.lastIndexOf("/");
if (pos != -1)
str.remove(0, pos+1);
QString numStr; QString numStr;
numStr.setNum(fAdmin->getTimeout()); numStr.setNum(fAdmin->getTimeout());
cmd += str + "\" --timeout " + numStr; cmd += str + "\" --timeout " + numStr;
@ -2194,6 +2197,10 @@ void PTextEdit::musrView()
cmd += " &"; cmd += " &";
int status=system(cmd.toLatin1()); int status=system(cmd.toLatin1());
if (status != 0) {
cerr << "**WARNING** musrView: something went wrong ..." << endl;
}
} }
//---------------------------------------------------------------------------------------------------- //----------------------------------------------------------------------------------------------------

View File

@ -2184,6 +2184,9 @@ void PTextEdit::musrView()
cmd = str + " \""; cmd = str + " \"";
str = *fFilenames.find( currentEditor() ); str = *fFilenames.find( currentEditor() );
int pos = str.lastIndexOf("/");
if (pos != -1)
str.remove(0, pos+1);
QString numStr; QString numStr;
numStr.setNum(fAdmin->getTimeout()); numStr.setNum(fAdmin->getTimeout());
cmd += str + "\" --timeout " + numStr; cmd += str + "\" --timeout " + numStr;
@ -2192,6 +2195,10 @@ void PTextEdit::musrView()
cmd += " &"; cmd += " &";
int status=system(cmd.toLatin1()); int status=system(cmd.toLatin1());
if (status != 0) {
cerr << "**WARNING** musrView: something went wrong ..." << endl;
}
} }
//---------------------------------------------------------------------------------------------------- //----------------------------------------------------------------------------------------------------