Skip to content
Snippets Groups Projects
Commit d515e9a2 authored by Vakhtang Tsulaia's avatar Vakhtang Tsulaia
Browse files

Merge branch 'master-ATLASRECTS-4839' into 'master'

Fix a bug of SCT_ConfigurationCondData (ATLASRECTS-4839)

See merge request atlas/athena!21352
parents cb25f613 150acb67
No related branches found
No related tags found
No related merge requests found
......@@ -102,8 +102,12 @@ bool SCT_ConfigurationCondData::isBadModuleId(const Identifier& moduleId) const
void SCT_ConfigurationCondData::setBadLinks(const IdentifierHash& hash, const bool isBadLink0, const bool isBadLink1) {
unsigned int iHash{hash};
iHash = (iHash/2)*2; // Make iHash even
m_badLinks[iHash].first &= isBadLink0;
m_badLinks[iHash].second &= isBadLink1;
if (m_badLinks.count(iHash)==0) {
m_badLinks.insert(std::pair<IdentifierHash, std::pair<bool, bool>>(iHash, std::pair<bool, bool>(isBadLink0, isBadLink1)));
} else {
m_badLinks[iHash].first &= isBadLink0;
m_badLinks[iHash].second &= isBadLink1;
}
m_badLinksArray[iHash/2].first &= isBadLink0;
m_badLinksArray[iHash/2].second &= isBadLink1;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment