42 const TObject &
object,
43 const dqm_core::AlgorithmConfig &
config)
47 if(
object.
IsA()->InheritsFrom(
"TGraph" ) ) {
48 graph =
static_cast<const TGraph*
>(&
object);
50 throw dqm_core::BadConfig( ERS_HERE, name,
"does not inherit from TGraph" );
55 if (graph->GetN() < minstat ) {
56 dqm_core::Result *
result =
new dqm_core::Result(dqm_core::Result::Undefined);
57 result->tags_[
"InsufficientN"] = graph->GetN();
61 if (
m_name ==
"Graph_Not_Empty") {
62 if (graph->GetN() != 0) {
63 ERS_DEBUG(1,
"Graph " <<graph->GetName()<<
" is Not Empty");
64 return new dqm_core::Result(dqm_core::Result::Green);
66 ERS_DEBUG(1,
"Graph " <<graph->GetName()<<
" is Empty");
67 return new dqm_core::Result(dqm_core::Result::Red);
69 }
else if (
m_name ==
"Graph_Empty") {
70 if (graph->GetN() == 0) {
71 ERS_DEBUG(1,
"Graph " <<graph->GetName()<<
" is Empty");
72 return new dqm_core::Result(dqm_core::Result::Green);
74 ERS_DEBUG(1,
"Graph " <<graph->GetName()<<
" is Not Empty");
75 return new dqm_core::Result(dqm_core::Result::Red);
78 return new dqm_core::Result();