Skip to content

Commit

Permalink
removal of dpmap decoder from header
Browse files Browse the repository at this point in the history
  • Loading branch information
comrademarvin committed Jun 26, 2024
1 parent 7c7cb08 commit b52edc6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions Detectors/MUON/MCH/Status/include/MCHStatus/HVStatusCreator.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ class HVStatusCreator
using DPID = dcs::DataPointIdentifier;
using DPVAL = dcs::DataPointValue;
using DPMAP = std::unordered_map<DPID, std::vector<DPVAL>>;
using DPMAP2 = std::map<std::string, std::map<uint64_t, double>>;

/**
* Find all HV issues and their time ranges
Expand Down Expand Up @@ -99,13 +98,6 @@ class HVStatusCreator
/// map of bad HV channels with the time ranges concerned
std::unordered_map<std::string, std::vector<TimeRange>> mBadHVTimeRanges{};
std::set<std::string> mCurrentBadHVs{}; ///< current list of bad HV channels

/**
* @brief decode the DCS DPMAP to be processed for HV issues
* @param dpMap encoded DCS HV data points from CCDB
* @return the decoded DPMAP2
*/
DPMAP2 decodeDPMAP(const DPMAP& dpMap);
};

} // namespace o2::mch
Expand Down
2 changes: 1 addition & 1 deletion Detectors/MUON/MCH/Status/src/HVStatusCreator.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ void HVStatusCreator::findBadHVs(const DPMAP& dpMap)
uint64_t tStart, tStop = 0;
bool ongoingIssue = false;

for (auto& [timestamp, valueHV] : dpsHV) {
for (const auto& [timestamp, valueHV] : dpsHV) {
if (valueHV < chamberThreshold) { // check whether HV point is below set threshold for chamber
if (!ongoingIssue) {
tStart = timestamp;
Expand Down

0 comments on commit b52edc6

Please sign in to comment.