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