Tutorials in root 5.06/01

Dear Rooters

I have just downloaded the newest root version from cvs (using Mac OS X 10.4.2)
and encountered the following problems in the tutorials:

1, shapes.C:
Bus error when closing X3D or OpenGL

2, limit.C:

Computing limits with systematics... 
Error: Can't call TLimitDataSource::AddChannel(signal,background,data,errors,errorb,names) in current scope FILE:limit.C LINE:94
Possible candidates are...
filename       line:size busy function type and name  (in TLimitDataSource)
(compiled)        0:0    0 public: virtual void AddChannel(TH1*,TH1*,TH1*);
(compiled)        0:0    0 public: virtual void AddChannel(TH1*,TH1*,TH1*,TVectorD*,TVectorD*,TObjArray*);
filename       line:size busy function type and name  (in TObject)
Error: Symbol mynewdatasource is not defined in current scope  FILE:limit.C LINE:94
Error: Failed to evaluate mynewdatasource->AddChannel(signal,background,data,errors,errorb,names)Possible candidates are...
filename       line:size busy function type and name  
*** Interpreter error recovered ***
root [5] 

3, guitest.C:
When selecting “Font Dialog” I get the following error:

root [7] Error in <TGFontDialog::GetFontProperties>: no font selected or specified, should not happen
Warning in <TGFontDialog::GetFontName>: font -*--medium-r-*-*-12-*-*-*-*-*-*-* not found

This is an old error, but I do not know why I get this error.

Best regards
Christian

For the limit.C error, did you run gmake map or gmake install?

Cheers,
Philippe.

Yes, I did run make map.
Best,
Christian

humm I can not reproduce the problem in my limit.C line 94 does not contain the call to AddChanel …

Philippe

I am attaching the limit.C file which I downloaded with root on Saturday.
Christian
limit.C (4.23 KB)

Could it be an environment problem? (aka ROOTSYS, and/or PATH and/or LD_LIBRARY_PATH and/or the dylib library path do not point where they should)?

Can you also try:root [] .O 0 root [] .x limit.C
Can you try root [] .x limit.C+
You’ll need to add the following lines at the top of limit.h:

#include "TCanvas.h" #include "TRandom.h" #include "TH1.h" #include "Riostream.h" #include "THStack.h" #include "TFrame.h" #include "TObjString.h" #include "TVectorD.h" #include "TSystem.h" #include "TLimitDataSource.h" #include "TConfidenceLevel.h" #include "TLimit.h"

Philippe.

Thank you, your first suggestion works:

root [0] .O 0
root [1] .x limit.C 
Computing limits... 
CLs    : 0.00423042
CLsb   : 0.000987633
CLb    : 0.23346
< CLs >  : 0.0166786
< CLsb > : 0.00833962
< CLb >  : 0.50002

Computing limits with stat systematics... 
CLs    : 0.00453137
CLsb   : 0.00106795
CLb    : 0.23568
< CLs >  : 0.0173329
< CLsb > : 0.0086668
< CLb >  : 0.50002

Computing limits with systematics... 
CLs    : 0.00870656
CLsb   : 0.00223167
CLb    : 0.25632
< CLs >  : 0.0279335
< CLsb > : 0.0139673
< CLb >  : 0.50002
root [2]

BTW, what does “.O 0” mean?

Best regards
Christian

BTW, what does “.O 0” mean?

This disables the CINT byte-code optimization (which is known to be buggy and slatted for replacement).

Cheers,
Philippe.

Hi Christian,

About: 3, guitest.C:

The error messages you see when starting Font Dialog are the same one I got on SLC3 when installing root for the first time in this environment. The reasons for that were new environment settings required by SLC3. I had to add the $ROOTSYS/fonts directory to the /etc/X11/fs/config file and to restart the font server. After that the error messages disappeared and I got fonts available in the font dialog of guitest.C. My guess is that you have empty ‘Font’ and ‘Style’ lists in the Font dialog, isn’t it? So, the problem on Mac could be similar, i.e. related to some configuration settings. Someone with better knowledge on your environment could help you more.

Cheers, Ilka

Dear Ilka

Thank you for your sugeestion.
Indeed I have empty Font and Style lists in the font dialog.
The corresponding entry in my config file looks as follows:
catalogue = /usr/X11R6/lib/X11/fonts/misc/,/usr/X11R6/lib/X11/fonts/TTF/,/usr/X11R6/lib/X11/fonts/Speedo/,/usr/X11R6/lib/X11/fonts/Type1/,/usr/X11R6/lib/X11/fonts/CID/,/usr/X11R6/lib/X11/fonts/75dpi/,/usr/X11R6/lib/X11/fonts/100dpi/

Maybe other MacRooters could comment?

Best regards
Christian

Hi Christian,

The place where I have added the $ROOTSYS/fonts looks similar:

[code]# where to look for fonts

catalogue = /usr/X11R6/lib/X11/fonts/misc:unscaled,
/usr/X11R6/lib/X11/fonts/75dpi:unscaled,
/usr/X11R6/lib/X11/fonts/100dpi:unscaled,
/usr/X11R6/lib/X11/fonts/Type1,
/usr/X11R6/lib/X11/fonts/Speedo,
/usr/X11R6/lib/X11/fonts/TTF,
/usr/share/fonts/default/Type1,
/home/antcheva/root/fonts, <<---- $ROOTSYS/fonts added by me
,
/home/antcheva/.fonts
[/code]
Cheers, Ilka

Dear Ilka

Thank you for this information. Nevertheless I would be interested how other Mac users have solved this problem.

Best regards
Christian