Skip to content

Commit 167ed47

Browse files
authored
[PWGDQ] Fix a bug in HistogramsManager.cxx (AliceO2Group#8295)
1 parent 2a7f97b commit 167ed47

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

PWGDQ/Core/HistogramManager.cxx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ void HistogramManager::AddHistogram(const char* histClass, const char* hname, co
180180
varVector.push_back(varY);
181181
varVector.push_back(varZ);
182182
varVector.push_back(varT); // variable used for profiling in case of TProfile3D
183-
varVector.push_back(isFillLabelx); // whether to fill with the x-axis labels
183+
varVector.push_back(isFillLabelx ? 1 : 0); // whether to fill with the x-axis labels
184184
std::list varList = fVariablesMap[histClass];
185185
varList.push_back(varVector);
186186
fVariablesMap[histClass] = varList;
@@ -390,7 +390,7 @@ void HistogramManager::AddHistogram(const char* histClass, const char* hname, co
390390
varVector.push_back(varY);
391391
varVector.push_back(varZ);
392392
varVector.push_back(varT); // variable used for profiling in case of TProfile3D
393-
varVector.push_back(isFillLabelx); // whether to fill with the x-axis labels
393+
varVector.push_back(isFillLabelx ? 1 : 0); // whether to fill with the x-axis labels
394394
std::list varList = fVariablesMap[histClass];
395395
varList.push_back(varVector);
396396
fVariablesMap[histClass] = varList;
@@ -786,9 +786,7 @@ void HistogramManager::FillHistClass(const char* className, Float_t* values)
786786
varY = varIter->at(4);
787787
varZ = varIter->at(5);
788788
varT = varIter->at(6);
789-
if (varIter->at(7) == 1) {
790-
isFillLabelx = kTRUE;
791-
}
789+
isFillLabelx = (varIter->at(7) == 1 ? true : false);
792790
}
793791

794792
if (!isTHn) {

0 commit comments

Comments
 (0)