Skip to content

Commit 56ee106

Browse files
fixed: constant DCAxy binning
1 parent 51db1b8 commit 56ee106

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

PWGCF/Femto3D/Tasks/femto3dQA.cxx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,11 @@ struct QAHistograms {
111111
TOFcuts = std::make_pair(_particlePDG, _tofNSigma);
112112

113113
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-
}
117114

118115
std::unique_ptr<double[]> dca_bins;
116+
119117
if (static_cast<int>(_dcaBinning.value[2]) != 1.0) {
118+
if (N % 2 != 1) { N += 1;}
120119
dca_bins = calc_var_bins(N + 1, _dcaBinning.value[1], static_cast<int>(_dcaBinning.value[2]));
121120
} else {
122121
dca_bins = calc_const_bins(N, -_dcaBinning.value[1], _dcaBinning.value[1]);

0 commit comments

Comments
 (0)