Hi Juergen,
instead of myh1->Write() you could do myh1->TH1F::Write() or override
Write() in your derived class in which you just do:
MyTH1F::Write() { TH1F::Write(); }
-- Fons
On Sat, 2002-07-27 at 11:48, Juergen Hannappel wrote:
> Hello,
> i have a class derived from TH1F (and many instances thereof), but i
> want to write only the base class part (i.e. the TH1F's) to a root
> file. How do i do that?
>
> Greetings,
> Juergen
>
> --
> Dr. Juergen Hannappel http://lisa2.physik.uni-bonn.de/~hannappe
> mailto:hannappel@physik.uni-bonn.de Phone: +49 228 73 2447 FAX ... 7869
> Physikalisches Institut der Uni Bonn Nussallee 12, D-53115 Bonn, Germany
> CERN: Phone: +412276 76461 Fax: ..77930 Bat. 892-R-A13 CH-1211 Genève 23
--
Org: CERN, European Laboratory for Particle Physics.
Mail: 1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers@cern.ch Phone: +41 22 7679248
WWW: http://root.cern.ch/~rdm/ Fax: +41 22 7679480
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:01 MET