Re: [ROOT] TVector2, TVector3 problem

From: Patrick Decowski (decowski@mit.edu)
Date: Mon Nov 20 2000 - 18:48:26 MET


hi rene,

do a 'gSystem->Load("libPhysics")' before calling your test.C macro

groeten,
patrick.

On Mon, 20 Nov 2000, Rene Scholte wrote:

> Hi Rooters,
>
> If I want to use the TVector3 or TVector2 class in a macro,
> root does not recognize these classes.
> for instance the simple macro :
>
> {
> TVector3 *jo = new TVector3(1.0,2.0,3.0);
> cout << " Pt is " << jo->Pt() << endl;
> }
>
> produces :
>
> root [0] .x test.C
> Error: No symbol TVector3 in current scope  FILE:test.C LINE:2
> *** Interpreter error recovered ***
> Error: No symbol TVector3 in current scope  FILE:test.C LINE:2
> Error: type TVector3 not defined
> FILE:/export/data/atlas/r34/root/ATLfast++/B_c/./test.C LINE:2
> Warning: Automatic variable TVector3*jo allocated in global scope
> FILE:test.C LINE:2
> Error: Undeclared variable TVector3*jo FILE:test.C LINE:2
> *** Interpreter error recovered ***
> root [1]
>
>
> If I use Tab-completion in the CINT-interpreter on TV (and then[tab])
> TVector2 and TVector3 are also missing :
>
> root [0] TV
> TVirtualTreePlayer
> TVirtualHistPainter
> TVirtualPad
> TView
> TVirtualFitter
> TVirtualGL
> TVirtualPS
> TVirtualX
> TVirtualX::EBoxMode
> TVirtualX::ETextMode
> TVirtualX::EDrawMode
> TVirtualX::ETextSetMode
> TVector
> TVectorD
> root [0]
>
> Do these classes no longer exist ?
>
> I'm using  version 2.25/00  17 june 2000
> on Redhat linux 5.2
>
> tanx in advance,
>
> Rene
>
> --
> Rene Scholte
> NIKHEF (Nat. Inst. for Nuclear and High Energy Physics)
> Phone +31 20 592 5071
> email : r34@nikhef.nl
>
>
>

-------------------------------------------o-------------------------------
Patrick Decowski                           |
24-507                                     |
Massachusetts Institute of Technology      |    Cell:      (617)308-6737
77 Massachusetts Ave                       |    Office:    (631)344-2304
Cambridge, MA 02139-4307                   |
-------------------------------------------o-------------------------------
http://web.mit.edu/decowski/www/           |    e-mail: decowski@mit.edu
-------------------------------------------o-------------------------------



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