Reading Object.

From: Gagik Gavalian (gavalian@jlab.org)
Date: Fri Feb 18 2000 - 20:31:06 MET


Hi,

I was wondering if somebody could give me a help with the problem a
have.
I have macro to slice histograms and get back graph of fitted gaussians
for each slice.

void slice_fitX(TH2F *slHisto,Int_t n_slices){

char *hist_name;
char *mean_fit_name[20];

  slHisto->FitSlicesX(0,0,0,n_slices);
  hist_name = slHisto->GetName();
  sprintf(mean_fit_name,"%s_0",hist_name);
........
// then the  name of 1D histogram name with fitted means will be 
//
// Now, my problem is how to get pointer to object with name
"hist_name"_0 or "hist_name"_01
// There should be some call like.

ReadObject("hist_name"_0);

}


-------------
Gagik..
-- 
Gagik Gavalian
Physics Department, DeMeritt Hall
University of New Hampshire
Durham NH 03824, USA

Phone: Office : (603)-862-1685
       Home   : (603)-868-8090



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:19 MET