Re: [ROOT] TVector2, TVector3 problem

From: Rene Brun (Rene.Brun@cern.ch)
Date: Mon Nov 20 2000 - 18:20:19 MET


TVector2 and 3 are in libPhysics.so (not loaded by default).
Do:
gSystem->Load("libPhysics");
before creating your TVector2, etc

Rene Brun

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
> 
>



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