Skip to content

Commit e28e410

Browse files
authored
[PWGDQ] More speedup of the DQ HistogramManager (#13105)
1 parent fa7d3fe commit e28e410

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

PWGDQ/Core/HistogramManager.cxx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,7 @@ void HistogramManager::FillHistClass(const char* className, Float_t* values)
757757
}
758758

759759
// get the corresponding std::list containng identifiers to the needed variables to be filled
760-
list varList = fVariablesMap[className];
760+
auto const& varList = fVariablesMap[className];
761761

762762
TIter next(hList);
763763

@@ -777,26 +777,26 @@ void HistogramManager::FillHistClass(const char* className, Float_t* values)
777777
for (auto varIter = varList.begin(); varIter != varList.end(); varIter++) {
778778
h = next(); // get the histogram
779779
// decode information from the vector of indices
780-
isProfile = (varIter->at(0) == 1 ? true : false);
781-
isTHn = (varIter->at(1) > 0 ? true : false);
780+
isProfile = ((*varIter)[0] == 1 ? true : false);
781+
isTHn = ((*varIter)[1] > 0 ? true : false);
782782
if (isTHn) {
783-
dimension = varIter->at(1);
783+
dimension = (*varIter)[1];
784784
} else {
785785
dimension = (reinterpret_cast<TH1*>(h))->GetDimension();
786786
}
787787

788788
// get the various variable indices
789-
varW = varIter->at(2);
789+
varW = (*varIter)[2];
790790
if (isTHn) {
791791
for (int i = 0; i < dimension; i++) {
792-
fillValues[i] = values[varIter->at(3 + i)];
792+
fillValues[i] = values[(*varIter)[3 + i]];
793793
}
794794
} else {
795-
varX = varIter->at(3);
796-
varY = varIter->at(4);
797-
varZ = varIter->at(5);
798-
varT = varIter->at(6);
799-
isFillLabelx = (varIter->at(7) == 1 ? true : false);
795+
varX = (*varIter)[3];
796+
varY = (*varIter)[4];
797+
varZ = (*varIter)[5];
798+
varT = (*varIter)[6];
799+
isFillLabelx = ((*varIter)[7] == 1 ? true : false);
800800
}
801801

802802
if (!isTHn) {

0 commit comments

Comments
 (0)