Using RooStats

Hi, I am struggling with something and I can’t seem to find the answer. I tried searching the forums and google and going through other documentation, and I think maybe I am missing something that would lead me to understand the documentation in the way other people do.

I am trying to learn and understand RooStats, specifically by running some of the tutorials (like StandardHypoTestInvDemo.C).

I copied the code into a C++ file and tried compiling it. Here is the makefile I use:

[code]NAME = testroostats.exe

OBJECTS = $(NAME:.exe=.o)

CPPFLAGS = -I/usr/local/include -I$(shell root-config --incdir)

ROOTLIBS = $(shell root-config --libs)


all: $(NAME)


g++ -o $(NAME) -O $(OBJECTS) $(ROOTLIBS) -L/usr/local/lib

g++ -c -O $(CPPFLAGS) -I$(ROOTSYS)/include $*.cpp[/code]

A similar makefile works for all of my other ROOT code that I use (using ROOT libraries in my C++ code). So I am not sure why it doesn’t work for this case.

I get the following compile error:

Any idea as to what might be going on?

Thanks for the help, I appreciate it.

I resolved this problem on my own.

The documentation wasn’t clear that I needed to configure ROOT during installation to allow for ROOStats.

When installing root, I used:

./configure macosx64 --all

to include all libraries. More simply, a person can use ./configure macosx64 --enable-roofit

I am leaving this message for others who may come across this issue.