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);
53 if(
status==dqm_core::Result::Disabled) {
57 }
else if (
status==dqm_core::Result::Yellow) {
68 newresult->status_=dqm_core::Result::Disabled;
69 }
else if (
red > 0 ) {
72 newresult->status_=dqm_core::Result::Yellow;
73 }
else if (
green > 0 ) {
78 newresult->tags_.insert(std::make_pair(
"NumBlack",(
double)black));
79 newresult->tags_.insert(std::make_pair(
"NumRed",(
double)
red));
80 newresult->tags_.insert(std::make_pair(
"NumYellow",(
double)
yellow));
81 newresult->tags_.insert(std::make_pair(
"NumGreen",(
double)
green));
82 newresult->tags_.insert(std::make_pair(
"NumUndefined",(
double)undefined));
83 newresult->tags_.insert(std::make_pair(
"NumExcluded",(
double)skipped));