Skip to content

Commit 6fb1f82

Browse files
AlexWilkinsonnnAndyChappell
authored andcommitted
appease monitoring build
1 parent 9398c43 commit 6fb1f82

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

larpandoracontent/LArMonitoring/VisualMonitoringAlgorithm.cc

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -218,14 +218,15 @@ void VisualMonitoringAlgorithm::VisualizeCaloHitList(const std::string &listName
218218
volIdToCaloHits[volId].push_back(pCaloHit);
219219
}
220220

221-
int colorIter{static_cast<int>(RED)};
221+
[[maybe_unused]] int colorIter{0};
222222
for (const auto &[volId, caloHitListPartition] : volIdToCaloHits)
223223
{
224224
const std::string label{(listName.empty() ? "CurrentCaloHits" : listName) +
225225
", volId (" + std::to_string(volId.first) + ", " + std::to_string(volId.second) + ")"};
226-
PANDORA_MONITORING_API(VisualizeCaloHits(
227-
this->GetPandora(), &caloHitListPartition, label.c_str(), static_cast<Color>(colorIter++)));
228-
colorIter = static_cast<Color>(colorIter) == AUTO ? static_cast<int>(RED) : colorIter;
226+
PANDORA_MONITORING_API(VisualizeCaloHits(this->GetPandora(), &caloHitListPartition, label.c_str(),
227+
static_cast<Color>(++colorIter) < AUTO ? static_cast<Color>(colorIter)
228+
: (colorIter % static_cast<int>(AUTO)) == 0 ? static_cast<Color>(++colorIter % static_cast<int>(AUTO))
229+
: static_cast<Color>(colorIter % static_cast<int>(AUTO))));
229230
}
230231
}
231232

0 commit comments

Comments
 (0)