8 #include <dqm_core/AlgorithmManager.h>
9 #include <dqm_core/Result.h>
10 #include <dqm_core/Parameter.h>
33 const dqm_core::ParametersMap & map)
35 dqm_core::ParametersMap::const_iterator iter;
40 unsigned int undefined = 0;
41 unsigned int skipped = 0;
43 for (iter=map.begin();iter!=map.end();++iter){
46 if ( iter->second->getWeight() == 0 )
48 ERS_DEBUG(2,
"Skip result (weight 0): "<<iter->first);
55 }
else if (
status==dqm_core::Result::Yellow) {
59 }
else if (
status==dqm_core::Result::Disabled) {
68 if (black == map.size() ) {
69 newresult->status_=dqm_core::Result::Disabled;
75 newresult->status_=dqm_core::Result::Yellow;
77 newresult->status_=dqm_core::Result::Yellow;
78 }
else if (
green > 0 ) {
83 newresult->tags_.insert(std::make_pair(
"NumRed",(
double)
red));
84 newresult->tags_.insert(std::make_pair(
"NumYellow",(
double)
yellow));
85 newresult->tags_.insert(std::make_pair(
"NumGreen",(
double)
green));
86 newresult->tags_.insert(std::make_pair(
"NumUndefined",(
double)undefined));
87 newresult->tags_.insert(std::make_pair(
"NumDisabled",(
double)black));
88 newresult->tags_.insert(std::make_pair(
"NumExcluded",(
double)skipped));