13 #include "Identifier/Identifier.h"
28 return StatusCode::SUCCESS;
35 unsigned int nBadMods{
static_cast<unsigned int>(
m_configConditions->badModules(ctx)->size())};
38 unsigned int nBadLink0{0}, nBadLink1{0}, nBadLinkBoth{0};
39 const std::map<IdentifierHash, std::pair<bool, bool>>* badLinks{
m_configConditions->badLinks(ctx)};
40 std::map<IdentifierHash, std::pair<bool, bool>>::const_iterator linkItr{badLinks->begin()};
41 std::map<IdentifierHash, std::pair<bool, bool>>::const_iterator linkEnd{badLinks->end()};
42 while (linkItr != linkEnd) {
43 std::pair<bool, bool>
status{(*linkItr).second};
51 unsigned int nBadChips{0};
53 std::map<Identifier, unsigned int>::const_iterator chipItr{badChips->begin()};
54 std::map<Identifier, unsigned int>::const_iterator chipEnd{badChips->end()};
55 while (chipItr != chipEnd) {
56 unsigned int status{(*chipItr).second};
57 for (
unsigned int i{0};
i<12;
i++) nBadChips += ((
status & (1<<
i)) == 0 ? 0 : 1);
62 std::set<Identifier> badStripsAll;
64 unsigned int nBadStrips{
static_cast<unsigned int>(badStripsAll.size())};
67 std::set<Identifier> badStripsExclusive;
69 unsigned int nBadStripsExclusive{
static_cast<unsigned int>(badStripsExclusive.size())};
70 unsigned int nBadStripsExclusiveBEC[]{0,0,0};
72 std::set<Identifier>::const_iterator stripItr{badStripsExclusive.begin()};
73 std::set<Identifier>::const_iterator stripEnd{badStripsExclusive.end()};
75 while (stripItr != stripEnd) {
77 nBadStripsExclusiveBEC[(
bec/2)+1] += 1;
81 ATH_MSG_INFO(
"-----------------------------------------------------------------------");
85 ATH_MSG_INFO(
"Number of bad link both = " << nBadLinkBoth );
88 ATH_MSG_INFO(
"Number of bad strips exclusive = " << nBadStripsExclusive);
89 ATH_MSG_INFO(
"Number of bad strips exclusive (ECC, B, ECA) = "
90 << nBadStripsExclusiveBEC[0] <<
", "
91 << nBadStripsExclusiveBEC[1] <<
", "
92 << nBadStripsExclusiveBEC[2] <<
", ");
93 ATH_MSG_INFO(
"-----------------------------------------------------------------------");
95 return StatusCode::SUCCESS;
101 return StatusCode::SUCCESS;