Run roofit example

Hi, I am using root v5.27/04 on SL5, I was trying to run a simple example for RooFit, but not successful, did I do something wrong? Thanks for your help!

[root@hao roofit]# root -l
root [0] .L rf101_basics.C
Error: cannot open file “RooAbsRealLValue.h” RooRealVar.h:25:
*** Interpreter error recovered ***
root [1] .X rf101_basics.C
Error: cannot open file “RooAbsRealLValue.h” RooRealVar.h:25:
*** Interpreter error recovered ***
[root@hao roofit]# locate RooAbsRealLValue.h
/export/home/has64/root/roofit/roofitcore/inc/RooAbsRealLValue.h
[root@hao roofit]# echo $PATH
/usr/kerberos/sbin:/export/home/has64/root/bin:/usr/local/toolworks/totalview.8.6.0-1/bin://usr/qat/bin:/usr/lib/qt4/bin:/usr/lib/qt-3.3/bin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/export/home/has64/root/roofit/roofitcore/inc/

Hi,

Did you build ROOT from source? Did you enable the roofit package?

Philippe

Hi Philippe,

Thanks for your reply, I figured it out after a while. The reason was that I did not enable the roofit package when I built the package. Now I can run RooFit successfully. Thanks for your help!

Hao

[quote=“pcanal”]Hi,

Did you build ROOT from source? Did you enable the roofit package?

Philippe[/quote]