RE: histograms embedded in TCanvas

From: Timur Pocheptsov <Timur.Pocheptsov_at_cern.ch>
Date: Mon, 13 Feb 2012 19:47:18 +0000

Hi Adrian.

Read your canvas and ask it for a list of primitives?

TCanvas * c = (TCanvas *)f->Get(.....);
if (c) {
....
  TList *primitives = c->GetListOfPrimitives();

  ///iterate on this list.

}
________________________________________
From: owner-roottalk_at_root.cern.ch [owner-roottalk_at_root.cern.ch] on behalf of Adrian Sevcenco [Adrian.Sevcenco_at_cern.ch]
Sent: 13 February 2012 20:24
To: roottalk_at_root.cern.ch
Subject: [ROOT] histograms embedded in TCanvas

Hi! I have an root file that have an TCanvas saved inside.
Inside in that TCanvas somehow there are a few histograms.
How can i list and handle (access) those histograms?

Thank you,
Adrian


Received on Mon Feb 13 2012 - 20:47:24 CET

This archive was generated by hypermail 2.2.0 : Mon Feb 13 2012 - 23:50:01 CET