HitEfficiency.h,cc  : class to represent a function with parameters
FitEfficiency.h,cc  : class to fit function over an histogram
fit.cc              : main program to fit histogram
sim.cc              : main program to simulated numbers with probability
                      density function described by the function
his.cc              : main program to read simulated numbers and 
                      histogram them
eff.root            : file containing the histogram to be fitted

to compile:

c++ -Wall `root-config --cflags` -o fit fit.cc \
HitEfficiency.cc FitEfficiency.cc `root-config --libs`
c++ -Wall -o sim sim.cc HitEfficiency.cc 
c++ -Wall `root-config --cflags` -o his his.cc \
HitEfficiency.cc FitEfficiency.cc `root-config --libs`

or

compile_fit
compile_sim
compile_his

to run:

fit eff.root eff.txt
sim [seed] eff.txt hit.txt
his hit.txt

