to compile:

rm -f writeHist
rm -f  readHist
c++ -Wall `root-config --cflags` -o writeHist writeHist.cc `root-config --libs`
c++ -Wall `root-config --cflags` -o  readHist  readHist.cc `root-config --libs`

or

compile

------------

to run:

writeHist hh.root
readHist  hh.root

