[ROOT] List of Histos

From: Stilianos Kesisoglou (kesisogl@fnal.gov)
Date: Mon Jul 28 2003 - 12:17:15 MEST


Hi,

    Is there any way to check if a histogram has been created or not?

    I am thinking something on the same line that I can do for a canvas:

            TCanvas *myCNV = (TCanvas *)gROOT->GetListOfCanvases()->FindObject("myCNV");
            if (!myCNV) { myCNV = new TCanvas("myCNV","myCNV",920,630); }

    It doesn't seem to work for histograms.

    Thanks!

Stelios.



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:14 MET