Sean Kelly wrote:
>
> Hi Rooters,
>
> I realize this has been the subject of previous posts. My question is
> does the code frag below represent the simplest way to duplicate
> a histogram ?
>
> TH1F *vxDHi = (TH1F*) vx->Clone();
> vxDHi->SetName("vxDHi");
>
> thanks
>
> Sean Kelly
Yes, This is the recommended way. TH1::Clone make sure that all the data
structure supported by a TH1 object is copied.
Rene Brun
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:30 MET