Improve logic in GlobalChi2Fitter
This PR makes the GX2F more readable by improving some logic:
- use
else if
for mutual exclusiveif
-chains - consistently use
&&
and||
overand
andor
- use curly braces
{ }
also for single expressionif
s - use ternary assignment over
int a = 0; if (b > 0) {a = b;}
- avoid possible implicit conversion to
bool
when checking fornullptr
- simplify nested
if
s - avoid negations
Edited by Alexander J Pfleger