Tutorial problems with new root version

Dear Rooters

I have just downloaded from cvs the newest root version and tested a couple
of tutorials on my Mac OS X 10.4.4.

Some of the tutorials crash, others are not found, although they are located
in the tutorials directory:

root [4] .x mathcoreVectorIO.C
Time for Random gen 2.42174 2.37
Time for new Vector 5.92709 5.51


*Tree :t1 : Tree with new LorentzVector *
*Entries : 100000 : Total = 3214603 bytes File Size = 3081261 *

  •    :          : Tree compression factor =   1.04                       *
    

*Branch :LV branch *
*Entries : 100000 : BranchElement (see below) *

*Br 0 :fCoordinates : *
*Entries : 100000 : Total Size= 14163 bytes One basket in memory *
*Baskets : 0 : Basket Size= 32000 bytes Compression= 1.00 *

*Br 1 :fCoordinates.fX : *
*Entries : 100000 : Total Size= 803246 bytes File Size = 774762 *
*Baskets : 25 : Basket Size= 32000 bytes Compression= 1.03 *

*Br 2 :fCoordinates.fY : *
*Entries : 100000 : Total Size= 803246 bytes File Size = 774695 *
*Baskets : 25 : Basket Size= 32000 bytes Compression= 1.03 *

*Br 3 :fCoordinates.fZ :
*Entries : 100000 : Total Size= 803246 bytes File Size = 774628 *
*Baskets : 25 : Basket Size= 32000 bytes Compression= 1.03 *

*Br 4 :fCoordinates.fT : *
*Entries : 100000 : Total Size= 803246 bytes File Size = 746654 *
*Baskets : 25 : Basket Size= 32000 bytes Compression= 1.07 *

*** Break *** bus error
Root > Function write() busy flag cleared
Function mathcoreVectorIO() busy flag cleared

root [5] .x exclusiongraph2.C
Error in : macro exclusiongraph2.C not found in path .:/Users/rabbitus/ROOT/root/macros

root [1] .x graphpolar.C
Error in : macro graphpolar.C not found in path .:/Users/rabbitus/ROOT/root/macros

root [3] .x fitCircle.C
Error in : macro fitCircle.C not found in path .:/Users/rabbitus/ROOT/root/macros

root [6] .x glViewerExercise.C
Warning in : no dictionary for class TGLViewer is available
Warning in : no dictionary for class TGLBoundingBox is available
Error: TGLPlane() header declared but not defined _vector.h:80:
*** Interpreter error recovered ***
Error: Symbol null is not defined in current scope :0

Best regards
Christian

Christian,

I cannot reproduce any of the problems that you are reporting except the crash in the first one. This tutorial was a last minute edition with (clearly) not enough testing.

My guess is that you installed from source yoursel;f and forgot
make map

Rene

Dear Rene

I am sorry, you are correct. Sometimes I forget to make “make map”!

I tested the tutorials again:

Since I have not compiled Minuit2, I get an error although the following
example works:
root [1] .x fitCircle.C
Error in : Minuit2[.so | .sl | .dl | .a | .dll] does not exist in .:/Users/rabbitus/ROOT/root/lib:/Users/rabbitus/ROOT/root/lib:/Users/rabbitus/ROOT/root/lib:/sw/lib::/Users/rabbitus/ROOT/root/lib:/sw/lib:
Error: illegal pointer to class object fitter 0x0 117 fitCircle.C:56:
*** Interpreter error recovered ***

Th example “.x glViewerExercise.C” works, too, but I am unable to stop it.
When I close the window of GLViewer, root has the following message in
an endless loop:
root [2] .x glViewerExercise.C
Info in : Geometry nucleus, Model of a nucleus created
Info in : Top volume is WORLD. Master volume is WORLD
Info in : Fixing runtime shapes…
Info in : …Nothing to fix
Info in : Counting nodes…
Info in : Voxelizing…
Info in : Building cache…
Info in : — Maximum geometry depth is 1
Info in : 101 nodes/ 3 volume UID’s in Model of a nucleus
Info in : ----------------modeler ready----------------
Info in : Automatic visible depth disabled
— Drawing 100 nodes with 4 visible levels
: created default TCanvas with name c1
root [3] Error: Symbol gPad is not defined in current scope glViewerExercise.C:47:
Error: Failed to evaluate gPad->GetViewer3D()
*** Interpreter error recovered ***
Error: Symbol gPad is not defined in current scope glViewerExercise.C:47:
Error: Failed to evaluate gPad->GetViewer3D()
*** Interpreter error recovered ***
Error: Symbol gPad is not defined in current scope glViewerExercise.C:47:
Error: Failed to evaluate gPad->GetViewer3D()
*** Interpreter error recovered ***

Best regards
Christian

Christian,

If you did not install Minuit2, comment the following line in fitCircle.C
TVirtualFitter::SetDefaultFitter(“Minuit2”); //default is Minuit
The script will use TMinuit instead.

To stop glViewerExercise.C, simply go to the canvas file menu and select
the item “Quit Root”

Rene

Thank you
Christian