Re: Histos in different directories

Rene Brun (Rene.Brun@cern.ch)
Tue, 03 Mar 1998 15:29:59 +0100


Nick van Eijndhoven wrote:
>
> Dear ROOTers,
> I have a file which contains various histograms.
> I have a private class which I want to access that histo file and
> in a new histo "test" I want to place the sum of h1 and h2, where h1
> and h2 are two histos of the histogram file.
> In my private class I have declared
>
> public :
> TH1F* test;
>
> private :
> TFile* f;
>
> whereas in the code of my class I do :
>
> f=new TFile("data.root");
> test=new TH1F(.........); // ... represent the usual arguments
> test->Add(h1,h2);
>
> The result is that in my browser I see under ROOT files indeed the
> file "data.root" with all the original histograms and also the new
> histo "test".
> However, I would like to have the histo "test" present in the "memory
> mapped files" which appears in my browser.
> How can I achieve that ?

Objects only in memory are not shown by the browser in version 1.03/09.
This feature had already been added in our version 2.0 coming soon.

Rene Brun