9 #include <dqm_core/AlgorithmManager.h>
29 const dqm_core::ParametersMap& map)
31 int g = 0 ,
y = 0 ,
r = 0 ,
u = 0;
32 dqm_core::ParametersMap::const_iterator iter = map.begin();
33 for ( ; iter != map.end() ; ++iter)
37 else if (mystatus == dqm_core::Result::Yellow) { ++
y; }
41 const int total =
g +
y +
r +
u;
42 const double RedFraction = total ? ((
double)
r / total) : 0;
43 const double YellowFraction = total ? ((
double)
y / total) : 0;
49 result->tags_[
"NUndefineds"] =
u;
50 result->tags_[
"RedThresh"] = m_fractionRed;
51 result->tags_[
"YellowThresh"] = m_fractionYellow;
52 if (RedFraction > m_fractionRed)
56 else if (YellowFraction > m_fractionYellow)
58 result->status_ = dqm_core::Result::Yellow;