11 #include <dqm_core/AlgorithmManager.h>
14 #include <dqm_core/Result.h>
15 #include <dqm_core/Parameter.h>
36 const dqm_core::ParametersMap & map){
38 dqm_core::ParametersMap::const_iterator iter;
47 for (iter=map.begin();iter!=map.end();++iter){
52 rweight+=iter->second->getWeight();
53 }
else if (
status == dqm_core::Result::Yellow ) {
54 yweight+=iter->second->getWeight();
56 gweight+=iter->second->getWeight();
59 }
else if (
status==dqm_core::Result::Disabled ) {
67 if ( nblack == map.size() ) {
68 newresult->status_=dqm_core::Result::Disabled;
71 if ( ( ngrey + nblack ) == map.size() ) {
76 float weight = gweight > ((rweight >= yweight) ? rweight : yweight) ? gweight : ((rweight >= yweight) ? rweight : yweight);
85 }
else if (
weight == yweight ) {
86 newresult->status_=dqm_core::Result::Yellow;