[size=100]I want to store my class objects into a TTree. The simplifed example is the attachment try.cpp. And the Makefile is also attached. I can compile without error, but whenever I run the program I have errors as following:
Error in TTree::Bronch: Cannot find class:LEP
Error in TTree::Bronch: Cannot find class:LEP
What is Bronch? And how can I solve the problem? Thank you very much!
My Makefile is:
CC = /usr/bin/g++
cc = /usr/bin/gcc
ROOTSYS = /usr/local/root
ROOTINC = (ROOTSYS)/include
ROOTLIB = (ROOTSYS)/lib
ROOTCFLAGS := (shell root-config --cflags)
ROOTLIBS := (shell root-config --libs)
ROOTGLIBS := (shell root-config --glibs)
HASTHREAD := (shell root-config --has-thread)
LIBS = (ROOTLIBS) (SYSLIBS)
GLIBS = (ROOTGLIBS) (SYSLIBS)
try: try.o
{CC} -o try try.o {LIBS}
try.o: try.cpp
(CC) -I(ROOTINC) -c try.cpp[/size][/size]
try.cpp (1.02 KB)