We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 51db1b8 commit 56ee106Copy full SHA for 56ee106
PWGCF/Femto3D/Tasks/femto3dQA.cxx
@@ -111,12 +111,11 @@ struct QAHistograms {
111
TOFcuts = std::make_pair(_particlePDG, _tofNSigma);
112
113
int N = _dcaBinning.value[0]; // number of bins -- must be odd otherwise will be increased by 1
114
- if (N % 2 != 1) {
115
- N += 1;
116
- }
117
118
std::unique_ptr<double[]> dca_bins;
+
119
if (static_cast<int>(_dcaBinning.value[2]) != 1.0) {
+ if (N % 2 != 1) { N += 1;}
120
dca_bins = calc_var_bins(N + 1, _dcaBinning.value[1], static_cast<int>(_dcaBinning.value[2]));
121
} else {
122
dca_bins = calc_const_bins(N, -_dcaBinning.value[1], _dcaBinning.value[1]);
0 commit comments