Skip to content

Commit

Permalink
add protection against invalid DCS alias
Browse files Browse the repository at this point in the history
  • Loading branch information
pillot committed Jul 19, 2024
1 parent 4081579 commit 8c8f0e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Detectors/MUON/MCH/Status/src/HVStatusCreator.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

#include "MCHStatus/HVStatusCreator.h"

#include "MCHConditions/DCSAliases.h"
#include "MCHConditions/DetectionElement.h"
#include "MCHGlobalMapping/Mapper.h"
#include "MCHStatus/StatusMap.h"
Expand Down Expand Up @@ -42,7 +43,7 @@ DPMAP2 decodeDPMAP(const o2::mch::HVStatusCreator::DPMAP& dpMap)
for (const auto& [dpId, dpsHV] : dpMap) {
std::string alias = dpId.get_alias();

if (alias.find("vMon") != std::string::npos) {
if (alias.find("vMon") != std::string::npos && o2::mch::dcs::isValid(alias)) {
auto& dps2 = dpsMapPerAlias[alias];

// copy first point to the beginning of time + margin (will be subtracted later on)
Expand Down

0 comments on commit 8c8f0e4

Please sign in to comment.