make sure that N0 is only estimated if N0 is NOT fixed.
This commit is contained in:
parent
666f2c49c3
commit
82ba938c2d
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user