Event.h

I try to run the programm:
root.cern.ch/root/html/examples/ … t.cxx.html

I simply copied this code to my events.C and run ".x event.C"
and and I got the “Error: cannot open file “Event.h” event2.C:14”

So, how to run this code in right way.
I use the latest version of ROOT at lxplus.

Thanks

Event.h, Event.cxx, MainEvent.cxx are in $ROOTSYS/test.
When running make in this directory the Event program is built.

Rene

I copied all $ROOTSYS/test to my local directory.
Then I did “make”.
Then I tried:
1 root -b
2 .L stress.cxx
3 stress(100)

root [1] stress(100)


  • Starting R O O T - S T R E S S test suite with 100 events

Test 1 : Functions, Random Numbers, Histogram Fits… OK
Test 2 : Check size & compression factor of a Root file… OK
Test 3 : Purge, Reuse of gaps in TFile… OK
Test 4 : Test of 2-d histograms, functions, 2-d fits… OK
Test 5 : Test graphics & Postscript… OK
Test 6 : Test subdirectories in a Root file… OK
Test 7 : TNtuple, selections, TCut, TCutG, TEventList… OK
Error in TUnixSystem::DynamicPathName: $(ROOTSYS)/test/libEvent[.so | .sl | .dl | .a | .dll] does not exist in .:/afs/cern.ch/sw/lcg/external/root/5.19.02/slc4_ia32_gcc34/root/lib::/afs/cern.ch/sw/lcg/external/root/5.19.02/slc4_ia32_gcc34/root/lib:/afs/cern.ch/sw/lcg/external/root/5.19.02/slc4_ia32_gcc34/root/lib:/afs/cern.ch/sw/lcg/external/root/5.19.02/slc4_ia32_gcc34/root/cint/stl
Error in TUnixSystem::DynamicPathName: test/libEvent[.so | .sl | .dl | .a | .dll] does not exist in .:/afs/cern.ch/sw/lcg/external/root/5.19.02/slc4_ia32_gcc34/root/lib::/afs/cern.ch/sw/lcg/external/root/5.19.02/slc4_ia32_gcc34/root/lib:/afs/cern.ch/sw/lcg/external/root/5.19.02/slc4_ia32_gcc34/root/lib:/afs/cern.ch/sw/lcg/external/root/5.19.02/slc4_ia32_gcc34/root/cint/stl
Test 8 : Trees split and compression modes… ===>stress8 will try to build the libEvent library
g++ -O2 -Wall -fPIC -pthread -m32 -I/afs/cern.ch/sw/lcg/external/root/5.19.02/slc4_ia32_gcc34/root/include -c Event.cxx
Assembler messages:
FATAL: can’t create Event.o: Permission denied
make: *** [Event.o] Error 1
Error in TUnixSystem::DynamicPathName: $(ROOTSYS)/test/libEvent[.so | .sl | .dl | .a | .dll] does not exist in .:/afs/cern.ch/sw/lcg/external/root/5.19.02/slc4_ia32_gcc34/root/lib::/afs/cern.ch/sw/lcg/external/root/5.19.02/slc4_ia32_gcc34/root/lib:/afs/cern.ch/sw/lcg/external/root/5.19.02/slc4_ia32_gcc34/root/lib:/afs/cern.ch/sw/lcg/external/root/5.19.02/slc4_ia32_gcc34/root/cint/stl
Error: Symbol Event is not defined in current scope stress.cxx:750:
Error: Symbol Event is not defined in current scope stress.cxx:750:
Error: type Event not defined FILE:/afs/cern.ch/user/a/andrey/scratch1/test/./stress.cxx LINE:750
Warning: Automatic variable Eventevent is allocated stress.cxx:750:
Error: Undeclared variable Event
event stress.cxx:750:
*** Interpreter error recovered ***

What I am doing wrong?
Also I comlitly dont understand how to run MainEvent.cxx …