Re: Copy in TParticle

From: Rene Brun (Rene.Brun@cern.ch)
Date: Mon Feb 28 2000 - 17:50:38 MET


Hello Yves,

Use the Clone function
Suppose you have
  MyParticle *p1
where MyParticle derives from TParticle. To create a copy of p1, do:
  MyParticle *p2 = (MyParticle*)p1->Clone();

Rene Brun

Yves SCHUTZ wrote:
> 
> Hi,
> 
> I cannot find the Copy method of TParticle....
> I want to copy an object which derives from
> TParticle.
> 
> Thanks ... Yves
> --
> 
> __________________________________________________________________
> |Yves SCHUTZ  (IN2P3 - CNRS) collaboration
> TAPS/WA98/ALICE         |
> |SUBATECH
> |
> |Ecole des Mines de Nantes Telephone: (+33/0) 2 51
> 85 84 71        |
> |4, rue Alfred Kastler     Fax      : (+33/0) 2 51
> 85 84 24        |
> |F-44070 Nantes cedex 03   e-mail   :
> yves.schutz@subatech.in2p3.fr|
> |__________________________________________________________________|



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