33 const dqm_core::AlgorithmConfig & )
36 if ( obj.IsA()->InheritsFrom(
"TGraph") )
38 ERS_DEBUG(2,
"Got TGraph called: "<<obj.GetName()<<
" of type:"<<obj.IsA()->GetName());
39 graph =
static_cast<const TGraph*
>(&obj);
43 throw dqm_core::BadConfig(ERS_HERE,name,
"Object is not a TGraph ");
45 Int_t npoints = graph->GetN();
48 dqm_core::Result*
result =
new dqm_core::Result;
49 for ( Int_t
bin = 0 ;
bin < npoints ; ++
bin)
51 Double_t
x = 0,
y = 0;
52 graph->GetPoint(
bin,
x,
y);
54 ERS_DEBUG(3,
"Looking at point "<<
bin<<
" and I see x = " <<
x <<
" and y = " <<
y);
55 std::string binname = Form(
"Candidate %d in LB %.0f, Event",
bin,
x);
57 result->tags_[binname.c_str()] =
y;
60 result->status_=dqm_core::Result::Green;
static dqm_algorithms::BinContentComp myInstance