maybe someone experienced this:
My self compiled root does not do automatic gROOT.FindObject.
If I e.g. run fit1.C from tutorials, I get:
------------------------------------------------------------------------------
root [1] .x fit1.C
TFile** fillrandom.root
TFile* fillrandom.root
KEY: TFormula form1;1 abs(sin(x)/x)
KEY: TF1 sqroot;1 x*gaus(0) + [3]*form1
KEY: TH1F h1f;1 Test random numbers
Error: No symbol sqroot->Print() in current scope
FILE:/home/jens/debian/root/root/tutorials/./fit1.C LINE:30
Error: No symbol h1f->SetFillColor(45) in current scope
FILE:/home/jens/debian/root/root/tutorials/./fit1.C LINE:35
Error: No symbol h1f->Fit("sqroot") in current scope
FILE:/home/jens/debian/root/root/tutorials/./fit1.C LINE:36
fit1 : Real Time = 0.20 seconds Cpu Time = 0.04 seconds
------------------------------------------------------------------------------
in a comment is stated:
------------------------------------------------------------------------------
// Get object "sqroot" from the file. Undefined objects are searched
// for using gROOT->FindObject("xxx"), e.g.:
// TF1 *sqroot = (TF1*) gROOT.FindObject("sqroot")
------------------------------------------------------------------------------
And if I run the line beginning with TF1 all works well.
What might cause this? Have you got a hint?
TIA,
Jens
--- Jens.Ritter@weh.rwth-aachen.de grimaldi@debian.org KeyID: 2048/E451C639 1998/01/28 Print: 5F 3D 43 1E 24 1E CC 48 1E 05 93 3A A7 10 73 37 Hiermit untersage ich die Nutzung und Uebermittlung meiner Daten zu Werbezwecken oder fuer die Markt- bzw. Meinungsforschung gemaess Par. 28 Abs. 3 Bundesdatenschutzgesetz.