Hi,
Here is my problem :
I just want to get back some TH1F from a file and copy them into new fHistos
which are data members of a class.
Of course when I close the file I get a seg. vio. if I try to use my fHistos
I want to do something like this...
{
gROOT->Reset();
TObjArray *my_array = new TObjArray(10);
TH1F *my_th;
TH1F *t0;
TFile *my_file = new TFile("my_file.root","READ");
t0 = DO A COPY OF [ (TH1F*) my_file->Get("histo_name") ] ;
my_array->AddAt( t0,0);
my_file->Close();
my_array->ls();
my_array->At(0)->Draw(); }
-------------------------------------------------------------
Christophe Suire B204 suire@in2p3.fr
Institut de Recherches Subatomiques phone: +33(0)388106154
23,rue du Loess Bat20 BP28 fax: +33(0)388106614
F-67037 Strasbourg cedex2
-------------------------------------------------------------
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:27 MET