File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
MC/config/PWGHF/ini/tests Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -45,8 +45,9 @@ int External()
4545 std ::cout <<"# signal hadrons: " << nSignals << "\n" ;
4646 std ::cout <<"# signal hadrons decaying into nuclei: " << nSignalGoodDecay << "\n" ;
4747
48- float fracForcedDecays = float (nSignalGoodDecay ) / nSignals ;
49- if (fracForcedDecays < 0.8 ) // we put some tolerance (lambdaB in MB events do not coalesce)
48+ float fracForcedDecays = nSignals ? float (nSignalGoodDecay ) / nSignals : 0.0f ;
49+ float uncFracForcedDecays = nSignals ? std ::sqrt (fracForcedDecays * (1 - fracForcedDecays ) / nSignals ) : 1.0f ;
50+ if (1 - fracForcedDecays > 0.2 + uncFracForcedDecays ) // we put some tolerance (lambdaB in MB events do not coalesce)
5051 {
5152 std ::cerr << "Fraction of signals decaying into nuclei: " << fracForcedDecays << ", lower than expected\n" ;
5253 return 1 ;
You can’t perform that action at this time.
0 commit comments