gRandom access in SVN HEAD

From: Robert Hatcher <rhatcher_at_slac.stanford.edu>
Date: Mon, 10 Mar 2008 12:34:50 -0700 (PDT)


Second try sending this ... hope it makes it through without duplication]

With the new handling of MathCore something seems to have gotten lost in the way it handles gRandom. Now I see:


root [0] gRandom->Rndm()
Error: Symbol gRandom is not defined in current scope (tmpfile):1: Error: Failed to evaluate gRandom->Rndm() *** Interpreter error recovered ***
root [1] gSystem->Load("libMathCore");
root [2] gRandom->Rndm()
(Double_t)9.99741748906672001e-01

whereas in prior versions (e.g. v5.18/00a) the initial statement worked. Previously libCore.so had a reference to gRandom but it no longer does and so it fails to automatically load the libMathCore library (because it's not trying to resolve a TRandom class name and it knows nothing about "gRandom"). This is true for both Linux (SLF 3 & 4) and Mac OS X (Tiger).

Are users going to have to add gSystem->Load("libMathCore") to their scripts or is there some means to get the previous behaviour restored? I don't fully understand the .rootmap mechanism, but would it be possible to use that to get the library automatically loaded for these sort of globals?

-robert

Robert W. Hatcher | rhatcher_at_fnal.gov 630-840-3102 FNAL CD/EXP (MINOS) | MS 220, PO Box 500, Batavia IL 60510 Received on Mon Mar 10 2008 - 20:35:04 CET

This archive was generated by hypermail 2.2.0 : Mon Mar 10 2008 - 23:50:01 CET