Hallo everyone,
i’m quite a noob, probably it’s a stupid question or a terrible coding mistake.
I’m performing an analysis with Proof+TSelector, but i can’t merge a TGraph object.
I have the usual:
void selector::SlaveBegin(TTree * /tree/)
{
…
int g_count = 0;
g = new TGraph();
g->SetNameTitle(“graf”,“graf”);
fOutput->Add(g);
…
}
Bool_t selector::Process(Long64_t entry)
{
…
g->SetPoint( g_count ,(*Muons)[0].Pt(),(*Muons)[1].Pt() );
g_count++;
…
return kTRUE;
}
And i try to retrieve my graph in Terminate with:
g = static_cast<TGraph*>(fOutput->FindObject(“graf”));
if(!g)
{
Error(“Terminate”, “ERROR: g NOT FOUND”);
return;
}
but object “g” is not found.
Any ideas?
Thank you,
Davide