[ROOT] TH3 and Projections

From: Thomas Bretz (tbretz@astro.uni-wuerzburg.de)
Date: Thu Mar 18 2004 - 11:48:57 MET


Hi,

you have a really nice feature implemented in TH3::ProjectionZ:
   TH1D *h1=0;
   //check if histogram with identical name exist
   TObject *h1obj = gROOT->FindObject(pname);
   if (h1obj && h1obj->InheritsFrom("TH1D")) {
      h1 = (TH1D*)h1obj;
      h1->Reset();
   }

Can you do the same in TH3::Project3D please?

Thanks,
Thomas.



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:06 MET